label('Kleine Überschrift')->maxLength(100), TextInput::make('title')->label('Überschrift')->helperText('*Wort* wird hervorgehoben (kursiv).')->required()->maxLength(160), Textarea::make('text')->label('Text')->rows(2)->maxLength(400), static::photoSelect('photo_id', 'Foto (wenn das Erscheinungsbild keins vorgibt)'), Toggle::make('show_search')->label('Verfügbarkeitssuche anzeigen')->default(true), ]; } public function data(Theme $theme, array $data): array { $fallback = isset($data['photo_id']) ? Photo::find($data['photo_id']) : Photo::query()->published()->first(); return [ 'eyebrow' => $theme->text('hero.eyebrow', $data['eyebrow'] ?? null), 'title' => $theme->text('hero.title', $data['title'] ?? $theme->site->name), 'text' => $theme->text('hero.text', $data['text'] ?? null), 'photo' => $theme->heroPhoto($fallback), 'showSearch' => (bool) ($data['show_search'] ?? true), 'property' => $theme->property(), ]; } }