@if($order && $order->details->count() > 0)
@foreach($order->details as $detail) @endforeach
PROD. CANT. TOT.
{{ $detail->product->name }}
{{ $currency ?? 'S/' }}{{ number_format($detail->price, 2) }} @if($detail->note) @endif
{{ number_format($detail->quantity * $detail->price, 2) }}
@else

Cuenta vacĂ­a

@endif
@if($order)
Subtotal:
{{ number_format($order->total, 2) }}
@if($order->discount > 0)
Descuento:
-{{ number_format($order->discount, 2) }}
@endif @if($order->tip > 0)
Propina:
+{{ number_format($order->tip, 2) }}
@endif
TOTAL:

{{ $currency ?? 'S/' }}{{ number_format($order->total + ($order->tip ?? 0) - ($order->discount ?? 0), 2) }}

@endif