|
@@ -74,6 +74,14 @@ class AdminController extends Controller
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ($request->input('ob')) {
|
|
|
+ if ($request->input('ob') == 'yes') {
|
|
|
+ $patients = $patients->where('has_mcp_done_onboarding_visit', 'YES');
|
|
|
+ } else {
|
|
|
+ $patients = $patients->where('has_mcp_done_onboarding_visit', '!=', 'YES');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if ($request->input('next_appointment_category')) {
|
|
|
if($request->input('next_appointment_category') == 'NONE'){
|
|
|
$patients = $patients->whereNull('next_mcp_appointment_id');
|