label('Überschrift')->default('Aktuelle Angebote')->maxLength(120), ]; } public function data(Theme $theme, array $data): array { $offers = $theme->property()?->specialOffers() ->active() ->where('is_public', true) ->whereNull('code') ->where(fn ($query) => $query->whereNull('bookable_until')->orWhere('bookable_until', '>=', now())) ->get() ?? collect(); $featured = $theme->appearance?->featuredOffer; if ($featured) { $offers = $offers->reject(fn (SpecialOffer $offer): bool => $offer->is($featured))->prepend($featured); } return [ 'heading' => $data['heading'] ?? null, 'offers' => $offers, 'featuredId' => $featured?->id, ]; } }