diff --git a/app/Filament/Resources/StickerMasterResource.php b/app/Filament/Resources/StickerMasterResource.php index abcd6a029..46d7ae496 100644 --- a/app/Filament/Resources/StickerMasterResource.php +++ b/app/Filament/Resources/StickerMasterResource.php @@ -82,7 +82,7 @@ class StickerMasterResource extends Resource ->nullable() ->searchable() ->reactive() - ->disabled(fn (Get $get) => !empty($get('id'))) + // ->disabled(fn (Get $get) => !empty($get('id'))) ->live(debounce: 500) // Enable live updates ->afterStateUpdated(function ($state, callable $set, callable $get) { @@ -179,6 +179,7 @@ class StickerMasterResource extends Resource ->options([ '1' => 'Individual', '2' => 'Bundle', + '3' => 'Quantity', ]) ->reactive() ->afterStateUpdated(function ($state, callable $set, callable $get) { @@ -206,6 +207,7 @@ class StickerMasterResource extends Resource ->integer() ->readOnly(fn (callable $get) => $get('material_type') !== "2") ->nullable() + ->minValue(2) ->reactive() ->afterStateUpdated(function ($state, callable $set,callable $get) { if($get('material_type') !== "2")