Sep 6, 2024
0
Level 6
How to display video in view page?
I created a view page for advertisement management.. however on the view page I cannot display the video display since it only has image entry in infolist..
I can only display the add banner but not the video
public static function getInfoListProfilePhotPreview() : Section
{
return Section::make()
->schema([
ImageEntry::make('banner.path')
->label('Banner photo')
->circular()
->defaultImageUrl(fn ($record) => $record->banner ? url($record->banner->path) : asset('image/no-image.png'))
])
->columnSpan(1)
->extraAttributes(['class' => 'flex flex-col items-center']);
}
Please or to participate in this conversation.