{{-- 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) @foreach($rows as $i => [$label, $value]) @endforeach
Type of measuring instrument {{ $instrument['title'] }}
{{ $i + 1 }} {{ $label }} {{ $value !== '' ? $value : '-' }}
@else @foreach(array_chunk($rows, 2, true) as $pair) @foreach($pair as $i => [$label, $value]) @endforeach @endforeach
Type of measuring instrument {{ $instrument['title'] }}
{{ $i + 1 }} {{ $label }} first && count($pair) === 1 ? ' colspan="4"' : '' !!}>{{ $value !== '' ? $value : '-' }}
@endif