diff --git a/app/Filament/Resources/StickerPrintingResource.php b/app/Filament/Resources/StickerPrintingResource.php index c82edf6..c923c38 100644 --- a/app/Filament/Resources/StickerPrintingResource.php +++ b/app/Filament/Resources/StickerPrintingResource.php @@ -26,6 +26,8 @@ class StickerPrintingResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack'; + protected static ?string $navigationGroup = 'Sticker Reprint'; + public static function form(Form $form): Form { return $form @@ -38,7 +40,6 @@ class StickerPrintingResource extends Resource ->relationship('plant', 'name') ->options(function (callable $get) { $userHas = Filament::auth()->user()->plant_id; - return ($userHas && strlen($userHas) > 0) ? Plant::where('id', $userHas)->pluck('name', 'id')->toArray() : Plant::pluck('name', 'id')->toArray(); }) ->required()