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

@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 }}

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 }}

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)) }}