feat: make tours, flight sections dynamic on homepage

This commit is contained in:
2026-08-17 10:03:50 +03:30
parent 9215fb51c1
commit f7a3599ac4
4 changed files with 122 additions and 332 deletions
+5 -1
View File
@@ -16,8 +16,12 @@ class IndexController extends Controller
->orderByDesc('created_at')
->paginate(4);
$tours = Tour::with(['file' , 'originCity', 'city'])
->orderByDesc('created_at')
->paginate(4);
return view('index' , compact('title' , 'flights'));
return view('index' , compact('title' , 'flights' , 'tours'));
}
}