Theme-System mit Basis-Theme Ostsee-Licht, Bausteinen und saisonalen Erscheinungsbildern
- Sites (Domain, Theme, Farben; mehrfähig für weitere Vermieter), Seiten aus Bausteinen mit Menüs, Erscheinungsbilder mit jährlichem Zeitplan, Priorität und signierter Vorschau - Theme-Kern (app/Themes): Manifest, Registry, Vererbung (Child-Themes), Token-Farben als CSS-Variablen, Bausteinkatalog als Registry (config/themes.php) - 15 Bausteine: Titelbereich mit Suche, Eckdaten, Text mit Bildern, Galerie, Ausstattung, Lage, Preise, Angebote, Kalender & Anfrage, Bewertungen, Gastgeber, FAQ, Abschluss, Kontakt, Fließtext - Theme Ostsee-Licht: Layout, Kopf/Fuß, Banner, mobile Buchungsleiste, Lightbox, selbst gehostete Schriften, Reduced Motion - Seiten Start, Wohnung, Kühlungsborn, Preise & Buchung, Kontakt, Impressum, Datenschutz; Sitemap, robots.txt, JSON-LD - Admin: Seiten-Baukasten, Erscheinungsbilder, Websites - Dokumentation docs/THEMES.md inkl. Übergabe für die Design-Sitzung Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2c48013ad
commit
66e82d61f5
119 files changed
+4066
-481
No files matched your search
@@ -84,6 +84,7 @@ public function mount(?Property $property = null): void
|
||||
{
|
||||
$this->propertyId = ($property ?? Property::query()->where('is_active', true)->firstOrFail())->id;
|
||||
$this->month = CarbonImmutable::today()->format('Y-m');
|
||||
$this->prefillFromSearch();
|
||||
$this->utm = collect(request()->only(['utm_source', 'utm_medium', 'utm_campaign']))
|
||||
->filter(fn ($value): bool => is_string($value) && $value !== '')
|
||||
->map(fn (string $value): string => mb_substr($value, 0, 100))
|
||||
@@ -314,6 +315,26 @@ private function stayRequest(): StayRequest
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Dates and guests from the availability search of the hero section (?anreise=…&abreise=…&personen=…).
|
||||
*/
|
||||
private function prefillFromSearch(): void
|
||||
{
|
||||
$arrival = rescue(fn () => CarbonImmutable::createFromFormat('!Y-m-d', (string) request()->query('anreise')) ?: null, null, false);
|
||||
$departure = rescue(fn () => CarbonImmutable::createFromFormat('!Y-m-d', (string) request()->query('abreise')) ?: null, null, false);
|
||||
|
||||
if ($arrival && $departure && $departure->greaterThan($arrival) && $arrival->greaterThanOrEqualTo(CarbonImmutable::today())) {
|
||||
$this->arrival = $arrival->toDateString();
|
||||
$this->departure = $departure->toDateString();
|
||||
$this->month = $arrival->format('Y-m');
|
||||
}
|
||||
|
||||
$guests = (int) request()->query('personen');
|
||||
if ($guests >= 1 && $guests <= $this->property->max_guests) {
|
||||
$this->guests = $guests;
|
||||
}
|
||||
}
|
||||
|
||||
private function firstMonth(): CarbonImmutable
|
||||
{
|
||||
return CarbonImmutable::createFromFormat('!Y-m', $this->month);
|
||||
|
||||
Reference in new issue
Block a user