@extends('layouts.app') @section('content') @php $isEdit = isset($album) && $album->exists; $formAction = $isEdit ? route('albums.update', $album->id) : route('albums.store'); $pageTitle = $isEdit ? 'Edit Album' : 'Add Album'; @endphp
| Date | Treatment Type | Notes | Plays Since | Action |
|---|---|---|---|---|
| {{ $treatment->treated_on?->format('Y-m-d') }} | {{ $treatment->treatment_type }} | {{ $treatment->notes }} | {{ $album->playLogs->filter(fn ($playLog) => $playLog->played_at && $playLog->played_at->greaterThanOrEqualTo($treatment->treated_on))->count() }} | |
| No treatment history recorded yet. | ||||