@if ($editingName)
@error('editingPlaylistName')

{{ $message }}

@enderror @else

{{ $playlist->name }} @auth @if (Auth::id() === $playlist->user->id) @endif @endauth

@endif

{{ __('playlist.episodes') }}: {{ $playlist->episodes_count }}

Creator: {{ $playlist->user->name }} @auth @if (Auth::id() === $playlist->user->id) @else {{ $playlist->is_private ? 'Private' : 'Public' }} @endif @endauth

@forelse($episodes as $playlistEpisode) @include('livewire.partials.playlist-episode-row', ['playlistEpisode' => $playlistEpisode, 'isOwner' => $isOwner]) @empty

{{ $search !== '' ? __('playlist.no-matches') : __('playlist.empty-playlist') }}

@endforelse
@if ($episodes->hasPages())
{{ $episodes->links('pagination::tailwind') }}
@endif