defaultSort('title') ->emptyStateHeading('Noch keine Videos') ->emptyStateDescription('Laden Sie ein Video hoch und wählen Sie es danach im Titelbereich oder im Baustein „Rundgang (Video)“ aus.') ->columns([ SpatieMediaLibraryImageColumn::make('poster') ->label('') ->collection(Video::POSTER) ->conversion('poster') ->imageHeight(64), TextColumn::make('title')->label('Titel')->searchable()->weight('medium'), TextColumn::make('property.name')->label('Wohnung')->placeholder('–'), TextColumn::make('chapters') ->label('Kapitel') ->state(fn (Video $record): string => (string) count($record->chapterList())), TextColumn::make('size') ->label('Größe') ->state(fn (Video $record): ?string => $record->getFirstMedia(Video::COLLECTION)?->human_readable_size), ]) ->recordActions([ EditAction::make(), DeleteAction::make(), ]); } }