From f127532d7bc018d1b8acb212276d6490b8cfec37 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 19 Jan 2026 22:18:33 -0500 Subject: [PATCH] Update InventarioPrendaResource.php --- .../Resources/InventarioPrendaResource.php | 34 ++----------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/app/Filament/Resources/InventarioPrendaResource.php b/app/Filament/Resources/InventarioPrendaResource.php index 7fb8ac1..8dc8f5d 100644 --- a/app/Filament/Resources/InventarioPrendaResource.php +++ b/app/Filament/Resources/InventarioPrendaResource.php @@ -102,39 +102,11 @@ class InventarioPrendaResource extends Resource ]) ->columns(2), - Section::make('Distribución') + Section::make('Distribuciones') ->schema([ - \Filament\Forms\Components\Repeater::make('distribuciones') + \Filament\Forms\Components\Placeholder::make('distribuciones_notice') ->label('Distribuciones por bodega / color / talla') - ->schema([ - Select::make('bodega_id') - ->label('Bodega') - ->options(fn () => \App\Models\Bodega::pluck('nombre', 'id')->toArray()) - ->searchable() - ->required(), - - Select::make('color_id') - ->label('Color') - ->options(fn () => \App\Models\Color::pluck('name', 'id')->toArray()) - ->searchable() - ->nullable(), - - Select::make('size_id') - ->label('Talla') - ->options(fn () => \App\Models\Size::pluck('name', 'id')->toArray()) - ->searchable() - ->nullable(), - - TextInput::make('cantidad') - ->label('Cantidad') - ->numeric() - ->required() - ->minValue(1), - ]) - ->columns(1) - ->dehydrated(false) - ->minItems(0) - ->helperText('Agrega una o varias filas para distribuir la cantidad terminada entre bodegas/variantes.'), + ->content('Gestiona las distribuciones desde la sección "Distribuciones" más abajo en la página. Usar el botón "Crear" para añadir nuevas distribuciones.'), ]) ->columns(1), ]);