From db901af048d33d463757b0ff91715f97a062041a Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 11:26:06 +0530 Subject: [PATCH] changed logic in item overview for todaya nd yesterday filter --- app/Filament/Widgets/ItemOverview.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Filament/Widgets/ItemOverview.php b/app/Filament/Widgets/ItemOverview.php index a724fac0..6b01f075 100644 --- a/app/Filament/Widgets/ItemOverview.php +++ b/app/Filament/Widgets/ItemOverview.php @@ -167,14 +167,11 @@ class ItemOverview extends ChartWidget $dailyPlan = $weeklyPlan / 7; + // Hourly plan: 684 / 22.5 = 30.4 $hourlyPlan = round($dailyPlan / 22.5, 2); - $planData = array_fill( - 0, - count($orderedData), - $hourlyPlan - ); - + // Same hourly plan value for every hour + $planData = array_fill(0, 24, $hourlyPlan); } elseif ($activeFilter === 'this_month') {