- 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>
58 lines
1.6 KiB
PHP
58 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Videos;
|
|
|
|
use App\Filament\Concerns\FollowsAdminMode;
|
|
use App\Filament\Concerns\SelectsRecordProperty;
|
|
use App\Filament\Resources\Videos\Pages\CreateVideo;
|
|
use App\Filament\Resources\Videos\Pages\EditVideo;
|
|
use App\Filament\Resources\Videos\Pages\ListVideos;
|
|
use App\Filament\Resources\Videos\Schemas\VideoForm;
|
|
use App\Filament\Resources\Videos\Tables\VideosTable;
|
|
use App\Models\Video;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
/**
|
|
* Website videos: chosen in the hero section (silent loop) and in the tour section (with chapters).
|
|
*/
|
|
class VideoResource extends Resource
|
|
{
|
|
use FollowsAdminMode, SelectsRecordProperty;
|
|
|
|
protected static ?string $model = Video::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedFilm;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Webseite';
|
|
|
|
protected static ?string $modelLabel = 'Video';
|
|
|
|
protected static ?string $pluralModelLabel = 'Videos';
|
|
|
|
protected static ?int $navigationSort = 3;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return VideoForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return VideosTable::configure($table);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListVideos::route('/'),
|
|
'create' => CreateVideo::route('/create'),
|
|
'edit' => EditVideo::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|