@props(['playlist', 'showTypeBadge' => false]) @once @endonce @php $pl = $playlist; @endphp
{{ $pl->name }}
{{ $pl->videos_count }}
@if($showTypeBadge) PLAYLIST @endif @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() }}