Exemplo n.º 1
0
 /**
  * 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]);
 }
Exemplo n.º 2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($slug)
 {
     $newsItem = $this->newsRepo->getNewsItem($slug);
     return view('news/show', ['newsItem' => $newsItem]);
 }