{{ !empty($prescription['prescription']->doctor->doctorUser->full_name) ? $prescription['prescription']->doctor->doctorUser->full_name : '' }}

{{ !empty($prescription['prescription']->doctor->specialist) ? $prescription['prescription']->doctor->specialist : '' }}

@if (empty($prescription['prescription']->doctor->address->address1) && empty($prescription['prescription']->doctor->address->address2) && empty($prescription['prescription']->doctor->address->city)) {{ __('messages.common.n/a') }} @else {{ !empty($prescription['prescription']->doctor->address->address1) ? $prescription['prescription']->doctor->address->address1 : '' }} {{ !empty($prescription['prescription']->doctor->address->address2) ? (!empty($prescription['prescription']->doctor->address->address1) ? ',' : '') : '' }} {{ empty($prescription['prescription']->doctor->address->address1) || !empty($prescription['prescription']->doctor->address->address2) ? (!empty($prescription['prescription']->doctor->address->address2) ? $prescription['prescription']->doctor->address->address2 : '') : '' }} {{ !empty($prescription['prescription']->doctor->address->city) ? ',' : '' }} @if (!empty($prescription['prescription']->doctor->address->city))
@endif {{ !empty($prescription['prescription']->doctor->address->city) ? $prescription['prescription']->doctor->address->city : '' }} {{ !empty($prescription['prescription']->doctor->address->zip) ? ',' : '' }} @if ($prescription['prescription']->doctor->address->zip)
@endif {{ !empty($prescription['prescription']->doctor->address->zip) ? $prescription['prescription']->doctor->address->zip : '' }}

{{ !empty($prescription['prescription']->doctor->user->phone) ? $prescription['prescription']->doctor->user->region_code.$prescription['prescription']->doctor->user->phone : '' }}

{{ !empty($prescription['prescription']->doctor->user->email) ? $prescription['prescription']->doctor->user->email : '' }}

@endif
@if ($prescription['prescription']->patient->user->dob) @endif
{{ !empty($prescription['prescription']->patient->patientUser->full_name) ? $prescription['prescription']->patient->patientUser->full_name : '' }}
{{ !empty(\Carbon\Carbon::parse($prescription['prescription']->created_at)->isoFormat('DD/MM/Y')) ? \Carbon\Carbon::parse($prescription['prescription']->created_at)->isoFormat('DD/MM/Y') : '' }}
{{ \Carbon\Carbon::parse($prescription['prescription']->patient->user->dob)->diff(\Carbon\Carbon::now())->y }} {{ __('messages.new_change.years') }}
{{--
{{ !empty(\Carbon\Carbon::parse($prescription['prescription']->created_at)->isoFormat('DD/MM/Y')) ? \Carbon\Carbon::parse($prescription['prescription']->created_at)->isoFormat('DD/MM/Y') : '' }}
--}} {{-- @if ($prescription['prescription']->patient->user->dob)
{{ \Carbon\Carbon::parse($prescription['prescription']->patient->user->dob)->diff(\Carbon\Carbon::now())->y }} {{ __('years') }}
@endif --}}
@if (!empty($prescription['prescription']->food_allergies))
{{ __('messages.prescription.food_allergies') }}: {{ $prescription['prescription']->food_allergies }}
@endif @if (!empty($prescription['prescription']->tendency_bleed))
{{ __('messages.prescription.tendency_bleed') }}: {{ $prescription['prescription']->tendency_bleed }}
@endif @if (!empty($prescription['prescription']->heart_disease))
{{ __('messages.prescription.heart_disease') }}: {{ $prescription['prescription']->heart_disease }}
@endif @if (!empty($prescription['prescription']->high_blood_pressure))
{{ __('messages.prescription.high_blood_pressure') }}: {{ $prescription['prescription']->high_blood_pressure }}
@endif @if (!empty($prescription['prescription']->diabetic))
{{ __('messages.prescription.diabetic') }}: {{ $prescription['prescription']->diabetic }}
@endif @if (!empty($prescription['prescription']->surgery))
{{ __('messages.prescription.surgery') }}: {{ $prescription['prescription']->surgery }}
@endif @if (!empty($prescription['prescription']->accident))
{{ __('messages.prescription.accident') }}: {{ $prescription['prescription']->accident }}
@endif @if (!empty($prescription['prescription']->others))
{{ __('messages.prescription.others') }}: {{ $prescription['prescription']->others }}
@endif
@if (!empty($prescription['prescription']->medical_history))
{{ __('messages.new_change.added_at') }}: {{ $prescription['prescription']->medical_history }}
@endif @if (!empty($prescription['prescription']->current_medication))
{{ __('messages.prescription.current_medication') }}: {{ $prescription['prescription']->current_medication }}
@endif @if (!empty($prescription['prescription']->female_pregnancy))
{{ __('messages.prescription.female_pregnancy') }}: {{ $prescription['prescription']->female_pregnancy }}
@endif @if (!empty($prescription['prescription']->breast_feeding))
{{ __('messages.prescription.breast_feeding') }}: {{ $prescription['prescription']->breast_feeding }}
@endif @if (!empty($prescription['prescription']->plus_rate))
{{ __('messages.prescription.plus_rate') }}: {{ $prescription['prescription']->plus_rate }}
@endif @if (!empty($prescription['prescription']->temperature))
{{ __('messages.prescription.temperature') }}: {{ $prescription['prescription']->temperature }}
@endif @if (!empty($prescription['prescription']->problem_description))
{{ __('messages.prescription.problem_description') }}: {{ $prescription['prescription']->problem_description }}
@endif
@if ($prescription['prescription']->problem_description != null)
{{ __('messages.prescription.problem') }}:

{{ $prescription['prescription']->problem_description }}

@endif @if ($prescription['prescription']->test != null)
{{ __('messages.prescription.test') }}:

{{ $prescription['prescription']->test }}

@endif @if ($prescription['prescription']->advice != null)
{{ __('messages.prescription.advice') }}:

{{ $prescription['prescription']->advice }}

@endif
{{ __('messages.prescription.rx') }}:
@if (empty($medicines)) {{ __('messages.common.n/a') }} @else @foreach ($prescription['prescription']->getMedicine as $medicine) @foreach ($medicine->medicines as $medi) @break @endforeach @endforeach @endif
{{ __('messages.prescription.medicine_name') }} {{ __('messages.ipd_patient_prescription.dosage') }} {{ __('messages.prescription.duration') }} {{ __('messages.medicine_bills.dose_interval') }}
{{ $medi->name }} {{ $medicine->dosage }} @if ($medicine->time == 0) (After Meal) @else (Before Meal) @endif {{ $medicine->day }} {{ __('messages.day') }} {{ App\Models\Prescription::DOSE_INTERVAL[$medicine->dose_interval] }}
@if ($prescription['prescription']->next_visit_qty != null)

{{ __('messages.prescription.next_visit') }} : {{ $prescription['prescription']->next_visit_qty }} @if ($prescription['prescription']->next_visit_time == 0) {{ __('messages.prescription.days') }} @elseif($prescription['prescription']->next_visit_time == 1) {{ __('messages.month') }} @else {{ __('messages.year') }} @endif

@endif

{{ !empty($prescription['prescription']->doctor->doctorUser->full_name) ? $prescription['prescription']->doctor->doctorUser->full_name : '' }}

{{ !empty($prescription['prescription']->doctor->specialist) ? $prescription['prescription']->doctor->specialist : '' }}