Update InventarioPrendaResource.php
This commit is contained in:
@@ -117,8 +117,8 @@ class InventarioPrendaResource extends Resource
|
||||
Select::make('estado')
|
||||
->options([
|
||||
'en_bodega' => 'En bodega',
|
||||
'lista_despacho' => 'Lista para despacho',
|
||||
])
|
||||
->default('en_bodega')
|
||||
->required(),
|
||||
])
|
||||
->columns(2),
|
||||
@@ -151,11 +151,10 @@ class InventarioPrendaResource extends Resource
|
||||
BadgeColumn::make('estado')
|
||||
->formatStateUsing(fn($state) => match ($state) {
|
||||
'en_bodega' => 'En bodega',
|
||||
'lista_despacho' => 'Lista para despacho',
|
||||
default => $state,
|
||||
})
|
||||
->colors([
|
||||
'secondary' => 'en_bodega',
|
||||
'success' => 'lista_despacho',
|
||||
'primary' => 'en_bodega',
|
||||
]),
|
||||
])
|
||||
->defaultSort('created_at', 'desc')
|
||||
|
||||
Reference in New Issue
Block a user