fix: update homepage

This commit is contained in:
2026-08-20 08:21:27 +03:30
parent 854324813e
commit 2d9b56a83e
2 changed files with 213 additions and 1760 deletions
+6 -3
View File
@@ -11,14 +11,17 @@ class IndexController extends Controller
{
$tours = Tour::query()
->where('status', 1)
->latest()
->orderByDesc('created_at')
->paginate(6, ['*'], 'tours_page');
$flights = Flight::query()
->where('status', 1)
->latest()
->orderByDesc('created_at')
->paginate(6, ['*'], 'flights_page');
return view('index', compact('tours', 'flights'));
return view('index', [
'tours' => $tours,
'flights' => $flights,
]);
}
}