public function home()
 {
     $categories = $this->categories->get()->linkNodes()->toTree();
     $products = $this->products->featured()->paginate(8);
     $sliders = Slider::all();
     return view('frontend.home', compact('categories', 'products', 'sliders'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index($id)
 {
     $product = Product::where('id', $id)->get()[0];
     $sliders = Slider::all();
     $categories = Category::all();
     return view('product', compact('sliders', 'categories', 'product'));
 }
 public function welcome(Service $serviceModel)
 {
     $sliders = Slider::all();
     $services = $serviceModel->getService();
     $page = Page::where('name', '=', 'home')->firstOrFail();
     return view('welcome')->with('sliders', $sliders)->with('services', $services)->with('page', $page);
 }
Esempio n. 4
0
 public function index()
 {
     Carbon::setLocale('nl');
     $news = News::latest()->take(3)->get();
     $sliders = Slider::all();
     return view('pages.public.index', compact('news', 'sliders'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     $big_images = $sliders->where('type', 'big_image');
     $small_images = $sliders->where('type', 'small_image');
     return view('admin.index', compact('big_images', 'small_images'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $slides = Slider::all();
     if ($slides === null) {
         $slides = null;
     }
     return \View::make('admin.slide.manage_slide')->withSlides($slides);
 }
Esempio n. 7
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $dataSlider = Slider::all();
     $dataFirst = Slider::first();
     $dataBanner = Banner::all();
     $produk = Produk::paginate(2);
     $tipe = Type::all();
     return view('FrontEnd.home', compact('dataSlider', 'dataFirst', 'dataBanner', 'produk', 'tipe'));
 }
 public function index()
 {
     $activities = Activity::all()->take(2);
     $title = trans('default.home');
     $locale = App::getLocale();
     $homeText = HomeText::first();
     $sliders = Slider::all();
     return view('pages.index', compact('title', 'activities', 'locale', 'homeText', 'sliders'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     $categories = Category::all();
     $products = Product::orderBy('id', 'desc')->take(12)->get();
     $discount_products = Product::where('discount', '=', 'true')->take(12)->get();
     $random_products = Product::orderByRaw("RAND()")->take(10)->get();
     return view('home', compact('sliders', 'categories', 'products', 'discount_products', 'random_products'));
 }
Esempio n. 10
0
 public function index()
 {
     $cart = \Session::get('cart');
     $itemactive = Slider::where('order', 1)->first();
     $items = Slider::all();
     //Obtener todos los items para el banner Atraves del modelo y extenderlo hasta partials/slider
     $products = Product::all();
     //Obtener todos los productos Atraves del modelo
     //dd($products); //Herramienta de laravel que muestra los datos en el modo debug
     return view('store.index', compact('products', 'items', 'itemactive', 'cart'));
     //Envia los datos a la vista
 }
 public function decrease_slider_position($position)
 {
     $number_of_slider = Slider::all()->count();
     if ($position < $number_of_slider) {
         $current_id = Slider::wherePosition($position)->first()->id;
         $next_id = Slider::wherePosition($position + 1)->first()->id;
         $current_slider = Slider::whereId($current_id)->first();
         $current_slider->position = $position + 1;
         $current_slider->save();
         $next_slider = Slider::whereId($next_id)->first();
         $next_slider->position = $position;
         $next_slider->save();
     }
     return redirect('slider/all');
 }
 public function slider_image_store(Request $request)
 {
     $all_slider = Slider::all();
     if ($all_slider->isEmpty()) {
         $position = 1;
     } else {
         $position = Slider::all()->last()->position + 1;
     }
     $slug = uniqid();
     $file = $request->file('slider_image');
     $file->move('uploads/', $slug . '__' . $file->getClientOriginalName());
     $file_text = $slug . '__' . $file->getClientOriginalName();
     $data = ['heading_text' => $request->get('heading_text'), 'paragraph_text' => $request->get('paragraph_text'), 'button_text' => $request->get('button_text'), 'slider_image' => $file_text, 'position' => $position];
     $slider = new Slider($data);
     $slider->save();
     return redirect('/slider/all');
 }
Esempio n. 13
0
 public function index()
 {
     $data = ['slides' => Slider::all(), 'categories' => Category::withEvents()->get(), 'events' => Event::getComingSoonEvents()];
     $data['quantity_slides'] = count($data['slides']);
     return view('site.home.index', $data);
 }
 public function travel()
 {
     $sliders = Slider::all();
     return View('travel')->with('sliders', $sliders);
 }
Esempio n. 15
0
 /**
  * Display all slider page
  *
  * @return $this
  */
 public function showAllSlider()
 {
     $data = ['title' => 'Teleaus Admin Dashboard | All Slider', 'sliders' => Slider::all()];
     return view('dashboard.allSlider')->with($data);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     $title = 'Administration des images de la page d\'accueil';
     return view('admin.sliders.index', compact('title', 'sliders'));
 }
Esempio n. 17
0
 /**
  * Отображает список слайдов.
  *
  * @return Response
  */
 public function getIndex()
 {
     // Получаем список слайдов
     $data['sliders'] = Slider::all();
     return view('admin.slider.index', $data);
 }
Esempio n. 18
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     return view('pages.admin.sliders.index', compact('sliders'));
 }
Esempio n. 19
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     $categories = Category::all();
     return view('cart', compact('sliders', 'categories'));
 }
Esempio n. 20
0
 public function slider()
 {
     //        $sliders = Slider::where('status','=',1)->orderBy('sort','ASC')->get();
     $sliders = Slider::all();
     return view('panel.pages.slider', compact('sliders'));
 }
Esempio n. 21
0
 public function index()
 {
     $nav = new category();
     $menu_top = $nav->menu_top($nav->all()->toArray());
     $hot = new Product();
     $man = new Product();
     $slider = Slider::all();
     $hotman = $man->getHotman();
     $hotPro = $hot->getHotPro();
     $news = News::getNewsInIndex();
     $auth = User::all();
     return view('frontend.pages.index', array('menu_top' => $menu_top, 'hotPro' => $hotPro, 'hotman' => $hotman, 'slider' => $slider, 'news' => $news, 'auth' => $auth));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $sliders = Slider::all();
     return View('sliders.index')->with('sliders', $sliders);
 }
Esempio n. 23
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $slider = Slider::all();
     return view('backend.pages.slider.listSlide', compact('slider'));
 }