Fixed widgets on admin view

This commit is contained in:
Anna-Sara Sélea 2025-11-01 08:59:02 +01:00
parent 3297a558ab
commit 3076fae039

View file

@ -36,7 +36,7 @@ class PopularCategoryChart extends ChartWidget
$items = Reserveditem::withTrashed()->with('item')->whereHas('item', function($query){
return $query->where('type', 'game');
})->get()->groupBy('item.category_id')->sortBy('item.category_id')->sortDesc();
})->get()->groupBy('item.category_id')->sortBy('item.category_id');
$itemCategoriesCount = [];