@extends('layouts.app') @section('title', 'Held Orders') @section('content')

Held Orders

Every order a waiter has put on hold, waiting for you to take payment and clear it.

@if ($orders->isEmpty())
Nothing on hold right now.
@else
@foreach ($orders as $order)

{{ $order->order_number }}

{{ $order->table->name ?? $order->sale_type->label() }}

{{ $order->status->label() }}

Waiter: {{ $order->waiter->name ?? '—' }}

On hold since {{ $order->held_at?->timezone(config('pos.company.timezone'))->format('H:i') }}

Items

@foreach ($order->items->where('status', '!=', 'void') as $item)
{{ $item->quantity }}× {{ $item->product->name }}{{ number_format($item->line_total, 0) }}
@endforeach
{{ config('pos.company.currency_symbol') }} {{ number_format($order->display_total, 2) }}
Open

Clear {{ $order->order_number }}

Balance: {{ config('pos.company.currency_symbol') }} {{ number_format($order->display_total, 2) }}

@csrf
@if ($mpesaReady)

Need to send an M-Pesa prompt instead? Open the order and use M-Pesa there.

@endif
@endforeach
@endif
@endsection