Patient

{{ $patient->first_name . ' ' . $patient->second_name }}

{{ $patient->city->name }} {{ $patient->country->name }}

Age

{{ \Carbon\Carbon::parse($patient->birthday)->diff(\Carbon\Carbon::now())->format('%y') }}

Insurance

{{ $patient->insurance }}

Phone Number

{{ $patient->phone_number }}

Last Examination:
@if (!empty($disease_draw->front)) @else
No Back Draw
@endif
@if (!empty($disease_draw->back)) @else
No Back Draw
@endif
Examination Note:
@if (!empty($disease_draw->note)) {{ $disease_draw->note }} @else No Note @endif
Appointment Date:
@if (!empty($disease_draw->appointment->start_at)) {{ $disease_draw->appointment->start_at }} @else Not Selected @endif
Doctor:
@if (!empty($disease_draw->appointment->doctor->name)) {{ $disease_draw->appointment->doctor->name }} @else Not Selected @endif

Examinations

@if (count($patient->examinations) > 0) @if ($patient->examinations[0]->type == 3) @endif @endif
Name OD OS
LID {{ $patient->examinations[0]->lid_od }} {{ $patient->examinations[0]->lid_os }}
Surface {{ $patient->examinations[0]->surface_od }} {{ $patient->examinations[0]->surface_os }}
A.C. {{ $patient->examinations[0]->ac_od }} {{ $patient->examinations[0]->ac_os }}
Pupil {{ $patient->examinations[0]->pupil_od }} {{ $patient->examinations[0]->pupil_os }}
Lens {{ $patient->examinations[0]->lens_od }} {{ $patient->examinations[0]->lens_os }}
Iris {{ $patient->examinations[0]->iris_od }} {{ $patient->examinations[0]->iris_os }}
Angle {{ $patient->examinations[0]->angle_od }} {{ $patient->examinations[0]->angle_os }}
Fundus {{ $patient->examinations[0]->fundus_od }} {{ $patient->examinations[0]->fundus_os }}
Motility {{ $patient->examinations[0]->motility_od }} {{ $patient->examinations[0]->motility_os }}
IOP {{ $patient->examinations[0]->iop_od }} {{ $patient->examinations[0]->iop_os }}

Examinations

@foreach ($disease as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'Still'; @endphp @elseif ($item->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Healed'; @endphp @endif @endforeach
Name Start End Status
{{ $item->diseasecats->name }} {{ $item->start }} {{ $item->end }} {{ $msg }}
@if (count($patient->eyeglasses) > 0)

Eyeglasses

@endif
Right Eye
Sph. Cyl. Axis.
D @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_sph }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_cyl }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_axis }}° @endif
N @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_n }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_cyl }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_right_axis }}° @endif
Left Eye
Sph. Cyl. Axis.
D @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_sph }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_cyl }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_axis }}° @endif
N @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_n }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_cyl }} @endif @if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->glass_left_axis }}° @endif
IPD mm
@if (count($patient->eyeglasses) > 0) {{ $patient->eyeglasses[0]->ipd }} @else

@endif

Treatments

@foreach ($treatment as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'In prog'; @endphp @elseif ($item->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @endforeach
Name From To Sessions Status
{{ $item->treatment_cat->name }} {{ $item->start }} {{ $item->end }} {{ $item->sessions_done }} {{ $msg }}

Medicenes

@foreach ($medicine as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'On medicine'; @endphp @elseif ($item->status == 1) @php $text_color = 'cancel-color-btn'; $msg = 'No result'; @endphp @elseif ($item->status == 2) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @endforeach
Name From To Status
{{ $item->medicinescats->name }} {{ $item->start }} {{ $item->end }} {{ $msg }}

Investigation

@if (count($patient->investigation) > 0) @if ($patient->investigation[0]->type == 3) @endif @endif
Name Value
Colored Photo {{ $patient->investigation[0]->colored_photo }}
Sonar {{ $patient->investigation[0]->sonar }}
UBM {{ $patient->investigation[0]->ubm }}
Biometry {{ $patient->investigation[0]->biometry }}
Visual Field {{ $patient->investigation[0]->visual_field }}
FFA {{ $patient->investigation[0]->ffa }}
OCT {{ $patient->investigation[0]->oct }}
Pentacam {{ $patient->investigation[0]->pentacam }}
Electro Physiology {{ $patient->investigation[0]->electro_physiology }}
Specular Microscopy {{ $patient->investigation[0]->specular_microscopy }}

Lab

@foreach ($lab as $item) @if ($item->status == 0) @php $text_color = 'active-color-btn'; $msg = 'Sent'; @endphp @elseif ($item->status == 1) @php $text_color = 'done-color-btn'; $msg = 'Done'; @endphp @endif @if ($item->invoice_item->invoice->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = 'Not Paid'; @endphp @elseif ($item->invoice_item->invoice->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($item->invoice_item->invoice->status == 2) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = 'Paid'; @endphp @endif @endforeach
Name Code Note Created
{{ $item->service_item->name }} {{ $item->code }} {{ $item->note_lab }} {{ date('d M Y', strtotime($item->created_at)) }}