예제 #1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function Home()
 {
     $courses = $this->course->getPaginated(6);
     $notification = \Model\Notification\Notification::orderBy('end_date')->where('start_date', '<=', date('Y-m-d 23:59:59'))->where('end_date', '>=', date('Y-m-d 00:00:00'))->first();
     // return redirect()->route('front.courses');
     return view('Front::landing', ['courses' => $courses, 'notification' => $notification]);
 }
예제 #2
0
 /**
  * Display a listing of the courses.
  *
  * @return Response
  */
 public function index()
 {
     $courses = $this->courseRepository->getPaginated();
     return view('Teacher::course.index', ['courses' => $courses]);
 }