{{-- Z report for an 80mm receipt printer. $report from App\Services\ZReportService; $money formats (or hides) amounts; $final: the register is closed, so counted cash and the variance are shown too. --}} @php $b = $report['business']; $line = 'border-top: 1px dashed #000; margin: 8px 0;'; @endphp
@if(!empty($b['logo_url'])) @endif
{{ $b['name'] }}
@if(!empty($b['location']))
{{ $b['location'] }}
@endif @if(!empty($b['telephone']))
Tel: {{ $b['telephone'] }}
@endif
Z-REPORT {{ $report['report_no'] }}
@unless($final)
(before closing)
@endunless
Cashier: {{ $report['cashier']->name ?? 'Unknown' }}
Register: #{{ $report['register']->id }}@if($report['location']) · {{ $report['location'] }}@endif
Opened: {{ $report['opened_at']?->format('d M Y, H:i') }}
{{ $final ? 'Closed' : 'Printed' }}: {{ ($final ? $report['closed_at'] : now())->format('d M Y, H:i') }}
SALES BY PAYMENT METHOD
@forelse($report['payments'] as $payment) @empty @endforelse
MethodQtyTotal
{{ $payment['label'] }}@if($payment['split_count'])*@endif {{ $payment['count'] }} {{ $money($payment['amount'], '') }}
No sales recorded
@if($report['split_sales']->count())
* includes parts of {{ $report['split_sales']->count() }} split sale(s)
@endif
TOTAL SALES ({{ $report['sales_count'] }}):{{ $money($report['gross_sales']) }}
@if($report['total_due'] > 0)
Unpaid (due):{{ $money($report['total_due']) }}
@endif @if($final)
Items sold:{{ rtrim(rtrim(number_format($report['items_sold'], 2), '0'), '.') }}
@if($report['edited_count'])
Edited sales:{{ $report['edited_count'] }}
@endif @endif
Opening cash:{{ 'MWK ' . number_format($report['opening_cash'], 2) }}
Cash received:{{ $money($report['cash_sales']) }}
@if($report['cash_paid_out'] > 0)
Paid out (expenses):-{{ $money($report['cash_paid_out']) }}
@foreach($report['paid_out'] as $expense)
· {{ $expense->category }}{{ $expense->description ? ': ' . \Illuminate\Support\Str::limit($expense->description, 24) : '' }} {{ $money($expense->amount, '') }}
@endforeach @endif
EXPECTED IN DRAWER:{{ $money($report['expected_cash']) }}
@if($final && $report['counted_cash'] !== null)
Counted cash:{{ $money($report['counted_cash']) }}
{{ $report['cash_variance'] < 0 ? 'SHORT:' : ($report['cash_variance'] > 0 ? 'OVER:' : 'DIFFERENCE:') }} {{ $money(abs($report['cash_variance'])) }}
@endif
*** END OF REPORT ***
@if($final)
Cashier signature: ____________
@endif