Esempio n. 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $footer = Footer::find($id);
     $footer->fill($request->all());
     $footer->save();
     Session::flash('message', 'Data Telah di Update');
     return Redirect::to('/footer');
 }
Esempio n. 2
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);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $lastFooters = Footer::latest()->get();
     return view('footer.index', compact('lastFooters'));
 }
Esempio n. 4
0
 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);
 }