label('Anonymisieren') ->icon(Heroicon::OutlinedEyeSlash) ->color('danger') ->visible(fn (): bool => $this->record->anonymized_at === null && (bool) auth()->user()?->hasRole(UserRole::Admin)) ->requiresConfirmation() ->modalDescription('Name, Kontaktdaten, Notizen und Nachrichten werden unwiderruflich entfernt (z. B. auf Löschwunsch nach DSGVO). Buchungen und Beträge bleiben für die Buchhaltung erhalten.') ->action(function (): void { $this->record->anonymize(); $this->refreshFormData(['first_name', 'last_name', 'email', 'phone', 'street', 'postal_code', 'city', 'notes', 'tags']); Notification::make()->title('Gast anonymisiert')->success()->send(); }), ]; } }