mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-12-24 09:57:14 +01:00
Fixed widgets on admin view
This commit is contained in:
parent
2da3264dd1
commit
3297a558ab
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class PopularCategoryChart extends ChartWidget
|
||||||
|
|
||||||
$items = Reserveditem::withTrashed()->with('item')->whereHas('item', function($query){
|
$items = Reserveditem::withTrashed()->with('item')->whereHas('item', function($query){
|
||||||
return $query->where('type', 'game');
|
return $query->where('type', 'game');
|
||||||
})->get()->groupBy('item.category_id')->sortBy('item.category_id');
|
})->get()->groupBy('item.category_id')->sortBy('item.category_id')->sortDesc();
|
||||||
|
|
||||||
|
|
||||||
$itemCategoriesCount = [];
|
$itemCategoriesCount = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue