MIF_E31222541/resources/views/website/export/excel-parameter-height-vill...

31 lines
1.2 KiB
PHP

<table style="border-collapse: collapse; font-size: 12px; width: 100%; border: 1px solid #000;">
<tr>
<td colspan="3" style="text-align: center; border: 1px solid #000; font-weight: bold; width: 200px;">
Parameter Ketinggian Desa Tahun {{ $parameterHeightVillage[0]['year'] }}
</td>
</tr>
@php
$subDistricts = collect($parameterHeightVillage)->groupBy('sub_district');
@endphp
@foreach ($subDistricts as $subDistrict => $villages)
@foreach ($villages as $index => $village)
<tr>
@if ($index == 0)
<td style="text-align: center; border: 1px solid #000; font-weight: bold; vertical-align: middle;"
rowspan="{{ count($villages) }}">
{{ $subDistrict }}
</td>
@endif
<td style="text-align: center; border: 1px solid #000; font-weight: bold;">
{{ $village['village'] }}
</td>
<td style="text-align: center; border: 1px solid #000; font-weight: bold;">
{{ $village['height'] }}
</td>
</tr>
@endforeach
@endforeach
</table>