@if ($newCoverSongs)
@php
$index = 0;
@endphp
@forelse ($newCoverSongs as $row)
@php
$index++;
$imageUrl = app(\App\Services\SongServices::class)->getCoverImageS3($row, 'md');
$coverArray = app(\App\Services\SongServices::class)::getCoverContributor(
$row->songContributors,
);
$names = array_column($coverArray, 'name');
$coverSeparated = implode(', ', $names);
@endphp
@empty
belum terdapat data
@endforelse
@else
belum terdapat data
@endif
{{-- @php
$coverSongs = [
[
'title' => 'Running Up That Hill (Cover)',
'artist' => 'Meg Myers',
'original' => 'Kate Bush',
'img' => 'https://picsum.photos/300/300?random=8001',
],
[
'title' => 'Hallelujah (Cover)',
'artist' => 'Pentatonix',
'original' => 'Leonard Cohen',
'img' => 'https://picsum.photos/300/300?random=8002',
],
[
'title' => 'Mad World (Cover)',
'artist' => 'Jasmine Thompson',
'original' => 'Tears for Fears',
'img' => 'https://picsum.photos/300/300?random=8003',
],
[
'title' => 'Take On Me (Cover)',
'artist' => 'The Last of Us Part II',
'original' => 'a-ha',
'img' => 'https://picsum.photos/300/300?random=8004',
],
[
'title' => 'Toxic (Cover)',
'artist' => 'Melanie Martinez',
'original' => 'Britney Spears',
'img' => 'https://picsum.photos/300/300?random=8005',
],
[
'title' => 'Creep (Cover)',
'artist' => 'Haley Reinhart',
'original' => 'Radiohead',
'img' => 'https://picsum.photos/300/300?random=8006',
],
[
'title' => 'Wicked Game (Cover)',
'artist' => 'Ursine Vulpine',
'original' => 'Chris Isaak',
'img' => 'https://picsum.photos/300/300?random=8007',
],
[
'title' => 'Jolene (Cover)',
'artist' => 'Miley Cyrus',
'original' => 'Dolly Parton',
'img' => 'https://picsum.photos/300/300?random=8008',
],
];
@endphp
@foreach ($coverSongs as $index => $song)
@endforeach --}}