{{-- The report page (T071, D8). WHAT IS ON EVERY PAGE, AND WHY The shop, so a page that has been photocopied and filed still says whose it is. The report's own question, because a title alone does not distinguish "sales by branch" run three ways. THE FILTERS IN WORDS, because two copies showing different figures with nothing saying one was Colombo and one was every branch is worse than no report. And WHEN it was produced — without that, the only way to tell which of two copies is current is to trust whoever handed it over. Page numbers are drawn by dompdf's own page counter in the footer, so a pack that has been dropped can be put back in order. --}} {{ $title }}
{{ $title }} · {{ $organisation['name'] }} Produced {{ $generated_at }}@if ($generated_by) by {{ $generated_by }}@endif
{{ $organisation['name'] }}
@if ($organisation['address'])
{{ $organisation['address'] }}
@endif @if ($organisation['tax_id'])
Tax registration {{ $organisation['tax_id'] }}
@endif
{{ $title }}
@if ($description)
{{ $description }}
@endif
Covering {{ $filters }}
@if (count($rows) === 0) {{-- Said in words. An empty table under a heading reads as a rendering fault, and somebody re-runs it three times before asking. --}}
Nothing matched these filters.
@else @foreach ($columns as $column) @endforeach @foreach ($rows as $row) @foreach ($columns as $column) @endforeach @endforeach @if (count($totals) > 0) @foreach ($columns as $i => $column) @endforeach @endif
in_array($column->type, ['money', 'quantity', 'number'], true)])>{{ $column->label }}
in_array($column->type, ['money', 'quantity', 'number'], true)])>{{ $formatter($row[$column->key] ?? null, $column) }}
in_array($column->type, ['money', 'quantity', 'number'], true)])> @if ($i === 0) Total @elseif (array_key_exists($column->key, $totals)) {{ $formatter($totals[$column->key], $column) }} @endif
@endif @if ($truncated) {{-- Declared, never silent. A cut-off list that does not say so reads as "that is everything", and the total above it is then simply wrong. --}}
Cut short at {{ number_format($max_rows) }} rows. The total above covers only what is printed here. Narrow the filters to see the rest.
@endif