Update OjalPresillaResource.php

This commit is contained in:
Lizandro Guarnizo
2026-02-04 16:49:37 -05:00
parent db55dbc09e
commit 1bece1bb09
@@ -153,7 +153,7 @@ class OjalPresillaResource extends Resource
Select::make('proveedor_id') Select::make('proveedor_id')
->label('Proveedor/Usuario Principal') ->label('Proveedor/Usuario Principal')
->relationship('proveedor', 'nombre') ->relationship('proveedor', 'nombre', fn(\Illuminate\Database\Eloquent\Builder $q) => $q->where('categoria', 'empleado'))
->searchable() ->searchable()
->preload() ->preload()
->createOptionForm([ ->createOptionForm([
@@ -164,9 +164,15 @@ class OjalPresillaResource extends Resource
->maxLength(255), ->maxLength(255),
Forms\Components\TextInput::make('telefono') Forms\Components\TextInput::make('telefono')
->maxLength(50), ->maxLength(50),
Forms\Components\Select::make('categoria')
->options([
'empleado' => 'Empleado',
])
->default('empleado')
->required(),
]) ])
->required() ->required()
->helperText('Selecciona el proveedor o usuario principal responsable del proceso'), ->helperText('Selecciona el empleado responsable del proceso'),
TextInput::make('cantidad_enviada') TextInput::make('cantidad_enviada')
->label('Cantidad') ->label('Cantidad')