@foreach ($song->songContributors as $contributor)
@php
$avatarUrl = app(\App\Services\UserServices::class)->getAvatar($contributor->user, 'sm');
@endphp
{{ $contributor->user->name }}
{{ $contributor->role }}
{{ $contributor->description }}
@endforeach
{{-- @if ($song->composers->count())
Composers
@foreach ($song->composers as $composer)
@endforeach
@else
Composers
No composers assigned.
@endif
@if ($song->composers->count())
Production Credits
-
Composer:
{{ $song->composers->pluck('name')->join(', ') }}
@else
Production Credits
@endif
--}}