From 5a63911fe18966dddd6c2c807c42cbca6e152dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna-Sara=20S=C3=A9lea?= Date: Sat, 1 Nov 2025 09:21:54 +0100 Subject: [PATCH] Fixed widgets on admin view --- app/Filament/Widgets/PopularCategoryChart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Widgets/PopularCategoryChart.php b/app/Filament/Widgets/PopularCategoryChart.php index 5e63ef2..1b3fdeb 100644 --- a/app/Filament/Widgets/PopularCategoryChart.php +++ b/app/Filament/Widgets/PopularCategoryChart.php @@ -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'); + })->get()->groupBy('item.category_id')->sortByDesc('item.category_id'); $itemCategoriesCount = [];