From b418e780b0cd7c102a262ab94aa86dc8c94186eb Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 25 Jun 2025 15:38:11 +0530 Subject: [PATCH] issue solved for multiple charts displayed in production line count --- app/Filament/Pages/Dashboard.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Filament/Pages/Dashboard.php b/app/Filament/Pages/Dashboard.php index 14c074cdf..b5f5d6cfa 100644 --- a/app/Filament/Pages/Dashboard.php +++ b/app/Filament/Pages/Dashboard.php @@ -53,6 +53,15 @@ class Dashboard extends \Filament\Pages\Dashboard { return 'Production Line Count'; } + public function getWidgets(): array + { + $widgets = []; + + if (CumulativeChart::canView()) { + $widgets[] = CumulativeChart::class; + } + return $widgets; + } public static function canAccess(): bool {