/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $province_id = Input::get('province_id'); $city_id = Input::get('city_id'); $specialization_id = Input::get('specialization_id'); $verified = Input::get('verified'); $data = array(); if (empty($province_id) && empty($city_id) && empty($specialization_id) && empty($verified)) { //menampilkan semua gender $data['content'] = \App\Doctor::all(); $data['province_id'] = null; $data['city_id'] = null; $data['specialization_id'] = null; $data['verified'] = null; } else { $data['content'] = $data['province_id'] = $province_id; $data['city_id'] = $city_id; $data['specialization_id'] = $specialization_id; $data['verified'] = $verified; } $data['list_province'] = \App\Province::lists('name', 'id'); $data['list_city'] = \App\City::lists('name', 'id'); $data['list_specialization'] = \App\Specialization::lists('name', 'id'); return view('pages.admin.clinic.doctor.index')->with('data', $data); }
public function edit_indoor_patient_report($id) { $indoor_report = Indoor_patient::whereId($id)->firstOrFail(); $doctors = Doctor::all(); $gender = $indoor_report->gender; $xray = $indoor_report->digital_xray; $ultra = $indoor_report->ultrasonogram; $ecg = $indoor_report->ecg; $decg = $indoor_report->digital_ecg; $endoccopy = $indoor_report->endoscopy; $bloodgrp = $indoor_report->blood_grouping; $bloodcs = $indoor_report->blood_cs; $bloodcbc = $indoor_report->blood_cbc; $urine = $indoor_report->urine; $hbsnrmal = $indoor_report->hbs_normal; $ctscan = $indoor_report->ct_scan; $stool = $indoor_report->stool; $operation_bill = $indoor_report->operation_bill; $dr_bill = $indoor_report->dr_bill; $service_bill = $indoor_report->service_bill; $medicine_bill = $indoor_report->medicine_bill; $cabin_bill = $indoor_report->cabin_bill; $others_bill = $indoor_report->others_bill; return view('Indoor.edit_report', compact('indoor_report', 'total', 'commision_amount', 'gender', 'ind_patient_id', 'xray', 'ultra', 'ecg', 'decg', 'endoccopy', 'bloodgrp', 'bloodcs', 'bloodcbc', 'urine', 'hbsnrmal', 'ctscan', 'stool', 'doctors', 'id')); }
/** * Shows the Doctor List to the user. * * @return index view */ public function index() { $doctors = Doctor::all(); $user = Session::get('user'); return view('doctor.index')->with('doctors', $doctors)->with('user', $user); //return $doctors; }
/** * Display a listing of the resource. * * @return Response */ public function index() { //Doctor::create(['name' => "Juan Ricardo", 'lastname' => "Gutierrez", //'latitude'=> '120.0333', 'longitude' => '29.222202', //'age'=> 33, 'experience_years_count' => 12, 'picture' => 'img/doctor.png', //'attented_cases_number' => 369, 'current_room_number' => 65, //'last_message_received' => "Doctor Juan, go inmediatly to the Emergency room", //'last_time_reported' => "2015-08-29 10:10:10", 'attended_patients_counter_today'=> 12 //]); $doctors = Doctor::all(); return view('doctors.index', ['doctors' => $doctors]); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($lead) { // send pusher event if ($lead->active == 0) { event(new LeadAccessed($lead)); } // update lead's active to 1 $lead->active = 1; $lead->save(); $doctors = Doctor::all(); $dispositions = Disposition::all(); return view('lead.show', compact('lead', 'doctors', 'dispositions')); }
public function edit_report($patient_id) { $report = Patient::wherePatient_id($patient_id)->firstOrFail(); $doctors = Doctor::all(); $gender = $report->gender; $xray = $report->digital_xray; $ultra = $report->ultrasonogram; $ecg = $report->ecg; $decg = $report->digital_ecg; $endoccopy = $report->endoscopy; $bloodgrp = $report->blood_grouping; $bloodcs = $report->blood_cs; $bloodcbc = $report->blood_cbc; $urine = $report->urine; $hbsnrmal = $report->hbs_normal; $ctscan = $report->ct_scan; $stool = $report->stool; $commision = $report->commision; return view('outdoor.edit_report', compact('report', 'gender', 'patient_id', 'xray', 'ultra', 'ecg', 'decg', 'endoccopy', 'bloodgrp', 'bloodcs', 'bloodcbc', 'urine', 'hbsnrmal', 'ctscan', 'stool', 'doctors')); }
public function index() { // $doctors = Doctor::all(); return view('pages.Doctor.doctor', compact('doctors')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $doctors = Doctor::all(); return view('doctor.index', compact('doctors')); }
public function dashboard() { $doctor_1 = Doctor::all()->first(); $doctor_2 = Doctor::all()->last(); return view('home.dashboard', ['doctors_counter' => Doctor::count(), 'managers_counter' => Manager::count(), 'doctor_1' => $doctor_1, 'doctor_2' => $doctor_2]); }