@php $patient = $admission->Appointment?->Patient ?? $admission->Patient; @endphp
@include('layouts.print_header', [ 'printTitle' => 'Medications & Products Used', 'printSubtitle' => ($patient?->name ?? '') . ($admission->Room?->name ? ' — Room ' . $admission->Room->name : ''), ])
Patient:{{ $patient?->name }} Patient ID:{{ $patient?->patient_id }}
Admitted:{{ $admission->date_in ? \Carbon\Carbon::parse($admission->date_in)->format('d M, Y') : '-' }} Doctor:{{ $admission->Doctor?->name }}
Status:{{ $admission->status }} Bed:{{ $admission->bed }}
Medications ({{ $medications->count() }})
@forelse ($medications as $i => $m) @empty @endforelse
# Date Time Drug Dose Route Note Status Stopped by
{{ $i + 1 }} {{ $m->date ? \Carbon\Carbon::parse($m->date)->format('d M, Y') : '-' }} {{ $m->time ? \Carbon\Carbon::parse($m->time)->format('h:i A') : '-' }} {{ $m->drugName() }} {{ $m->dose }} {{ $m->form?->name }} {{ $m->note }} {{ $m->status }} {{ $m->st?->name }}
No medications recorded.
From pharmacy — charged to this admission ({{ $pharmacy->count() }})
@forelse ($pharmacy as $i => $ph) @empty @endforelse
# Sold Drug Quantity Invoice Created by
{{ $i + 1 }} {{ \Carbon\Carbon::parse($ph->sold_at)->format('d M, Y h:i A') }} {{ $ph->prd?->name ?? 'Deleted product' }} {{ $ph->quantity + 0 }} {{ $ph->measurement?->name }} POS #{{ $ph->invoice_no }} · {{ $ph->invoice_status }} {{ $ph->created_by_name }}
Nothing charged from the pharmacy.
Products Used ({{ $products->count() }})
@forelse ($products as $i => $p) @empty @endforelse
# Date Product Quantity Note Recorded by
{{ $i + 1 }} {{ $p->date ? \Carbon\Carbon::parse($p->date)->format('d M, Y') : '-' }} {{ $p->product?->name }} {{ rtrim(rtrim(number_format((float) $p->quantity, 2), '0'), '.') }} {{ $p->note }} {{ $p->user?->name }}
No products recorded.