1
0
forked from poc/pds

Updated permission name of hourly_production page

This commit is contained in:
dhanabalan
2025-05-31 10:03:19 +05:30
parent 7bf910c800
commit 03cbd6f877

View File

@@ -2,6 +2,7 @@
namespace App\Filament\Pages; namespace App\Filament\Pages;
use App\Filament\Widgets\ItemOverview;
use App\Models\Plant; use App\Models\Plant;
use Filament\Forms\Components\Select; use Filament\Forms\Components\Select;
use Filament\Forms\Form; use Filament\Forms\Form;
@@ -77,18 +78,18 @@ class HourlyProduction extends page
public static function getNavigationLabel(): string public static function getNavigationLabel(): string
{ {
return 'Hourly Production Count'; return 'Production Hourly Count';
} }
public static function canAccess(): bool public static function canAccess(): bool
{ {
return Auth::check() && Auth::user()->can('view production dashboard'); return Auth::check() && Auth::user()->can('view production hourly count dashboard');
} }
public function getWidgets(): array public function getWidgets(): array
{ {
return [ return [
\App\Filament\Widgets\ItemOverview::class, ItemOverview::class,
]; ];
} }
} }