@extends('layouts.admin') @section('title', $patient->full_name) @section('page', 'patients') @section('content') @php $cur = config('clinic.currency.symbol'); $billed=$patient->totalBilled(); $paid=$patient->totalPaid(); $due=$billed-$paid; $lastAppt=$patient->appointments->sortByDesc('appointment_date')->first(); @endphp

Patient Details

Complete patient information, medical history, prescriptions and payment details.

{{ strtoupper(substr($patient->full_name,0,1)) }}

{{ $patient->full_name }}

{{ ucfirst($patient->crm_status) }}
ID: {{ $patient->code }} {{ ucfirst($patient->gender ?? '—') }}@if($patient->dob), {{ $patient->dob->age }} yrs {{ $patient->dob->format('d M Y') }}@endif
Blood Group{{ $patient->blood_group ?? '—' }}
Allergies{{ $patient->allergies ? implode(', ', $patient->allergies) : 'No Known' }}
Phone:{{ $patient->phone }}
Email:{{ $patient->email ?? '—' }}
City:{{ $patient->city ?? '—' }}
Assigned Doctor:{{ $patient->assignedDoctor?->name ?? '—' }}
Outstanding Balance:{{ $cur }}{{ number_format($due,2) }}
Customer Labels & Groups
@forelse($patient->tags as $t){{ $t->name }}@empty{{ ucfirst($patient->crm_status) }}@endforelse
Patient Visit History & Recall Schedule
Last Visit Date{{ $patient->last_visit_date?->format('Y-m-d') ?? '—' }}Procedure: {{ $lastAppt?->diagnosis?->name ?? '—' }}
Follow-Up / Recall Date{{ $patient->followup_date?->format('Y-m-d') ?? '—' }} Scheduled Recall

Payment Profile & Part-Payments

Patient ledger & installment tracking
@if($due>0)@else@endif
Total Billed{{ $cur }}{{ number_format($billed,2) }}
Paid So Far{{ $cur }}{{ number_format($paid,2) }}
Balance Due{{ $cur }}{{ number_format($due,2) }}

Patient Prescription Data

@forelse($patient->prescriptions as $rx) @empty @endforelse
Rx CodeDoctorDatePrint
{{ $rx->code }}{{ $rx->doctor?->name ?? '—' }}{{ $rx->prescribed_on?->format('d M Y') }} Print Rx
No prescriptions yet.
Appointments
@forelse($patient->appointments->sortByDesc('appointment_date') as $a) @empty @endforelse
RefDateClinical Disease / DiagnosisDoctorStatus
{{ $a->code }}{{ $a->appointment_date->format('d M Y') }}{{ $a->diagnosis?->name ?? $a->reason ?? '—' }}{{ $a->doctor?->name ?? '—' }}{{ strtoupper(str_replace('_',' ',$a->status)) }}
No appointments.
@endsection