feat : visits table in admin dashboard
This commit is contained in:
@@ -29,9 +29,11 @@ class DashboardController extends Controller
|
||||
->orderBy('visit_date')
|
||||
->get();
|
||||
|
||||
$recentVisits = Visit::orderByDesc('created_at')->paginate(15);
|
||||
|
||||
|
||||
return view('admin.dashboard', compact('flightsCount', 'usersCount',
|
||||
'bookingsCount', 'indexPageCont' , 'visits'));
|
||||
'bookingsCount', 'indexPageCont' , 'visits' , 'recentVisits'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user