@extends('layouts.landing-page') @section('content')

Favorite Songs

Your collection of liked songs

You Might Also Like

@forelse ($recommendationSongs as $song) @php $imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($song, 'sm'); @endphp @php $creatorName = $song->songContributors ->where('role', 'Composer') ->pluck('user.name') ->filter() ->implode(', ') ?? '-'; if (empty($creatorName)) { $creatorName = '-'; } $artistName = $song->songContributors ->filter(function ($contributor) { return in_array($contributor->role, ['Artist', 'Cover Creator']); }) ->pluck('user.name') ->filter() ->implode(', ') ?: '-'; if (empty($artistName)) { $artistName = 'No Artist'; } @endphp
{{ $song->title }}

{{ $song->title }}

{{ $artistName }}

@empty
belum terdapat data
@endforelse
@endsection @section('scripts') @endsection