Update InventarioPrendaResource.php
This commit is contained in:
@@ -102,39 +102,11 @@ class InventarioPrendaResource extends Resource
|
|||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
|
|
||||||
Section::make('Distribución')
|
Section::make('Distribuciones')
|
||||||
->schema([
|
->schema([
|
||||||
\Filament\Forms\Components\Repeater::make('distribuciones')
|
\Filament\Forms\Components\Placeholder::make('distribuciones_notice')
|
||||||
->label('Distribuciones por bodega / color / talla')
|
->label('Distribuciones por bodega / color / talla')
|
||||||
->schema([
|
->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.'),
|
||||||
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.'),
|
|
||||||
])
|
])
|
||||||
->columns(1),
|
->columns(1),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user