public function degree_program() { $degrees = Degree::all(); return view('frontend.academic')->with('degrees', $degrees); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $department = Department::find($id); $degrees = Degree::all(); return view('admin.department.department_edit', compact('department', 'degrees')); }