Update InventarioPrendaResource.php
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user