/** * Show training page * * @return $this */ public function index() { $data = ['title' => 'Teleaus | Training Page', 'parentPage' => 'Recources', 'page' => 'Training Programs', 'courses' => Course::paginate(10)]; return view('training')->with($data); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $courses = Course::paginate(10); return view('courses.index', compact('courses')); }
/** * Display a listing of the courses resource. * * @return \Illuminate\Http\Response */ public function index() { $courses = Course::paginate(15); return view('public.courses')->with('courses', $courses); }