Пример #1
0
 static function show()
 {
     $slides = Slides::where('deleted', '=', 0)->where('pos', '=', 1)->where('active', '=', 1)->get();
     foreach ($slides as $s) {
         echo ' <div class="front"><img src="' . asset('images/slides-top/' . $s->image) . '"/></div>';
     }
 }
Пример #2
0
 public function getIndex()
 {
     $title = 'Tecnographic Venezuela | diseño y desarrollo de paginas web,imagen corporativa y sistemas administrativos';
     $meta = "Somos una empresa de diseño y desarrollo de paginas web en la ciudad de maracay";
     $href = array('#home', '#about', '#project', '#news', '#contact');
     $servicios = Servicios::get();
     $slidesSup = Slides::where('tipo', '=', 1)->where('activo', '=', 1)->where('deleted', '=', 0)->get();
     $slidesInf = Slides::where('tipo', '=', 2)->where('activo', '=', 1)->where('deleted', '=', 0)->get();
     return View::make('home.index')->with('title', $title)->with('href', $href)->with('meta', $meta)->with('servicios', $servicios)->with('slidesSup', $slidesSup)->with('slidesInf', $slidesInf)->with('lang', Session::get('language'));
 }
Пример #3
0
 public function getEditSlides()
 {
     $title = 'Editar slides';
     $slides = Slides::where('deleted', '=', 0)->get();
     return View::make('admin.editSlides')->with('title', $title)->with('slides', $slides);
 }
Пример #4
0
 public function getFront()
 {
     $title = "Portada";
     $slides = Slides::where('deleted', '=', 0)->where('pos', '=', 2)->get();
     return View::make('indexs.portada')->with('title', $title)->with('slides', $slides);
 }