public function showPharmacistProfile() { $user = User::where('userId', Auth::user()->userId)->first(); $departments = department::getDepartmentArray(); return view('pharmacist.pharmacistProfile')->with('user', $user)->with('departments', $departments); }