@if(count($playlists) > 0) @foreach($playlists as $playlist) @php $count = $playlist->episodes->count(); @endphp
@if($count > 0) @else @endif @if($count > 0) @php $pe = \App\Models\PlaylistEpisode::where('playlist_id', $playlist->id)->orderBy('position', 'desc')->first(); @endphp Hollywood Sign on The Hill @else ... @endif
{{ $playlist->name }}

{{ $count }} Episodes - {{ $playlist->is_private == 1 ? 'Private' : 'Public' }} @if($count > 0) {{ __('playlist.play') }} @endif

Delete
@endforeach
...

Create another Playlist

Create
@else
...

No Playlist found!

Create
@endif