Exemplo n.º 1
0
 public function showGallery()
 {
     Visitor::log();
     Setting::get('config.logo', Null) ? $logoMain = asset('/files/img/' . Setting::get('config.logo')) : ($logoMain = asset('dist/img/logo.png'));
     $images = Gallery::orderBy('sort_id', 'asc')->get();
     $data = ['PageDescr' => Setting::get('config.galdesc'), 'PageWords' => Setting::get('config.galwords'), 'PageAuthor' => '', 'PageTitle' => Setting::get('config.galtitle'), 'logoMain' => $logoMain, 'totalNavLabel' => $this->totalNavLabel(), 'images' => $images];
     return view('gallery')->with($data);
 }
Exemplo n.º 2
0
 public function indexGallery()
 {
     //
     $images = Gallery::orderBy('sort_id', 'asc')->get();
     $data = ['images' => $images, 'NewOrderCounter' => Purchase::Neworders()->count()];
     return view('admin.content.gallery')->with($data);
 }