/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tours = Tour::latest('created_at')->published()->get(); return view('vietnam.index', compact('tours')); }
/** * Get all tours * * @return collection */ public function getAllTours($perPage = 100) { return Tour::latest('id')->paginate($perPage); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tours = Tour::latest('created_at')->get(); $destinations = TourDestination::orderBy('name')->get(); return view('admin.tours.index', ['tours' => $tours, 'destinations' => $destinations]); }