@if(isset($channels) && count($channels)) @foreach ($channels as $channel) @if($channel->objects != null)
@if($channel->object_type == 'song') @endif

{{ $channel->title }}

@if($channel->description) @endif
@if($channel->object_type == 'song') @include('commons.song', ['songs' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'artist') @include('commons.artist', ['artists' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'album') @include('commons.album', ['albums' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'playlist') @include('commons.playlist', ['playlists' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'station') @include('commons.station', ['stations' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'user') @include('commons.user', ['users' => $channel->objects->data, 'element' => 'carousel']) @elseif($channel->object_type == 'podcast') @include('commons.podcast', ['podcasts' => $channel->objects->data, 'element' => 'carousel']) @endif
@endif @endforeach @endif