@php
// Short and light on purpose: no images (initials instead of the logo) and few styles, so mail filters
// do not mistake it for spam. Everything else is in the attached PDF.
$r = $report;
$accent = preg_match('/^#[0-9A-Fa-f]{6}$/', (string) $r['business']['primary']) ? $r['business']['primary'] : '#0f5132';
$initials = \App\Support\ReportDocument::initials((string) $r['business']['name']) ?: 'Z';
$variance = $r['cash_variance'];
$row = 'padding:6px 0;border-bottom:1px solid #eeeeee;font-size:14px;';
@endphp
Z Report {{ $r['report_no'] }}
| {{ $initials }} |
{{ $r['business']['name'] }}
Z report {{ $r['report_no'] }}{{ $r['is_closed'] ? '' : ' (preview, register still open)' }}
|
|
|
Shift of {{ $r['cashier']->name ?? 'the register' }},
{{ $r['opened_at']?->format('H:i') }}–{{ $r['closed_at']->format('H:i') }} on {{ $r['closed_at']->format('l, d M Y') }}.
|
| Total sales | {{ formatCurrency($r['gross_sales']) }} |
| Number of sales | {{ number_format($r['sales_count']) }} |
@foreach($r['payments'] as $p)
| {{ $p['label'] }} | {{ formatCurrency($p['amount']) }} |
@endforeach
@if($r['discounts'] > 0)
| Discounts given | {{ formatCurrency($r['discounts']) }} |
@endif
| Expected in drawer | {{ formatCurrency($r['expected_cash']) }} |
@if($r['counted_cash'] !== null)
| Counted | {{ formatCurrency($r['counted_cash']) }} |
| Difference |
{{ $variance === null || abs($variance) < 0.01 ? 'Balanced' : ($variance < 0 ? 'Short ' : 'Over ') . formatCurrency(abs($variance)) }}
|
@endif
|
|
The full report (products, every sale, cash drawer and profit) is attached as a PDF.
|
|
Sent by {{ config('brand.full') }}. You get this email because you are on the Z report list of {{ $r['business']['name'] }}.
|