@extends('layouts.app') @section('content')

πŸ“ Patient Record

πŸ—’οΈ Patient Name: {{ $patient->name }} Edit
{{ $patient->age ?? 'N/A' }}
{{ ucfirst($patient->gender) ?? 'N/A' }}
{{ $patient->department ?? 'N/A' }}
{{ $patient->cnic ?? 'N/A' }}
{{ $patient->contact ?? 'N/A' }}
{{-- resources/views/patients/partials/medical-history.blade.php --}}
🩺 Medical History Edit
{{ $patient->surgical_history ?? 'N/A' }}
{{ $patient->allergies_medications ?? 'N/A' }}
Vitals & Lab Information
Blood Pressure: {{ $patient->bp ?? '-' }}
Pulse: {{ $patient->pulse ?? '-' }}
Temperature: {{ $patient->temperature ?? '-' }}
ECG: {{ $patient->ecg ?? '-' }}
Blood Sugar: {{ $patient->blood_sugar ?? '-' }}
Treatment Plan
{{ $patient->treatment_plan ?? 'No treatment plan recorded.' }}
{{-- Visits list --}}
πŸšΆβ€β™€οΈ Visit History
    @forelse($patient->visits as $visit)
  • {{ $visit->visit_date }} - {{ $visit->doctor ?? '---' }} β€” {{ $visit->reason }}
    {{ Str::limit($visit->notes, 120) }}
    Follow up: {{ $visit->follow_up_date ?? '-' }}
  • @empty
  • No visits yet.
  • @endforelse
{{-- New visit form --}}
@csrf
πŸ’Š Treatment Records
{{-- Existing Treatments List --}}
    @forelse($patient->treatments as $treatment)
  • {{ ucfirst($treatment->type) }} {{ $treatment->recorded_at ? \Carbon\Carbon::parse($treatment->recorded_at)->format('d M Y, h:i A') : 'No date' }} @if($treatment->details)

    {{ $treatment->details }}

    @endif
    @csrf @method('DELETE')
  • @empty
  • No treatments recorded yet.
  • @endforelse
{{-- Add New Treatment Form --}}
@csrf
{{-- Diagnostics --}}
πŸ“Š Diagnostics / Lab Results
    @forelse($patient->diagnostics as $d)
  • {{ $d->test_name }}
    {{ $d->done_at }} β€” {{ $d->notes }}
    @if($d->file_path) Download @endif
  • @empty
  • No diagnostics yet.
  • @endforelse
@csrf
{{-- Cataract records --}}
πŸ‘οΈ Cataract Records
{{-- List existing cataract records --}}
    @forelse($patient->cataractRecords as $c)
  • Surgeon: {{ $c->surgeon_name ?? '---' }}
    Surgery: {{ $c->surgery_date ?? '---' }}
    Pre-op: {{ Str::limit($c->pre_op_evaluation, 100) }}
    Details: {{ Str::limit($c->surgery_details, 100) }}
    Post-op: {{ Str::limit($c->post_op_notes, 100) }}
  • @empty
  • No cataract records yet.
  • @endforelse
{{-- Inline Cataract Record Form --}}
@csrf
{{-- Dialysis records --}}
πŸ’Š Dialysis Records
{{-- List existing dialysis records --}}
    @forelse($patient->dialysisRecords as $d)
  • Date: {{ $d->evaluation_date ?? '---' }}
    Notes: {{ Str::limit($d->evaluation_notes, 120) }}
    @if($d->next_followup)
    Next Follow-up: {{ $d->next_followup }}
    @endif @if($d->session_details)
    Session: {{ Str::limit($d->session_details, 120) }}
    @endif
  • @empty
  • No dialysis records yet.
  • @endforelse
{{-- Inline Dialysis Record Form --}}
@csrf
@endsection