git add .
git commit "fix(assets): self-host Chart.js instead of loading from CDN"
This commit is contained in:
@@ -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'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user