{{--
Form C's table of particulars for one instrument line.
The type of instrument heads the table unnumbered, as the form prints it;
the particulars follow, numbered. Up to eight of them read down one column
the way Form C lays them out. A family that describes its pattern in more
detail - a water meter has a dozen - is set two to a row so the certificate
stays on its page. Serial numbers are not printed - the QR code's
verification page lists them.
--}}
@php
$rows = $instrument['rows'];
$twoUp = count($rows) > 7;
@endphp
@if(! $twoUp)
|
Type of measuring instrument |
{{ $instrument['title'] }} |
@foreach($rows as $i => [$label, $value])
| {{ $i + 1 }} |
{{ $label }} |
{{ $value !== '' ? $value : '-' }} |
@endforeach
@else
|
Type of measuring instrument |
{{ $instrument['title'] }} |
@foreach(array_chunk($rows, 2, true) as $pair)
@foreach($pair as $i => [$label, $value])
| {{ $i + 1 }} |
{{ $label }} |
first && count($pair) === 1 ? ' colspan="4"' : '' !!}>{{ $value !== '' ? $value : '-' }} |
@endforeach
@endforeach
@endif