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