@extends('layouts.app') @section('content')
| 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 |
|