{{-- One application - or one amendment to it - as an official sheet. The visual family is the agency's rejection note (resources/views/note.blade.php): the same ruled frame, ornamental dividers, emblem-and-logo header and serif setting. What differs is that a note is ONE fixed page and this is a RECORD - it runs to whatever length the application needs - so the frame, the watermark and the running head are fixed elements that Chrome repaints on every sheet, rather than absolutes positioned once. The template decides nothing about what an application contains. It loops over blocks the composer hands it, which is what keeps field knowledge out of the layout and layout out of the domain. Two composers feed it (ApplicationReportComposer, AmendmentReportComposer); a table block may name `marked` row indexes to highlight, and any block may carry `notes`. --}} {{ $title }} - {{ $reference }}
@if($logo)
@endif
{{-- ── MASTHEAD ────────────────────────────────────────────────── --}}
@if($emblem) Coat of Arms of Tanzania @endif
The United Republic of Tanzania
Ministry of Industry and Trade
Weights and Measures Agency
Wakala wa Vipimo
P.O. Box 30386, Kibaha  ·  Tel: 0784 729 365  ·  misugusugu@wma.go.tz
@if($logo) Weights and Measures Agency @endif
{{-- ── TITLE ───────────────────────────────────────────────────── --}}
{{ $title }}
{{ $subtitle }}
@if($archived)
Archived
@endif
{{-- ── AT A GLANCE ─────────────────────────────────────────────── --}}
@foreach($summary as [$key, $value])
{{ $key }}
{{ $value }}
@endforeach
{{-- ── THE RECORD ──────────────────────────────────────────────── --}} @foreach($blocks as $block)
{{ $block['title'] }}
@if($block['kind'] === 'fields') {{-- Two pairs to a row. A hundred-odd fields one to a line would run to eight sheets and read as a list rather than as a record. --}} @foreach(array_chunk($block['rows'], 2) as $pair) @foreach($pair as [$key, $value]) @endforeach @if(count($pair) === 1) @endif @endforeach
{{ $key }} {{ $value }}
@elseif(count($block['rows']) === 0)

{{ $block['empty'] }}

@else @foreach($block['columns'] as $index => $column) @endforeach @foreach($block['rows'] as $rowIndex => $row) in_array($rowIndex, $block['marked'] ?? [], true)])> @foreach($row as $index => $cell) @endforeach @endforeach @if(!empty($block['totals'])) @endif
{{ $column }}
{{ $cell }}
@foreach(array_chunk($block['totals'], 2) as [$label, $value]) {{ $label }}: {{ $value }}@if(!$loop->last)  ·  @endif @endforeach
@endif @if(!empty($block['notes'])) @endif
@endforeach {{-- ── ATTESTATION ─────────────────────────────────────────────── --}}
@if($qrImage)
{{ $reference }}
{{ $qrCaption }}
@endif
This is a record of {{ $recordOf ?? 'application' }} {{ $reference }} as held by the Weights and Measures Agency at the moment of printing. It reproduces what the Tanzania Customs Integrated System sent and what this Agency has recorded against it since; it is not a licence, a permit, or a certificate of conformity.
Officer of Weights & Measures
Name, signature and official stamp
Printed by {{ $printedBy }} on {{ $printedAt }} Weights and Measures Agency — Imported Pre-Packaged Goods