@extends('layouts.doctor') @section('title', 'Consultation') @section('content') @php $cur = config('clinic.currency.symbol'); @endphp Dashboard @if($errors->any())
@foreach($errors->all() as $e)
{{ $e }}
@endforeach
@endif
{{-- Left: patient snapshot + history --}}
Patient

{{ $patient->full_name }}

{{ ucfirst($patient->gender ?? '') }} · DOB {{ $patient->dob?->format('d M Y') ?? '—' }}

Allergies: @forelse($patient->allergies ?? [] as $a){{ $a }}@empty None@endforelse

Conditions: @forelse($patient->conditions ?? [] as $c){{ $c }}@empty None@endforelse

Previous Consultations
@forelse($history['consultations'] as $h)
{{ $h->consulted_at?->format('d M Y') }}
{{ $h->diagnosis?->name ?? '—' }} @if($h->doctor_notes)
{{ \Illuminate\Support\Str::limit($h->doctor_notes, 120) }}
@endif
@empty No previous consultations. @endforelse
Previous Prescriptions
@forelse($history['prescriptions'] as $rx)
{{ $rx->code }} · {{ $rx->prescribed_on?->format('d M Y') }}
{{ $rx->items->pluck('medicine_name')->join(', ') ?: '—' }}
@empty No previous prescriptions. @endforelse
{{-- Right: consultation form --}}
@csrf @method('PUT')
Doctor Notes
Vitals
Chief Complaints (one per line)
Clinical Findings (one per line)
Diagnosis & Treatment
Follow-Up
Medicines
Advice / Instructions
@push('scripts') @endpush @endsection