fix: update homepage
This commit is contained in:
@@ -11,14 +11,17 @@ class IndexController extends Controller
|
|||||||
{
|
{
|
||||||
$tours = Tour::query()
|
$tours = Tour::query()
|
||||||
->where('status', 1)
|
->where('status', 1)
|
||||||
->latest()
|
->orderByDesc('created_at')
|
||||||
->paginate(6, ['*'], 'tours_page');
|
->paginate(6, ['*'], 'tours_page');
|
||||||
|
|
||||||
$flights = Flight::query()
|
$flights = Flight::query()
|
||||||
->where('status', 1)
|
->where('status', 1)
|
||||||
->latest()
|
->orderByDesc('created_at')
|
||||||
->paginate(6, ['*'], 'flights_page');
|
->paginate(6, ['*'], 'flights_page');
|
||||||
|
|
||||||
return view('index', compact('tours', 'flights'));
|
return view('index', [
|
||||||
|
'tours' => $tours,
|
||||||
|
'flights' => $flights,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+203
-1753
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user