/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $crs = Course::find($id); $aff = Affiliate::all(); $stm = Stream::all(); $lvl = Level::all(); return view('admin/edit_course')->with('course', $crs)->with('affiliates', $aff)->with('streams', $stm)->with('levels', $lvl); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $learners = \App\Student::all(); $staff = Staff::all(); $subjects = \App\Subject::all(); $streams = \App\Stream::all(); $classes = \App\Grade::all(); return view('admin.index')->with('title', 'SMS|Dashboard')->with('learners', $learners)->with('staff', $staff)->with('subjects', $subjects)->with('streams', $streams)->with('classes', $classes); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $stream = Stream::all(); return view('admin/stream')->with('streams', $stream); }