/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $courses = Course::find($id);
     $programStudies = ProgramStudy::lists('name', 'id');
     $faculties = Faculty::lists('faculty_name', 'faculty_code');
     $studies = Study::lists('study_name', 'id');
     return view('dashboard.admin.course.edit', ['course' => $courses, 'programStudy' => $programStudies, 'faculty' => $faculties, 'study' => $studies]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $students = Student::find($id);
     $faculties = Faculty::lists('faculty_name', 'faculty_code');
     $studies = Study::lists('study_name', 'id');
     $programStudies = ProgramStudy::lists('name', 'id');
     $academicRegistrations = AcademicRegistration::lists('academic_year', 'id');
     $religions = Religion::lists('name', 'id');
     return view('dashboard.admin.student.edit', ['student' => $students, 'faculty' => $faculties, 'study' => $studies, 'programStudy' => $programStudies, 'academicRegistration' => $academicRegistrations, 'religion' => $religions]);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $programStudies = ProgramStudy::find($id);
     $programStudies->delete();
     Session::flash('message', 'You have successfully deleted program study');
     return Redirect::to('dashboard/admin/program-studies');
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $schedules = Schedule::find($id);
     $academicRegistrations = AcademicRegistration::lists('academic_year', 'id');
     $programStudies = ProgramStudy::lists('name', 'id');
     $courses = Course::lists('course_name', 'id');
     $studies = Study::lists('study_name', 'id');
     $lecturers = Lecturer::lists('name', 'id');
     $days = Day::lists('day', 'id');
     return view('dashboard.admin.schedule.edit', ['schedule' => $schedules, 'academicRegistration' => $academicRegistrations, 'programStudy' => $programStudies, 'course' => $courses, 'study' => $studies, 'lecturer' => $lecturers, 'day' => $days]);
 }