Explorar el Código

Insurance card: order by coverageOrder

Vijayakrishnan Krishnan hace 1 semana
padre
commit
3e6e0dd764
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/PatientController.php

+ 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'));
     }