public function viewDoctorProfile(Request $request) { $doctorId = $request->doctorId; $doctor = doctor::viewDoctorProfile($doctorId); // if(sizeof($doctor)==0) echo "not found"; // else echo $doctor->departmentId; }
public function importScheduleShow($userId) { $doctor = doctor::viewDoctorProfile($userId); return view('staff.importDoctorSchedule')->with('doctor', $doctor); }