Fixed widgets on admin view

This commit is contained in:
Anna-Sara Sélea 2025-11-01 09:33:57 +01:00
parent 5a63911fe1
commit aaa4980619

View file

@ -35,6 +35,7 @@ class AdminWidget extends BaseWidget
//Card::make(__('Total number of users'), User::count() ),
Stat::make(__('Total amount of games'), Item::where('type', 'game')->count() ),
Stat::make(__('Total amount of items'), Item::where('type', 'item')->count() ),
Stat::make(__('Total amount of literature'), Item::where('type', 'literature')->count() ),
Stat::make(__('Reservations at the moment'), Reserveditem::where('returned_date', null)->count() ),
Stat::make(__('Reservations over time'), Reserveditem::withTrashed()->count() ),
Stat::make(__('Most reserved game'), $itemName),