Select::make('project_type_id')
->columnSpan(6)
->hidden(!$userIsAdmin)
->options(ProjectType::all()->pluck('type', 'id')->toArray())
->relationship('projectType', 'type')
->createOptionForm([
TextInput::make('type')
->required()
->maxLength(255),
])
->editOptionForm([
TextInput::make('type')
->required()
->maxLength(255),
])
->manageOptionActions(function ($action) {
$action
->modalWidth('lg')
->modalFooterActionsAlignment('end');
})
->preload()
->required()
Select::make('project_type_id')
->columnSpan(6)
->hidden(!$userIsAdmin)
->options(ProjectType::all()->pluck('type', 'id')->toArray())
->relationship('projectType', 'type')
->createOptionForm([
TextInput::make('type')
->required()
->maxLength(255),
])
->editOptionForm([
TextInput::make('type')
->required()
->maxLength(255),
])
->manageOptionActions(function ($action) {
$action
->modalWidth('lg')
->modalFooterActionsAlignment('end');
})
->preload()
->required()