components([ Section::make('Newsletter') ->columns(2) ->columnSpanFull() ->schema([ TextInput::make('company') ->label('Firma') ->required(), TextInput::make('email') ->prefixIcon(Heroicon::OutlinedEnvelope) ->required(), Select::make('mail_gruppen_id') ->required() ->label('Mail Gruppe') ->relationship(name: 'mail_gruppen', titleAttribute: 'name'), Toggle::make('deaktiviert'), ]), Section::make('Persönliche Anrede') ->columns(2) ->columnSpanFull() ->schema([ Radio::make('anrede') ->required() ->options([ 'Höflich' => 'Höflich', 'Freundschaftlich' => 'Freundschaftlich', ]), Select::make('gender') ->required() ->label('Geschlecht') ->options([ '0' => 'Herr', '1' => 'Frau', '2' => 'Diverse', ]), DatePicker::make('vereidigung')->required() ->prefixIcon('heroicon-o-calendar') ->native(false), TextInput::make('first_name') ->label('Vorname') ->required(), TextInput::make('last_name') ->label('Nachname') ->required(), ]), Section::make('Adresse') ->columns(3) ->columnSpanFull() ->schema([ TextInput::make('address') ->label('Straße'), TextInput::make('zip') ->label('Zip'), TextInput::make('city') ->label('Ort'), ]), ]); } } // `address` varchar(255) DEFAULT NULL, // `zip` varchar(255) DEFAULT NULL, // `city` varchar(255) DEFAULT NULL, // `vereidigung` t