@extends('layouts.app') @section('content')

Filter Lagu

Reset
@foreach ($songs as $song) @php $coverImages = explode(',', $song->cover_image ?? ''); $smallCoverFile = $coverImages[2] ?? null; $filename = $smallCoverFile ? basename($smallCoverFile) : null; $imageUrl = $filename ? route('user.songs.image', ['filename' => $filename]) : 'https://via.placeholder.com/40'; @endphp @endforeach
Judul Pencipta Artis Album Genre Tanggal Rilis Status Tindakan
{{ $song->title }}
@php $creatorName = $song->songContributors ->where('role', 'Composer') ->pluck('user.name') ->filter() ->implode(', ') ?? '-'; if (empty($creatorName)) { $creatorName = '-'; } @endphp {{ $creatorName }} @php $artistNames = $song->songContributors ->where('role', 'Artist') ->pluck('user.name') ->filter() ->implode(', ') ?? '-'; if (empty($artistNames)) { $artistNames = '-'; } @endphp {{ $artistNames }} {{ $song->album?->title ?? '-' }} {{ $song->genre->name ?? '-' }} {{ \Carbon\Carbon::parse($song->release_date)->format('d M Y') }} @if ($song->status == 'publish') Release @elseif($song->status == 'draft') Belum Release @else Inactive @endif
@endsection @push('styles') @endpush @section('scripts') @endsection