{{ $settings['ticket_header'] }}
@if(!empty($settings['store_address'])){{ $settings['store_address'] }}
@endif @if(!empty($settings['store_rut']))R.U.T: {{ $settings['store_rut'] }}
@endif @if(!empty($settings['store_phone']))Teléfono: {{ $settings['store_phone'] }}
@endif| Nº Ticket: {{ $order->invoice_no }} | Fecha: {{ $order->order_date }} |
| @if($settings['show_cashier']) Cajero: {{ Auth::user()->name ?? 'Caja 1' }} @endif | Cliente: {{ $order->customer->name ?? 'Cliente General' }} |
| Método de Pago: {{ $order->payment_status === 'HandCash' ? 'Efectivo' : ($order->payment_status === 'Cheque' ? 'Tarjeta/Otro' : 'Crédito/Pendiente') }} | |
| Artículo | Cant. | P.Unit | Total |
|---|---|---|---|
| {{ $item->product ? $item->product->product_name : ($item->custom_product_name ?? 'Producto Común') }} | {{ $item->quantity }} | ${{ number_format($item->unitcost, 0, ',', '.') }} | ${{ number_format($item->total, 0, ',', '.') }} |
| Subtotal: | ${{ number_format($order->sub_total, 0, ',', '.') }} |
| Impuesto: | ${{ number_format($order->vat, 0, ',', '.') }} |
| TOTAL: | ${{ number_format($order->total, 0, ',', '.') }} |
| Recibido: | ${{ number_format($order->pay, 0, ',', '.') }} |
| Vuelto: | ${{ number_format(max(0, $order->pay - $order->total), 0, ',', '.') }} |