@extends('layouts.app') @section('title', $patient->full_name) @section('heading')
{{ $patient->full_name }} {{ $patient->patient_code }}
@endsection @section('content')
โž• {{ __('clinic.new_visit') }} ๐Ÿ’ต {{ __('clinic.new_invoice') }} ๐Ÿชช {{ __('clinic.print_card') }} ๐Ÿ“„ {{ __('clinic.print_file') }}
โš™ {{ __('clinic.edit_patient') }}
@csrf @method('DELETE')

{{ __('clinic.clinic_card') }}

{!! $qrCode !!}
{{ $patient->patient_code }}
{{ __('clinic.registration_date') }}: {{ $patient->created_at->format('Y-m-d') }}

โ„น๏ธ {{ __('clinic.overview') }}

{{ __('clinic.phone') }}
{{ $patient->phone }}
@if($patient->whatsapp)
{{ __('clinic.whatsapp') }}
{{ $patient->whatsapp }}
@endif
{{ __('clinic.gender') }}
{{ __('clinic.' . $patient->gender) }}
@if($patient->age || $patient->birth_date)
{{ __('clinic.age') }} / {{ __('clinic.birth_date') }}
@if($patient->age) {{ $patient->age }} {{ __('ุณู†ูˆุงุช') }} @endif @if($patient->birth_date) ({{ $patient->birth_date->format('Y-m-d') }}) @endif
@endif @if($patient->national_id)
{{ __('clinic.national_id') }}
{{ $patient->national_id }}
@endif @if($patient->address)
{{ __('clinic.address') }}
{{ $patient->address }}
@endif
@if($patient->emergency_contact_name || $patient->emergency_contact_phone)

๐Ÿšจ {{ __('clinic.emergency_contact_name') }}

@if($patient->emergency_contact_name)
{{ __('clinic.emergency_contact_name') }}
{{ $patient->emergency_contact_name }}
@endif @if($patient->emergency_contact_phone)
{{ __('clinic.emergency_contact_phone') }}
{{ $patient->emergency_contact_phone }}
@endif
@endif

๐Ÿ“‹ {{ __('clinic.medical_history') }}

{{ __('clinic.chronic_diseases') }}

{!! nl2br(e($patient->chronic_diseases ?? 'โ€”')) !!}

{{ __('clinic.allergies') }}

{!! nl2br(e($patient->allergies ?? 'โ€”')) !!}

{{ __('clinic.current_medications') }}

{!! nl2br(e($patient->current_medications ?? 'โ€”')) !!}

{{ __('clinic.medical_history') }}

{!! nl2br(e($patient->medical_history ?? 'โ€”')) !!}

@if($patient->notes)

{{ __('clinic.notes') }}

{{ $patient->notes }}

@endif

๐Ÿฉบ {{ __('clinic.visits') }}

{{ count($patient->visits) }}
@forelse ($patient->visits as $v)

{{ $v->chief_complaint }}

๐Ÿ“… {{ $v->visit_date->format('Y-m-d H:i') }} ยท ๐Ÿ‘จโ€โš•๏ธ {{ $v->doctor->name ?? 'โ€”' }}
{{ __('clinic.' . $v->status) }}
@if($v->diagnosis)
{{ __('clinic.diagnosis') }}: {{ $v->diagnosis }}
@endif @if($v->prescription_notes)
๐Ÿ’Š {{ __('clinic.prescription_notes') }}: {{ $v->prescription_notes }}
@endif
@empty

{{ __('clinic.no_records') }}

@endforelse

๐Ÿ’ต {{ __('clinic.invoices') }}

@forelse ($patient->invoices as $inv) @empty @endforelse
{{ __('clinic.invoice_number') }} {{ __('clinic.total_amount') }} {{ __('clinic.paid_amount') }} {{ __('clinic.remaining_amount') }} {{ __('clinic.payment_status') }}
{{ $inv->invoice_number }} {{ number_format($inv->total_amount, 2) }} {{ number_format($inv->paid_amount, 2) }} {{ number_format($inv->remaining_amount, 2) }} {{ __('clinic.' . $inv->payment_status) }} Open
{{ __('clinic.no_records') }}
@endsection