git add .

git commit "feat: implement activity logging for tours and flights"
This commit is contained in:
2026-08-19 14:59:26 +03:30
parent 7cf68cc02f
commit 4d8839e802
9 changed files with 326 additions and 3 deletions
@@ -20,8 +20,16 @@ class DashboardController extends Controller
$flightsCount = Flight::count();
$tourViews= Tour::query()
->selectRaw('DATE(create_at) as date,SUM(views) as total')
->where('created_at','>=',now()->subDays(9))
->qroupBy('date')
->orderBy('date')
->get();
return view('admin.dashboard',compact('adminsCount',
'usersCount','toursCount','flightsCount'
'usersCount','toursCount','flightsCount','tourViews'
));
}
}