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:
LarsandClaude Opus 5.5 committed 2026-10-30 11:01:52 +01:00
1 parent f5f18cd984
commit d42c42059c
38 files changed
+1279 -23

No files matched your search

+22
View File
@@ -6,6 +6,7 @@
use App\Filament\Forms\Components\PhotoSelect;
use App\Models\Page;
use App\Models\Photo;
use App\Models\Video;
use App\Themes\Theme;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\RichEditor\RichContentRenderer;
@@ -173,6 +174,27 @@ protected static function photoSelect(string $name, string $label, bool $multipl
->multiple($multiple);
}
/**
* Select field listing the website videos (Admin › Webseite › Videos).
*/
protected static function videoSelect(string $name, string $label): Select
{
return Select::make($name)
->label($label)
->options(fn (): array => Video::query()->orderBy('title')->pluck('title', 'id')->all())
->placeholder('– kein Video –');
}
/**
* The chosen video, if it still exists and has a file.
*/
protected function video(mixed $id): ?Video
{
$video = filled($id) ? Video::query()->with('media')->find($id) : null;
return $video?->url() ? $video : null;
}
/**
* Select field listing the pages of the site, for links.
*/