- 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>
61 lines
1.9 KiB
PHP
61 lines
1.9 KiB
PHP
<?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(),
|
||
];
|
||
}
|
||
}
|