Пример #1
0
 public function show_report($patient_id)
 {
     $patient = Patient::wherePatient_id($patient_id)->firstOrFail();
     $total = $patient->total;
     $commision = $patient->commision;
     $commision_amount = $patient->discount;
     if ($commision <= 0) {
         $commision_amount = '0';
         return view('outdoor.show_report', compact('patient', 'total', 'commision', 'commision_amount', 'patient_id'));
     } else {
         return view('outdoor.show_report', compact('patient', 'total', 'commision', 'commision_amount', 'patient_id'));
     }
 }