From 587d91d79077c2d0683c50c68cc1de149eb5840f Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 9 Dec 2025 17:14:50 +0530 Subject: [PATCH] Added sub group name in sticker printings --- app/Filament/Resources/StickerPrintingResource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()