@extends('print.layout') @section('title', 'Receipt - ' . $tab->tab_number) @php $paperWidth = 58; $billable = $split ?? $tab; $sym = config('pos.company.currency_symbol'); @endphp @section('content')
{{ config('pos.company.name') }}
BAR
@if (config('pos.company.till_number') || config('pos.company.paybill_number'))
@if (config('pos.company.till_number')) Till: {{ config('pos.company.till_number') }} @endif @if (config('pos.company.till_number') && config('pos.company.paybill_number')) · @endif @if (config('pos.company.paybill_number')) Paybill: {{ config('pos.company.paybill_number') }} @endif
@endif
Tab: {{ $tab->tab_number }}
@if ($split)
{{ $split->label }}
@endif
{{ $tab->customer_name ?? 'Walk-in' }}
Bartender: {{ $tab->bartender->name ?? '-' }}
{{ now()->format('d M Y, H:i') }}

@forelse (($split ? $split->items : $tab->items) as $item) @if ($item->status !== 'void') @endif @empty @endforelse
{{ $item->quantity }}x {{ $item->product->name }}@if($item->is_complimentary) (comp)@endif @if($item->discount_percent > 0)(-{{ rtrim(rtrim(number_format($item->discount_percent, 2), '0'), '.') }}%)@endif {{ number_format($item->line_total, 2) }}
No items

@php $happySaved = ($split ? $split->items : $tab->items)->where('status', '!=', 'void')->sum(fn ($i) => $i->original_price ? ((float) $i->original_price - (float) $i->unit_price) * $i->quantity : 0); @endphp @if ($happySaved > 0)@endif
Subtotal{{ number_format($billable->subtotal, 2) }}
Happy hour saved{{ number_format($happySaved, 2) }}
Discount-{{ number_format($billable->discount_total, 2) }}
VAT{{ number_format($billable->tax_total, 2) }}
Levy{{ number_format($billable->levy_total, 2) }}
TOTAL{{ $sym }} {{ number_format($billable->grand_total, 2) }}

Payments
@forelse (($split ? $split->payments : $tab->payments) as $payment)
{{ $payment->paymentMethod->name ?? $payment->method }} {{ number_format($payment->amount, 2) }}
@if ($payment->reference_number)
Ref: {{ $payment->reference_number }}
@endif @empty
No payment recorded yet
@endforelse
Thank you!
@endsection