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
12c22f5069
commit
82ac169747
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class PopularCategoryChart extends ChartWidget
|
||||||
{
|
{
|
||||||
$categories = Category::get()->sortBy('id')->pluck('name');
|
$categories = Category::get()->sortBy('id')->pluck('name');
|
||||||
|
|
||||||
$items = Reserveditem::withTrashed()->with('item')->get()->groupBy('item.category_id')->orderBy('item.category_id', 'desc');
|
$items = Reserveditem::withTrashed()->with('item')->get()->groupBy('item.category_id')->sortByDesc('item.category_id');
|
||||||
$itemCategoriesCount = [];
|
$itemCategoriesCount = [];
|
||||||
|
|
||||||
foreach ($items as $item){
|
foreach ($items as $item){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue