Esempio n. 1
0
 public function getIndex()
 {
     $weights_list = [];
     for ($i = 1; $i <= Slider::count(); $i++) {
         $weights_list[$i] = $i;
     }
     return view('admin.slider.index', ['slides' => Slider::orderBy('weight')->get(), 'weights_list' => $weights_list]);
 }
Esempio n. 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view('home.index', ['blocks_content' => BlocksContent::all(), 'slider' => Slider::orderBy('weight')->get()]);
 }
Esempio n. 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $sliders = Slider::orderBy('created_at', 'DESC')->paginate(15);
     return view('backend.slider.index', compact('sliders'));
 }