Files
fewo-stommer/app/Themes/Sections/BookingSection.php
T
LarsandClaude Opus 5.5 d42c42059c Titelvideo, Rundgang mit Kapiteln, naechste freie Termine, ruhigere Buchungsseite
- Webseite > Videos (Datei, Standbild, Kapitel mit Raum im Grundriss); Upload bis 100 MB
- Titelbereich: Video statt Foto (stumme Schleife, respektiert Bewegung reduzieren/Save-Data)
  und naechste freie Termine mit Gesamtpreis (NextFreeStays)
- Neuer Baustein Rundgang (Video) mit waehlbarer Anordnung; Grundriss springt ins Video
- Buchungsseite: Preis unter dem Kalender, Formular rechts, Ablauf als Grafik
- Seebad: Fahrkarten, Fahrplan-Kapitel, Sonnenaufgang als einmaliges Ereignis

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:01:52 +01:00

61 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Themes\Sections;
use App\Themes\Theme;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
/**
* Availability calendar, live price and booking request (Livewire component App\Livewire\BookingRequest), optionally
* with the three steps of the booking path (request → offer → acceptance) as a graphic.
*/
class BookingSection extends Section
{
/** Booking path 1 (KONZEPT §6a) in the guest's words: title => explanation. */
public const STEPS = [
'Anfrage senden' => 'Kostenlos und unverbindlich. Wir halten den Termin sofort für Sie frei.',
'Angebot erhalten' => 'Per E-Mail mit Gesamtpreis und Mietvertrag – in Ruhe prüfen.',
'Annehmen' => 'Mit einem Klick im Angebot. Erst dann ist die Buchung verbindlich.',
];
public static function key(): string
{
return 'booking';
}
public static function label(): string
{
return 'Kalender & Anfrage';
}
public static function icon(): string
{
return 'heroicon-o-calendar-days';
}
public static function schema(): array
{
return [
TextInput::make('heading')->label('Überschrift')->default('Preise & Buchung')->maxLength(120),
Textarea::make('text')->label('Text')->rows(2),
Toggle::make('show_steps')
->label('Ablauf als Grafik zeigen')
->helperText('Anfrage → Angebot per E-Mail → Annahme, über dem Kalender.')
->default(true),
];
}
public function data(Theme $theme, array $data): array
{
return [
'heading' => $data['heading'] ?? null,
'text' => $data['text'] ?? null,
'showSteps' => (bool) ($data['show_steps'] ?? true),
'steps' => self::STEPS,
'property' => $theme->property(),
];
}
}