columns(3) ->components([ Section::make('Kontakt') ->columnSpan(2) ->columns(2) ->schema([ TextInput::make('first_name')->label('Vorname')->required()->maxLength(255), TextInput::make('last_name')->label('Nachname')->required()->maxLength(255), TextInput::make('email')->label('E-Mail')->email()->required()->maxLength(255), TextInput::make('phone')->label('Telefon')->tel()->maxLength(50), TextInput::make('street')->label('Straße')->maxLength(255), TextInput::make('postal_code')->label('PLZ')->maxLength(20), TextInput::make('city')->label('Ort')->maxLength(255), Select::make('country') ->label('Land') ->options(['DE' => 'Deutschland', 'AT' => 'Österreich', 'CH' => 'Schweiz', 'NL' => 'Niederlande', 'DK' => 'Dänemark', 'PL' => 'Polen']) ->default('DE') ->required(), ]), Section::make('Verwaltung') ->columnSpan(1) ->schema([ TagsInput::make('tags') ->label('Markierungen') ->suggestions(['Stammgast', 'Familie', 'Empfehlung', 'Nicht wieder vermieten']), TextEntry::make('marketing_consent_at') ->label('Einwilligung Angebote per E-Mail') ->state(fn (?Guest $record): string => $record?->marketing_consent_at ? 'bestätigt am '.$record->marketing_consent_at->format('d.m.Y') : 'keine'), TextEntry::make('anonymized_at') ->label('Anonymisiert') ->dateTime('d.m.Y') ->visible(fn (?Guest $record): bool => $record?->anonymized_at !== null), Textarea::make('notes')->label('Notizen')->rows(5), ]), ]); } }