@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 @once @endonce
@once @endonce