Update InventarioPrendaResource.php

This commit is contained in:
Lizandro Guarnizo
2026-01-29 22:24:09 -05:00
parent b41d7cd03f
commit 5c9089e601
@@ -117,8 +117,8 @@ class InventarioPrendaResource extends Resource
Select::make('estado') Select::make('estado')
->options([ ->options([
'en_bodega' => 'En bodega', 'en_bodega' => 'En bodega',
'lista_despacho' => 'Lista para despacho',
]) ])
->default('en_bodega')
->required(), ->required(),
]) ])
->columns(2), ->columns(2),
@@ -151,11 +151,10 @@ class InventarioPrendaResource extends Resource
BadgeColumn::make('estado') BadgeColumn::make('estado')
->formatStateUsing(fn($state) => match ($state) { ->formatStateUsing(fn($state) => match ($state) {
'en_bodega' => 'En bodega', 'en_bodega' => 'En bodega',
'lista_despacho' => 'Lista para despacho', default => $state,
}) })
->colors([ ->colors([
'secondary' => 'en_bodega', 'primary' => 'en_bodega',
'success' => 'lista_despacho',
]), ]),
]) ])
->defaultSort('created_at', 'desc') ->defaultSort('created_at', 'desc')