label('Kleine Überschrift')->maxLength(100), TextInput::make('heading')->label('Überschrift')->required()->maxLength(160), RichEditor::make('text')->label('Text')->toolbarButtons([['bold', 'italic', 'link'], ['bulletList', 'orderedList']]), static::photoSelect('photo_ids', 'Bilder (bis zu 3)', multiple: true)->maxItems(3), Select::make('image_position')->label('Bilder')->options(['right' => 'rechts', 'left' => 'links'])->default('right'), TextInput::make('link_label')->label('Link-Text')->maxLength(80), static::pageSelect('link_page', 'Link zur Seite'), ]; } public static function photoSlots(): array { return ['photo_ids' => ['label' => 'Bilder', 'type' => self::SLOT_MULTIPLE, 'max' => 3]]; } public function data(Theme $theme, array $data): array { return [ 'eyebrow' => $data['eyebrow'] ?? null, 'heading' => $data['heading'] ?? '', 'text' => $this->html($data['text'] ?? null), 'photos' => $this->seasonalPhotos($theme, $data, 'photo_ids') ?? $this->photos($data['photo_ids'] ?? []), 'imagePosition' => $data['image_position'] ?? 'right', 'linkLabel' => $data['link_label'] ?? null, 'linkUrl' => $this->pageUrl($data['link_page'] ?? null), ]; } }