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

Medicenes

@foreach ($patient->medicines as $item) @endforeach
Name From To
{{ $item->medicinescats->name }} {{ $item->start }} {{ $item->end }}
@if ($appo_last_med) @php $start_at = $appo_last_med->appointment->start_at; @endphp @if ($appo_last_med->appointment->doctor) @php $doctor_name = $appo_last_med->appointment->doctor->name; @endphp @else @php $doctor_name = 'Not Selected'; @endphp @endif @else @php $start_at = 'Not Selected'; $doctor_name = 'Not Selected'; @endphp @endif

Appointment data: {{ $start_at }}

Responsible Doctor: {{ $doctor_name }}