Update OjalPresillaResource.php

This commit is contained in:
Lizandro Guarnizo
2026-02-04 16:50:25 -05:00
parent 1bece1bb09
commit 580d908f93
@@ -153,24 +153,9 @@ class OjalPresillaResource extends Resource
Select::make('proveedor_id')
->label('Proveedor/Usuario Principal')
->relationship('proveedor', 'nombre', fn(\Illuminate\Database\Eloquent\Builder $q) => $q->where('categoria', 'empleado'))
->options(fn() => \App\Models\Proveedor::where('categoria', 'empleado')->pluck('nombre', 'id'))
->searchable()
->preload()
->createOptionForm([
Forms\Components\TextInput::make('nombre')
->required()
->maxLength(255),
Forms\Components\TextInput::make('contacto')
->maxLength(255),
Forms\Components\TextInput::make('telefono')
->maxLength(50),
Forms\Components\Select::make('categoria')
->options([
'empleado' => 'Empleado',
])
->default('empleado')
->required(),
])
->required()
->helperText('Selecciona el empleado responsable del proceso'),