Files
lpj/resources/views/surveyor/components/print-out/tanah.blade.php

154 lines
4.5 KiB
PHP

<table>
<tr>
@php
$cekLuas = isset(
$forminspeksi['tanah']['luas_tanah']['tidak sesuai'],
)
? 'tidak sesuai'
: 'sesuai';
$luas = $forminspeksi['tanah']['luas_tanah'][$cekLuas] ?? null;
@endphp
<td width="25%"><strong>Luas Tanah</strong></td>
<td>{{ $luas }}</td>
</tr>
<!-- Bentuk Tanah -->
<tr>
<td style="vertical-align: top;"><strong>Bentuk Tanah</strong></td>
<td>
@if (isset($basicData['bentukTanah']))
<table class="checkbox-list">
<tr>
@foreach ($basicData['bentukTanah'] as $index => $item)
@if ($index % 3 == 0 && $index > 0)
</tr>
<tr>
@endif
<td class="checkbox-item">
<label class="checkbox-label">
<input type="checkbox"
{{ isset($forminspeksi['tanah']['bentuk_tanah']['bentuk_tanah']) && in_array($item->name, $forminspeksi['tanah']['bentuk_tanah']['bentuk_tanah']) ? 'checked' : '' }}>
{{ $item->name }}
</label>
</td>
@endforeach
</tr>
</table>
@endif
</td>
</tr>
<!-- Kontur Tanah -->
<tr>
<td style="vertical-align: top;"><strong>Kontur Tanah</strong></td>
<td>
@if (isset($basicData['konturTanah']))
<table class="checkbox-list">
<tr>
@foreach ($basicData['konturTanah'] as $index => $item)
@if ($index % 3 == 0 && $index > 0)
</tr>
<tr>
@endif
<td class="checkbox-item">
<label class="checkbox-label">
<input type="checkbox"
{{ isset($forminspeksi['tanah']['kontur_tanah']) && in_array($item->name, $forminspeksi['tanah']['kontur_tanah']) ? 'checked' : '' }}>
{{ $item->name }}
</label>
</td>
@endforeach
</tr>
</table>
@endif
</td>
</tr>
<!-- Ketinggian Tanah -->
<tr>
<td style="vertical-align: top;"><strong>Ketinggian Tanah</strong></td>
<td>
@if (isset($basicData['ketinggianTanah']))
<table class="checkbox-list">
<tr>
@foreach ($basicData['ketinggianTanah'] as $index => $item)
@if ($index % 3 == 0 && $index > 0)
</tr>
<tr>
@endif
<td class="checkbox-item">
<label class="checkbox-label">
<input type="checkbox"
{{ isset($forminspeksi['tanah']['ketinggian_tanah']['ketinggian']) && in_array($item->name, $forminspeksi['tanah']['ketinggian_tanah']['ketinggian']) ? 'checked' : '' }}>
{{ $item->name }}
</label>
</td>
@endforeach
</tr>
</table>
@endif
</td>
</tr>
<!-- Kondisi Fisik Tanah -->
<tr>
<td style="vertical-align: top;"><strong>Kondisi Fisik Tanah</strong></td>
<td>
@if (isset($basicData['kondisiFisikTanah']))
<table class="checkbox-list">
<tr>
@foreach ($basicData['kondisiFisikTanah'] as $index => $item)
@if ($index % 3 == 0 && $index > 0)
</tr>
<tr>
@endif
<td class="checkbox-item">
<label class="checkbox-label">
<input type="checkbox"
{{ isset($forminspeksi['tanah']['kondisi_fisik_tanah']['kondisi_fisik_tanah']) && in_array($item->name, $forminspeksi['tanah']['kondisi_fisik_tanah']['kondisi_fisik_tanah']) ? 'checked' : '' }}>
{{ $item->name }}
</label>
</td>
@endforeach
</tr>
</table>
@endif
</td>
</tr>
<tr>
<td><strong>Tusuk Sate</strong></td>
<td>
<label>
<input type="radio" name="tusuk_sate" value="yes"
{{ $forminspeksi['tanah']['tusuk_sate'] == 'yes' ? 'checked' : '' }}>
Ya
</label>
<label>
<input type="radio" name="tusuk_sate" value="no"
{{ $forminspeksi['tanah']['tusuk_sate'] == 'no' ? 'checked' : '' }}>
Tidak
</label>
</td>
</tr>
<tr>
<td><strong>Lockland</strong></td>
<td>
<label>
<input type="radio" name="lockland" value="yes"
{{ $forminspeksi['tanah']['lockland'] == 'yes' ? 'checked' : '' }}>
Ya
</label>
<label>
<input type="radio" name="lockland" value="no"
{{ $forminspeksi['tanah']['lockland'] == 'no' ? 'checked' : '' }}>
Tidak
</label>
</td>
</tr>
</table>