{#if o}

Order {o.order_no}

{o.status.replace('_', ' ')}

Customer

{o.customer.name}
+{o.customer.phone} · WhatsApp
{o.customer.email}

Delivery: {o.delivery_method}{o.customer.location ? ' – ' + o.customer.location : ''}

{#if o.customer.notes}

Notes: {o.customer.notes}

{/if}

Payment

M-Pesa {o.payment?.status}{o.payment?.receipt ? ` · Receipt ${o.payment.receipt}` : ''}
{o.payment?.result_desc || ''}

Items

{#each o.items as it}{/each}
{it.qty} × {it.name}{ksh(it.total)}
Delivery{ksh(o.delivery_fee)}
Total{ksh(o.total)}

Update status

{msg} {#if o.history?.length}

History

{/if}
{:else}

Loading…

{/if}