@foreach ($albums as $index => $album)
{!! $album->title !!} @foreach($album->artists as $artist){!! $artist->name !!}@if(!$loop->last), @endif @endforeach @if(isset($album->user) && $album->user->artist) {{ $album->user->artist->name }} @endif @foreach($album->genres as $genre){{$genre->name}}@if(!$loop->last), @endif @endforeach @foreach($album->moods as $mood){{$mood->name}}@if(!$loop->last), @endif @endforeach @if($album->approved) Yes @else No @endif {{ $album->song_count }} {{ $album->comment_count }} @endforeach