All podcasts

@if($podcasts->count() > 0) @foreach($podcasts as $podcast) @php $src = ''; $audios = ''; $songs = ''; // $src = asset('/images/podcast/'.$podcast->image); if($podcast->image != '' && strpos($podcast->image, 'https://') !== false || strpos($podcast->image, 'http://') !== false) $src = $podcast->image; else if($podcast->image != '' && file_exists(public_path('images/podcast/'.$podcast->image))) $src = asset('images/podcast/'.$podcast->image); else $src = dummyImage('custom',$podcast->album_slug,500); $audios = json_decode($podcast->song_list); if(!is_array($audios) || count($audios)==0){ continue; } $songs = Modules\Audio\Entities\Audio::findOrFail($audios[0]); @endphp @endforeach @endif

{{-- Limit the number of page links shown for long paginators --}} {{ $podcasts->onEachSide(2)->links() }}