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); }