@php
// Short and light like the Z report email: initials, no images, the full report attached as a PDF
$d = $report;
$name = $d['business']['name'] ?? '';
$accent = preg_match('/^#[0-9A-Fa-f]{6}$/', (string) ($d['business']['primary'] ?? '')) ? $d['business']['primary'] : '#0f5132';
$initials = \App\Support\ReportDocument::initials((string) $name) ?: 'R';
$variance = $d['cash_variance'];
$row = 'padding:6px 0;border-bottom:1px solid #eeeeee;font-size:14px;';
@endphp
Register report {{ $d['day']->format('d M Y') }}
| {{ $initials }} |
{{ $name }}
Register report, {{ $d['day']->format('l, d M Y') }}
|
|
| Total sales | {{ formatCurrency($d['gross_sales']) }} |
| Number of sales | {{ number_format($d['sales_count']) }} |
| Registers | {{ $d['shifts']->count() }}{{ $d['open_count'] ? ' (' . $d['open_count'] . ' still open)' : '' }} |
@foreach($d['payments'] as $p)
| {{ $p['label'] }} | {{ formatCurrency($p['amount']) }} |
@endforeach
| Expected in drawers | {{ formatCurrency($d['expected_cash']) }} |
@if($variance !== null)
| Cash difference |
{{ abs($variance) < 0.01 ? 'Balanced' : ($variance < 0 ? 'Short ' : 'Over ') . formatCurrency(abs($variance)) }}
|
@endif
|
|
The full report (each register, payments and products sold) is attached as a PDF.
|
|
Sent by {{ config('brand.full') }}. You get this email because you are on the Z report list of {{ $name }}.
|