115 lines
3.6 KiB
PHP
115 lines
3.6 KiB
PHP
<div class="no-break" style="margin: 0; padding: 0">
|
|
<table style="width: 100%; border-top: 1px solid #000; border-bottom: 1px solid #000; border-collapse: collapse; border-left: none; border-right: none;">
|
|
|
|
<tr>
|
|
<td style="text-align: center; margin-top: 5px;">
|
|
<h2 style=" text-transform: uppercase; text-align: center; margin: 0;">
|
|
Analisa Unit
|
|
</h2>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table>
|
|
<tr>
|
|
@php
|
|
$cekLuas = isset($forminspeksi['luas_unit']['tidak sesuai']) ? 'tidak sesuai' : 'sesuai';
|
|
|
|
$luas = $forminspeksi['luas_unit'][$cekLuas] ?? null;
|
|
@endphp
|
|
<td style="padding: 2px;">Luas Unit</td>
|
|
<td style="padding: 2px;">:</td>
|
|
<td style="padding: 2px;">{{ $luas ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Bentuk Unit</strong></td>
|
|
<td>
|
|
@if (isset($basicData['bentukUnit']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['bentukUnit'] 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['bentuk_unit']) && in_array($item->name, $forminspeksi['bentuk_unit']) ? 'checked' : '' }}>
|
|
{{ $item->name }}
|
|
</label>
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
|
|
<tr>
|
|
<td><strong>Kondisi Unit</strong></td>
|
|
<td>
|
|
@if (isset($basicData['kondisiUnit']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['kondisiUnit'] 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['kondisi_unit']) && in_array($item->name, $forminspeksi['kondisi_unit']) ? 'checked' : '' }}>
|
|
{{ $item->name }}
|
|
</label>
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
<tr>
|
|
<td><strong>Posisi Unit</strong></td>
|
|
<td>
|
|
@if (isset($basicData['posisiUnit']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['posisiUnit'] 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['posisi_unit']) && in_array($item->name, $forminspeksi['posisi_unit']) ? 'checked' : '' }}>
|
|
{{ $item->name }}
|
|
</label>
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
<tr>
|
|
<td><strong>View Unit</strong></td>
|
|
<td>
|
|
@if (isset($basicData['view']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['view'] 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['view']) && in_array($item->name, $forminspeksi['view']) ? 'checked' : '' }}>
|
|
{{ $item->name }}
|
|
</label>
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</table>
|
|
</div>
|