@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 (session('receipt_print_url'))

Payment cleared successfully.

The order is closed. You can now print the customer's receipt.

Print Receipt
@endif @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 @if (auth()->user()->hasRole('administrator'))
@csrf @method('DELETE')
@endif

Clear {{ $order->order_number }}

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

@csrf

Example: Cash Ksh 60 + M-Pesa Ksh 40. The total must equal the bill balance.

@can('customers.manage') @endcan

Required only when credit is one of the payment methods.

@if ($mpesaReady)

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

@endif
@endforeach
@endif @can('customers.manage')

Add new customer

{ saving=false; alert(err.message || 'Unable to add customer. Please check the details.'); })> @csrf
@endcan @if (session('receipt_print_url')) @push('scripts') @endpush @endif
@endsection