public function showPatientProfileToDoctor($patientId) { $patient = patient::where('userId', $patientId)->first(); $appointments = appointment::getRecordedAppointments($patientId); return view('doctor.patientProfileByDoctor')->with('patient', $patient)->with('appointments', $appointments); }
public function showDiagnosisRecordList() { $patientId = Auth::user()->userId; $appointments = appointment::getRecordedAppointments($patientId); return view('patient.diagnosisRecord')->with('appointments', $appointments); }