Prechádzať zdrojové kódy

Insurance card: order by coverageOrder

Vijayakrishnan Krishnan 1 týždeň pred
rodič
commit
3e6e0dd764

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

@@ -763,7 +763,7 @@ class PatientController extends Controller
     }
 
     public function insuranceCards(Request $request, Client $patient){
-        $insuranceCards = InsuranceCard::where('client_id', $patient->id)->orderBy('created_at', 'DESC')->get();
+        $insuranceCards = InsuranceCard::where('client_id', $patient->id)->orderBy('coverage_order', 'ASC')->get();
         return view('app.patient.insurance-cards', compact('patient', 'insuranceCards'));
     }