/**
  * 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]);
 }
示例#2
0
 public function compose(View $view)
 {
     $program_array = $this->programRepo->getDropDownArray();
     unset($program_array['Cosmetology Operator']);
     unset($program_array['Cosmetology Teacher']);
     $view->with('programs', $program_array);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     if ($id == 'cosmetology-operator' || $id == 'cosmetology-teacher') {
         return redirect('http://erie.toniguy.edu');
     }
     $program_data = $this->programRepo->getProgramData($id);
     $testimonial_data = $this->programRepo->getProgramTestimonials($program_data->id);
     return view('programs.program_page', ['program_data' => $program_data, 'testimonial_data' => $testimonial_data]);
 }
 public function compose(View $view)
 {
     $view->with('programs', $this->programRepo->getDropDownArray());
 }