mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-12-24 04:57:13 +01:00
Fixed widgets on admin view
This commit is contained in:
parent
5a63911fe1
commit
aaa4980619
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ class AdminWidget extends BaseWidget
|
||||||
//Card::make(__('Total number of users'), User::count() ),
|
//Card::make(__('Total number of users'), User::count() ),
|
||||||
Stat::make(__('Total amount of games'), Item::where('type', 'game')->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 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 at the moment'), Reserveditem::where('returned_date', null)->count() ),
|
||||||
Stat::make(__('Reservations over time'), Reserveditem::withTrashed()->count() ),
|
Stat::make(__('Reservations over time'), Reserveditem::withTrashed()->count() ),
|
||||||
Stat::make(__('Most reserved game'), $itemName),
|
Stat::make(__('Most reserved game'), $itemName),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue