git add .

git commit "fix(assets): self-host Chart.js instead of loading from CDN"
This commit is contained in:
2026-08-19 17:03:59 +03:30
parent dfe848c69e
commit 3f46f6356a
15 changed files with 795 additions and 130 deletions
@@ -28,14 +28,21 @@ class DashboardController extends Controller
->orderBy('date')
->get();
$flightViews=Flight::query()
->selectRaw('DATE(created_at) as date,SUM(views) as total')
->where('created_at','>=',now()->subDays(9))
->groupBy('date')
->orderBy('date')
->get();
$logs = ActivityLog::with('admin')
->latest()
->take(5)
->get();
return view('admin.dashboard',compact('adminsCount',
'usersCount','toursCount','flightsCount','tourViews'
,'logs'
'usersCount','toursCount','flightsCount','tourViews',
'flightViews','logs'
));
}
}