@extends('layouts.admin') @section('content')
To add treatment history: 1) Click View on a record below (or Add record if none), 2) Scroll to Treatments — history → Add treatment. The tracking code TR-XXXXXX is auto-generated and shareable at /treatment-tracker.

Clinical

Medical records

Add record
@forelse($records as $r)@empty@endforelse
PatientComplaintDateActions
{{ $r->patient->user->first_name ?? '' }} {{ $r->patient->user->last_name ?? '' }}
{{ $r->tracking_code ?? '' }}
{{ Str::limit($r->chief_complaint,40) }}
{{ $r->treatments->count() ?? '' }} treatments
{{ $r->recorded_at->format('j M Y') }}View & Add TreatmentEdit
@csrf @method('DELETE')
No records — click Add record to create the first encounter, then add treatments inside it.
{{ $records->links() }}
@endsection