@foreach ($artists as $index => $artist)
{!! $artist->name !!} @if(isset($artist->user)) {{ $artist->user->name }} @else no body @endif @foreach($artist->genres as $genre){{$genre->name}}@if(!$loop->last), @endif @endforeach @foreach($artist->moods as $mood){{$mood->name}}@if(!$loop->last), @endif @endforeach @if($artist->verified) Verified @else Unverified @endif {{ $artist->song_count }} {{ $artist->album_count }} {{ $artist->comment_count }} @endforeach