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>
This commit is contained in:
1 parent
f5f18cd984
commit
d42c42059c
38 files changed
+1279
-23
No files matched your search
@@ -5,12 +5,21 @@
|
||||
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).
|
||||
* 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';
|
||||
@@ -31,6 +40,10 @@ 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),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -39,6 +52,8 @@ 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(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user