@props(['playlist']) @php $pl = $playlist; $firstVid = $pl->videos->first(); $plUrl = $firstVid ? route('videos.show', $firstVid) . '?playlist=' . $pl->share_token : route('playlists.show', $pl->id); $plIsOwner = auth()->check() && auth()->id() === $pl->user_id; $plShuffleUrl = $firstVid ? route('playlists.shuffle', $pl->id) : null; @endphp {{-- Playlist cards reuse .yt-video-card / .yt-video-thumb / .yt-video-info. That CSS lives in this shared partial (also used by video-card) so it loads on pages that show playlists but no videos, e.g. /videos?filter=playlists. --}} @include('components.partials.card-styles') @once @endonce
@once @endonce