@extends('layouts.app') @section('title', 'Blog') @section('idname', 'single') @section('content')
@php $distributionStatus = $release->distributions->first() ? $release->distributions->first()->status : null; @endphp @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 3) @if ($distributionStatus === 'submitted' || $distributionStatus === 'approved' || $distributionStatus === 'rejected')
@csrf
@endif @elseif (Auth::user()->role_id == 2) @if ($distributionStatus === 'submitted' || $distributionStatus === 'approved' || $distributionStatus === 'rejected') Submission Status: {{ $distributionStatus === 'submitted' ? 'Pending' : ucfirst($distributionStatus) }} @else
@csrf
@endif @endif

{{ $release->title }}

Version: {{ $release->version }}

Release Type: {{ $release->release_type }}

All Contributors (artists…): {{ implode(', ', $release->contributors->pluck('name')->toArray()) }}

Label: @php // Fetch the label name using a raw SQL query $label = DB::select('SELECT name FROM labels WHERE id = ?', [$release->label]); $labelName = $label ? $label[0]->name : 'N/A'; @endphp @if($release->label == 'AB1') ABACUOS @else {{ $labelName }} @endif

Primary Genre: {{ $release->primary_genre }}

Secondary Genre: {{ $release->secondary_genre }}

UPC/EAN: {{ $release->upc_ean }}

Copyright Owner & year: © {{ $release->copyright_owner }} {{$release->copyright_details}}

Publishing Rights & year:© {{ $release->publishing_rights }} {{$release->publishing_owner }}

Release date: {{ $release->original_release_date }}

@foreach($tracks as $track) @endforeach
S/L ISRC Track Title Parental Advisory Time
{{ $loop->iteration }} {{ $track->isrc }} @if ($track->is_explicit == 1) Not Explicit @elseif ($track->is_explicit == 2) Explicit @else Cleaned Version @endif {{ $track->start_point_time }} edit