@extends('layouts.app') @section('title', 'Patient — '.$patient->serial_number) @section('actions') Download PDF Edit
@csrf @method('DELETE')
@endsection @section('content')
{{ $patient->name }}
{{ $patient->serial_number }}
First Name
{{ $patient->first_name }}
Father/Husband
{{ $patient->father_name ?? '—' }}
Phone
{{ $patient->phone ?? '—' }}
Age
{{ $patient->age ?? '—' }}
Gender
{{ $patient->gender ? ucfirst($patient->gender) : '—' }}
City
{{ $patient->city ?? '—' }}
Area
{{ $patient->area ?? '—' }}
Address
{{ $patient->address ?? '—' }}
Reference
{{ $patient->reference_name ?? '—' }}
Ref. Phone
{{ $patient->reference_phone ?? '—' }}
Total Visits
{{ $patient->visits->count() }}
Total Patient Fee{{ number_format($patient->patient_fee, 2) }}
Total Received Fee{{ number_format($patient->received_fee, 2) }}
Total Remaining Fee{{ number_format($patient->remaining_fee, 2) }}
Total Discount Fee{{ number_format($patient->discount_fee, 2) }}
{{-- ---------------- Remaining Fee Payments ---------------- --}}
Remaining Fee

Outstanding (registration): {{ number_format($patient->remaining_fee, 2) }}

@if($patient->remaining_fee > 0)
@csrf
@error('payment_amount')
{{ $message }}
@enderror
@endif @if($patient->feePayments->count())
Payment History
    @foreach($patient->feePayments as $pay)
  • {{ $pay->payment_date->format('d M Y') }} — {{ number_format($pay->payment_amount, 2) }}@if($pay->notes) ({{ $pay->notes }})@endif
    @csrf @method('DELETE')
  • @endforeach
@endif
{{-- ---------------- Suggested Tests ---------------- --}}
Suggested Tests
@forelse($patient->patientTests as $pt)
{{ $pt->test->name ?? '—' }}
Suggested {{ $pt->suggested_date->format('d M Y') }}
@if($pt->notes)
{{ $pt->notes }}
@endif
@if($pt->test && $pt->test->hasSample()) View Image @else No image @endif
@csrf @method('DELETE')
@empty

No tests suggested yet.

@endforelse
@csrf
@if($tests->isEmpty())No tests yet — create one first.@endif
Add Repeat Visit
@csrf @include('patients.partials.visit_fields', ['visit' => null, 'withFees' => true])
Visit History
@forelse($patient->visits as $visit)
{{ $visit->visit_date->format('d M Y') }} {{ $visit->statusLabel() }}
@csrf @method('DELETE')
Doctor: {{ $visit->doctor_name ?? '—' }}
Disease: {{ $visit->disease ?? '—' }}
@if($visit->patient_fee > 0)
Fee: {{ number_format($visit->patient_fee, 2) }} · Received: {{ number_format($visit->received_fee, 2) }} · Remaining: {{ number_format($visit->remaining_fee, 2) }} · Discount: {{ number_format($visit->discount_fee, 2) }}
@endif @if($visit->follow_up_date)
Follow-up: {{ $visit->follow_up_date->format('d M Y') }}
@endif @if($visit->notes)
Notes: {{ $visit->notes }}
@endif @if($visit->prescription_path) @endif
@empty

No visits recorded.

@endforelse
@endsection