@php $embed = \App\Support\VideoEmbed::parse($data['video_url'] ?? null); $file = $url($data['video_file'] ?? null); $poster = $url($data['poster'] ?? null) ?: ($embed['thumbnail'] ?? ''); $width = match ($data['width'] ?? 'normal') { 'narrow' => 'max-w-2xl', 'wide' => 'max-w-6xl', default => 'max-w-4xl', }; @endphp
@include('builder.partials.head')
filled($data['title'] ?? null)])>
@if($embed) @elseif($file) @else
Add a YouTube/Vimeo link or upload a video file.
@endif
@if(filled($data['caption'] ?? null))
{{ $data['caption'] }}
@endif