/** * Show the application welcome screen to the user. * * @return Response */ public function index() { $programs = $this->programRepo->getDropDownArray(); $testimonials = $this->programRepo->getAllTestimonials(); $recent_news = $this->newsRepo->getRecentNews(); return view('pages.index', ['programs' => $programs, 'testimonial_data' => $testimonials, 'recent_news' => $recent_news]); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($slug) { $newsItem = $this->newsRepo->getNewsItem($slug); return view('news/show', ['newsItem' => $newsItem]); }