@if($order)
@foreach($order->details as $detail)
@csrf @method('DELETE')
{{ $detail->product->name }}
@if($detail->note)
{{ $detail->note }}
@endif
@csrf
{{ number_format($detail->price * $detail->quantity, 2) }}
@endforeach
Subtotal: {{ number_format($order->details->sum(fn($d) => $d->price * $d->quantity), 2) }}
Descuento: -{{ number_format($order->discount, 2) }}
Propina: +{{ number_format($order->tip, 2) }}
Total: {{ $currency ?? 'S/' }}{{ number_format($order->total, 2) }}
Dividir
Comanda
Pre-Cuenta
@else

Mesa Vacía

Agrega productos para comenzar
@endif