public function dentalform($pid, $tno) { $dental = Dental::with('patient.agency', 'dentist')->where('trans_no', '=', $tno)->firstOrFail(); $data = ['res' => $dental, 'pageTitle' => 'Dental Form - ' . $dental->patient->name]; return view('reports.dental', $data); }
public static function getBilling($dentist, $from, $to) { return Dental::with('patient.agency', 'dentist')->where('dentist_id', '=', $dentist)->where('exam_dt', '>=', $from)->where('exam_dt', '<=', $to); }