@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
{{ $pl->name }}
{{ $pl->videos_count }}
Playlist @if($pl->visibility === 'private') Private @elseif($pl->visibility === 'unlisted') Unlisted @endif
@if($pl->user?->avatar_url) {{ $pl->user->name }} @elseif($pl->user) {{ mb_strtoupper(mb_substr($pl->user->name, 0, 1)) }} @endif

{{ $pl->name }}

@if($pl->user) {{ $pl->user->name }} @endif
Playlist  ·  {{ number_format($pl->view_count) }} {{ Str::plural('view', $pl->view_count) }} · {{ $pl->created_at->diffForHumans() }}
@once @endonce