Section::make('Agregar Documento')
->schema([
Grid::make(4)
->schema([ Select::make('addDocument')
->label('Agregar Documento')
->placeholder("Selecciona una opción")
->options([
'01' => 'Físico',
'02' => 'Electrónico',
])
->default('01')
->createOptionForm([
TextInput::make('name')
->label(('Nombre del documento'))
->required(),
])
->createOptionAction(function (Pages\Forms\Components\Actions\Action $action) {
return $action
->modalHeading(('Nombre del documento'))
->modalButton(('Nombre del documento'))
->modalWidth('lg');
})
->reactive(),
]), ])
Section::make('Agregar Documento')
->schema([
Grid::make(4)
->schema([ Select::make('addDocument')
->label('Agregar Documento')
->placeholder("Selecciona una opción")
->options([
'01' => 'Físico',
'02' => 'Electrónico',
])
->default('01')
->createOptionForm([
TextInput::make('name')
->label(('Nombre del documento'))
->required(),
])
->createOptionAction(function (Pages\Forms\Components\Actions\Action $action) {
return $action
->modalHeading(('Nombre del documento'))
->modalButton(('Nombre del documento'))
->modalWidth('lg');
})
->reactive(),
]), ])