@props(['video' => null, 'size' => 'medium']) @php $videoUrl = $video ? asset('storage/videos/' . $video->filename) : null; $thumbnailUrl = $video && $video->thumbnail ? asset('storage/thumbnails/' . $video->thumbnail) : ($video ? 'https://picsum.photos/seed/' . $video->id . '/640/360' : 'https://picsum.photos/seed/random/640/360'); $typeIcon = $video ? match($video->type) { 'music' => 'bi-music-note', 'match' => 'bi-trophy', default => 'bi-film', } : 'bi-film'; // Check if video is shorts $isShorts = $video && $video->isShorts(); // Check if current user is the owner of the video $isOwner = $video && auth()->check() && auth()->id() == $video->user_id; // Size classes $sizeClasses = match($size) { 'small' => 'yt-video-card-sm', default => '', }; @endphp