1
0
forked from poc/pds

issue solved for multiple charts displayed in production line count

This commit is contained in:
dhanabalan
2025-06-25 15:38:11 +05:30
parent edc8a8f37b
commit b418e780b0

View File

@@ -53,6 +53,15 @@ class Dashboard extends \Filament\Pages\Dashboard
{ {
return 'Production Line Count'; return 'Production Line Count';
} }
public function getWidgets(): array
{
$widgets = [];
if (CumulativeChart::canView()) {
$widgets[] = CumulativeChart::class;
}
return $widgets;
}
public static function canAccess(): bool public static function canAccess(): bool
{ {