/** * Display a listing of the resource. * * @return View */ public function index(TourRepository $tourRepository) { $featuredTours = $tourRepository->getFeaturedTours(); $nonFeaturedTours = $tourRepository->getNonFeaturedTours(500); $draftTours = $tourRepository->getDraftTours(); $pageTitle = 'Tour Vacation Packages'; return view('tours.index', compact('pageTitle', 'featuredTours', 'nonFeaturedTours', 'draftTours')); }