{{-- Details popup of a medicine order. --}} @php($money = fn ($amount) => number_format((float) $amount, 2))
{{ $order->patient?->name }}
{{ $order->delivery_phone ?: $order->patient?->phone }}
@if ($order->delivery_address)
{{ $order->delivery_address }}
@endif
{{ trans('clinic.medicine_orders.statuses.' . $order->status) }} @if ($order->booking)
{{ trans('clinic.medicine_orders.booking_id') }}: {{ $order->booking->doctor?->name }} · {{ $order->booking->scheduled_at?->format('Y-m-d') }}
@endif
@if ($order->prescription_image_url)
@endif
{{ trans('clinic.medicine_orders.prescription_text') }}
{!! nl2br(e($order->prescription_text ?: '—')) !!}
@if ($order->notes)
{{ trans('clinic.medicine_orders.notes') }}
{{ $order->notes }}
@endif
{{ trans('clinic.medicine_orders.medicine_cost') }}{{ $money($order->medicine_cost) }}
{{ trans('clinic.medicine_orders.center_amount') }} ({{ (float) $order->center_percentage }}%){{ $money($order->center_amount) }}
{{ trans('clinic.medicine_orders.delivery_cost') }}{{ $money($order->delivery_cost) }}
{{ trans('clinic.medicine_orders.total') }}{{ $money($order->total) }}
{{ trans('clinic.medicine_orders.created_by', ['name' => $order->creator?->name ?? '—']) }} · {{ $order->created_at?->format('Y-m-d H:i') }} @if ($order->prepared_at) · {{ trans('clinic.medicine_orders.statuses.prepared') }}: {{ $order->prepared_at->format('Y-m-d H:i') }}@endif @if ($order->delivered_at) · {{ trans('clinic.medicine_orders.statuses.delivered') }}: {{ $order->delivered_at->format('Y-m-d H:i') }}@endif