Select::make('event_type_id')
->model(Event::class)
->relationship('type', 'name')
->searchable()
->editOptionForm([
TextInput::make('name')
->label('Name')
->required()
->rules('required'),
TextInput::make('color')
->label('Color')
->type('color')
->required()
])
Select::make('event_type_id')
->model(Event::class)
->relationship('type', 'name')
->searchable()
->editOptionForm([
TextInput::make('name')
->label('Name')
->required()
->rules('required'),
TextInput::make('color')
->label('Color')
->type('color')
->required()
])