|
@@ -205,14 +205,15 @@ class HomeController extends Controller
|
|
|
$query->where('mcp_pro_id', $performer->pro->id)
|
|
|
->where('has_mcp_done_onboarding_visit', '!=', 'YES');
|
|
|
})
|
|
|
- ->orWhere(function ($query) { // mcp of any client program and program OB pending
|
|
|
- $query->where(function ($_query) {
|
|
|
- $_query->select(DB::raw('COUNT(id)'))
|
|
|
- ->from('client_program')
|
|
|
- ->whereColumn('client_id', 'client.id')
|
|
|
- ->where('has_mcp_done_onboarding_visit', '!=', 'YES');
|
|
|
- }, '>=', 1);
|
|
|
- })->count();
|
|
|
+// ->orWhere(function ($query) { // mcp of any client program and program OB pending
|
|
|
+// $query->where(function ($_query) {
|
|
|
+// $_query->select(DB::raw('COUNT(id)'))
|
|
|
+// ->from('client_program')
|
|
|
+// ->whereColumn('client_id', 'client.id')
|
|
|
+// ->where('has_mcp_done_onboarding_visit', '!=', 'YES');
|
|
|
+// }, '>=', 1);
|
|
|
+// })
|
|
|
+ ->count();
|
|
|
$keyNumbers['patientsNotSeenYet'] = $patientNotSeenYet;
|
|
|
|
|
|
$pendingBillsToSign = Bill::where(function ($query) use ($performerProID) {
|