|
@@ -82,6 +82,17 @@ class AdminController extends Controller
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $initiative = $request->input('initiative');
|
|
|
|
+ if($initiative){
|
|
|
|
+ $wildCardedInitiative = '%'.$initiative.'%';
|
|
|
|
+ $patients->where('initiative', 'ilike', $wildCardedInitiative);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $include_test_records = $request->input('include_test_records');
|
|
|
|
+ if(!$include_test_records){
|
|
|
|
+ $patients->where('client_engagement_status_category', '<>', 'DUMMY');
|
|
|
|
+ }
|
|
|
|
+
|
|
$patients = $patients->orderBy('created_at', 'DESC')->paginate(20);
|
|
$patients = $patients->orderBy('created_at', 'DESC')->paginate(20);
|
|
return view('app.mcp.patients', compact('patients', 'filters'));
|
|
return view('app.mcp.patients', compact('patients', 'filters'));
|
|
}
|
|
}
|