|
@@ -386,38 +386,6 @@ class HomeController extends Controller
|
|
|
->whereNull('current_client_pro_change_decision_id')
|
|
|
->get();
|
|
|
|
|
|
- $proApptUpdates = AppointmentConfirmationDecision
|
|
|
- ::select('appointment_confirmation_decision.uid', 'client.name_first', 'client.name_last', 'appointment.start_time')
|
|
|
- ->rightJoin('appointment', 'appointment.id', '=', 'appointment_confirmation_decision.appointment_id')
|
|
|
- ->rightJoin('client', 'client.id', '=', 'appointment.client_id')
|
|
|
- ->where('appointment_confirmation_decision.was_acknowledged_by_appointment_pro', false)
|
|
|
- ->where('appointment.status', '!=', 'CREATED') // WIP: ALIX overhaul
|
|
|
- ->where('appointment.status', '!=', 'COMPLETED')
|
|
|
- ->where('appointment.pro_id', $performerProID)
|
|
|
- ->where('client.mcp_pro_id', $performerProID)
|
|
|
- ->orderBy('appointment.start_time', 'DESC')
|
|
|
- ->get();
|
|
|
-
|
|
|
- $naApptUpdates = AppointmentConfirmationDecision
|
|
|
- ::select('appointment_confirmation_decision.uid', 'client.name_first', 'client.name_last', 'pro.name_first as pro_name_first', 'pro.name_last as pro_name_last', 'appointment.start_time')
|
|
|
- ->rightJoin('appointment', 'appointment.id', '=', 'appointment_confirmation_decision.appointment_id')
|
|
|
- ->rightJoin('client', 'client.id', '=', 'appointment.client_id')
|
|
|
- ->rightJoin('pro', 'pro.id', '=', 'appointment.pro_id')
|
|
|
- ->where('appointment_confirmation_decision.was_acknowledged_by_client_default_na', false)
|
|
|
- ->where('appointment.status', '!=', 'CREATED') // WIP: ALIX overhaul
|
|
|
- ->where('appointment.status', '!=', 'COMPLETED')
|
|
|
- ->where('client.default_na_pro_id', $performerProID)
|
|
|
- ->orderBy('appointment.start_time', 'DESC')
|
|
|
- ->get();
|
|
|
-
|
|
|
-// $naApptUpdates = AppointmentConfirmationDecision
|
|
|
-// ::join('appointment', 'appointment.id', '=', 'appointment_confirmation_decision.appointment_id')
|
|
|
-// ->join('client', 'client.id', '=', 'appointment.client_id')
|
|
|
-// ->where('client.default_na_pro_id', $performerProID)
|
|
|
-// ->where('appointment_confirmation_decision.was_acknowledged_by_client_default_na', false)
|
|
|
-// ->orderBy('appointment.start_time DESC')
|
|
|
-// ->get();
|
|
|
-
|
|
|
// unstamped client memos
|
|
|
// for mcp
|
|
|
$mcpClientMemos = DB::select(
|
|
@@ -554,8 +522,7 @@ WHERE cl.shadow_pro_id IS NULL
|
|
|
'incomingReports', 'tickets', 'supplyOrders',
|
|
|
'numERx', 'numLabs', 'numImaging', 'numSupplyOrders',
|
|
|
'newMCPAssociations', 'newNAAssociations',
|
|
|
- 'mcpClientMemos', 'naClientMemos',
|
|
|
- 'proApptUpdates', 'naApptUpdates'));
|
|
|
+ 'mcpClientMemos', 'naClientMemos'));
|
|
|
}
|
|
|
|
|
|
private function dashboard_DNA(Request $request){
|