Beispiel #1
0
 public function showAgenda($slug)
 {
     $data['menuse'] = Menu::orderBy('id')->get()->keyBy('id');
     $data['agenda5'] = Agenda::orderBy('id', 'desc')->take(4)->get();
     $data['footers'] = Footer::orderBy('id')->get()->keyBy('id');
     $data['post'] = Agenda::where('slug', '=', $slug)->firstOrFail();
     return view('agenda.showAgenda')->with('data', $data);
 }
 public function visi()
 {
     $data['menuse'] = Menu::orderBy('id')->get()->keyBy('id');
     $data['agenda5'] = Agenda::orderBy('id', 'desc')->take(4)->get();
     $data['footers'] = Footer::orderBy('id')->get()->keyBy('id');
     $data['berita-footer'] = Berita::orderBy('id', 'desc')->take(9)->get();
     $data['tentang-unit'] = AdminTentang::orderBy('id')->get()->keyBy('id');
     return view('visi')->with('data', $data);
 }