@extends('layouts.app') @section('content') @php $isDigitised = old('digitised', $album->digitised ? 'y' : 'n'); $relaxedValue = old('relaxed_date', optional($album->relaxed_date)->format('Y-m-d')); $recordRestoreTreatments = ($album->treatments ?? collect())->filter(function ($treatment) { return strcasecmp((string) $treatment->treatment_type, 'Record Restore') === 0; })->values(); $genreOptions = [ 'Rock','Pop','Jazz','Blues','Classical','Electronic','Hip Hop','Rap','Soul','Funk', 'Reggae','Country','Folk','Metal','Punk','Disco','House','Techno','Ambient','Soundtrack' ]; @endphp
Collection management

Edit Album

{{ $album->artist?->name ?: 'Unknown artist' }} · {{ $album->title }}
Back to listing
@if ($errors->any())
Please review the highlighted information.
@endif
@csrf @method('PUT')
Album details
Digitised?
Stored album values
Estimated prior plays
{{ $album->estimated_prior_plays ?? 0 }}
Total play count
{{ $album->total_play_count ?? 0 }}
Logged plays
{{ $album->playLogs->count() }}
Last Record Restore
{{ optional($recordRestoreTreatments->first()?->treated_on)->format('Y-m-d') ?: '—' }}
Cancel
@csrf @method('DELETE')
@endsection