where('status', '=' , FlightStatus::AVAILABLE) ->orderByDesc('created_at') ->paginate(2, ['*'], 'flights_page'); $tours = Tour::with(['file' , 'originCity', 'city']) ->where('status', '=', TourStatus::AVAILABLE) ->orderByDesc('created_at') ->paginate(2, ['*'], 'tours_page');e(4); return view('index' , compact('title' , 'flights' , 'tours')); } }