|
@@ -8,6 +8,7 @@ use App\Models\CareMonth;
|
|
|
use App\Models\Client;
|
|
|
use App\Models\ClientBDTDevice;
|
|
|
use App\Models\ClientInfoLine;
|
|
|
+use App\Models\ClientPrimaryCoverage;
|
|
|
use App\Models\ClientProAccess;
|
|
|
use App\Models\CompanyPro;
|
|
|
use App\Models\Erx;
|
|
@@ -608,14 +609,17 @@ class PatientController extends Controller
|
|
|
}
|
|
|
|
|
|
public function primaryCoverageManualDeterminationModal(Request $request, Client $patient) {
|
|
|
+ $coverageUid = $request->get('coverageUid');
|
|
|
+ $coverage = ClientPrimaryCoverage::where('uid', $coverageUid)->first();
|
|
|
+
|
|
|
if($patient->latestClientPrimaryCoverage->plan_type === 'MEDICARE'){
|
|
|
- return view('app.patient.primary-coverage-manual-determination-medicare-modal', compact('patient'));
|
|
|
+ return view('app.patient.primary-coverage-manual-determination-medicare-modal', compact('patient', 'coverage'));
|
|
|
}
|
|
|
if($patient->latestClientPrimaryCoverage->plan_type === 'MEDICAID'){
|
|
|
- return view('app.patient.primary-coverage-manual-determination-medicaid-modal', compact('patient'));
|
|
|
+ return view('app.patient.primary-coverage-manual-determination-medicaid-modal', compact('patient', 'coverage'));
|
|
|
}
|
|
|
if($patient->latestClientPrimaryCoverage->plan_type === 'COMMERCIAL'){
|
|
|
- return view('app.patient.primary-coverage-manual-determination-commercial-modal', compact('patient'));
|
|
|
+ return view('app.patient.primary-coverage-manual-determination-commercial-modal', compact('patient', 'coverage'));
|
|
|
}
|
|
|
|
|
|
return "Plan Type is missing!";
|