/** * * @return type view */ public function about() { $data = ['title' => 'About us', 'number' => Contact::find(1)->tel, 'crew' => Crew::all()]; return view('pages.mainUserPages.about')->with($data); }
/** * Returns changeCrew view * @return type */ public function changeCrew() { if (Auth::check()) { $data = ['crew' => Crew::all(), 'title' => 'Crew']; return view('pages.options.changeCrew')->with($data); } else { return Redirect::route('admin'); } }