Browse Source

Code refactor

Samson Mutunga 1 năm trước cách đây
mục cha
commit
b06213b067
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/PatientController.php

+ 1 - 1
app/Http/Controllers/PatientController.php

@@ -414,7 +414,7 @@ class PatientController extends Controller
 
     public function careMonths(Request $request, Client $patient )
     {
-        $careMonths = CareMonth::where('client_id', $patient->id)->orderBy('start_date', 'desc')->get();
+        $careMonths = CareMonth::where('client_id', $patient->id)->with('rmBill', 'mcp', 'rmmPro', 'rmePro', 'cmReasons', 'claims')->orderBy('start_date', 'desc')->get();
         $notes = Note::where('is_cancelled', false)->get();
         return view('app.patient.care-months', compact('patient', 'careMonths', 'notes'));
     }