@extends('layouts.app') @section('content') @php $isEdit = isset($cartridge) && $cartridge->exists; $formAction = $isEdit ? route('cartridges.update', $cartridge) : route('cartridges.store'); $pageTitle = $isEdit ? 'Edit Cartridge' : 'Add Cartridge'; $state = $usageSummary['service_state'] ?? 'Unknown'; @endphp
Secret Chord Analogue

{{ $pageTitle }}

Track cartridge assignment, service thresholds, and maintenance history with the same structured presentation used on Play Log and Albums.
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
Please correct the following:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if(isset($usageSummary))
Usage Summary
Total Hours
{{ $usageSummary['total_hours'] }}
Hours Since Service
{{ $usageSummary['hours_since_service'] }}
Service Threshold
{{ $usageSummary['service_threshold_hours'] }}
Remaining Hours
{{ $usageSummary['remaining_hours'] }}
Last service: {{ $usageSummary['last_serviced_on'] ?? '—' }} · {{ $usageSummary['last_service_type'] ?? '—' }}
{{ $state }}
@endif
@csrf @if($isEdit) @method('PUT') @endif
Cartridge Details
Actions
Cancel
@if($isEdit)
Add Service Event
@csrf
Service History
@forelse($cartridge->serviceEvents as $serviceEvent) @empty @endforelse
Date Type Stylus Cantilever Detail
{{ optional($serviceEvent->serviced_on)->format('Y-m-d') }} {{ $serviceEvent->service_type }} {{ $serviceEvent->stylus_shape ?? '—' }} {{ $serviceEvent->cantilever_replaced ? 'Yes' : 'No' }} {{ $serviceEvent->service_detail ?? '—' }} @if($serviceEvent->notes)
{{ $serviceEvent->notes }}
@endif
@csrf @method('DELETE')
No service events recorded yet.
@endif
@endsection