1127 lines
39 KiB
PHP
1127 lines
39 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Laporan Penilai jaminan</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
color: #000;
|
|
}
|
|
|
|
.container {
|
|
/* width: 100%; */
|
|
padding: 10px;
|
|
/* border: 1px solid #000; */
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
table th,
|
|
table td {
|
|
/* border: 1px solid #000; */
|
|
padding: 5px;
|
|
text-align: left;
|
|
}
|
|
|
|
.judul {
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
ul li {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.photo-item {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.photo-image {
|
|
max-width: 80%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.custom-dl {
|
|
width: 100%;
|
|
display: table;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.custom-dl dt {
|
|
font-weight: bold;
|
|
|
|
width: 150px;
|
|
padding: 5px;
|
|
}
|
|
|
|
.custom-dl dd {
|
|
|
|
padding: 5px;
|
|
}
|
|
|
|
.judul-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.judul-table td {
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
padding: 5px;
|
|
}
|
|
|
|
.border1 {
|
|
border: 1px solid #000;
|
|
width: 50px;
|
|
}
|
|
|
|
.border {
|
|
border: 1px solid #000;
|
|
}
|
|
|
|
.judul h6 {
|
|
margin: 0;
|
|
/* Menghindari margin bawaan */
|
|
font-size: 12px;
|
|
}
|
|
|
|
.custom-dl-tujuan {
|
|
width: 100%;
|
|
/* border-collapse: collapse; */
|
|
}
|
|
|
|
.custom-dl-tujuan td {
|
|
vertical-align: top;
|
|
padding: 10px;
|
|
}
|
|
|
|
.inner-table {
|
|
width: 100%;
|
|
/* border-collapse: collapse; */
|
|
}
|
|
|
|
.inner-table td {
|
|
padding: 5px;
|
|
}
|
|
|
|
.inner-table td:first-child {
|
|
font-weight: bold;
|
|
width: 150px;
|
|
/* Lebar kolom keterangan */
|
|
}
|
|
|
|
.custom-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.custom-table td {
|
|
padding: 8px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.custom-table td:first-child {
|
|
font-weight: bold;
|
|
width: 30%;
|
|
/* Sesuaikan lebar kolom keterangan */
|
|
}
|
|
|
|
.grid-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.grid-table td {
|
|
padding: 8px;
|
|
vertical-align: top;
|
|
text-align: left;
|
|
width: 33%;
|
|
/* Membagi kolom menjadi tiga */
|
|
}
|
|
|
|
.grid-table input[type="checkbox"] {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
/* border: 1px solid #000; */
|
|
/* border-collapse: collapse; */
|
|
}
|
|
|
|
td {
|
|
/* border: 1px solid #000; */
|
|
padding: 5px;
|
|
}
|
|
|
|
.checkbox-list {
|
|
width: 100%;
|
|
table-layout: fixed;
|
|
/* Membuat lebar kolom tetap sama */
|
|
}
|
|
|
|
.checkbox-list td {
|
|
width: 33.33%;
|
|
|
|
padding: 5px;
|
|
}
|
|
|
|
.checkbox-list input[type="checkbox"] {
|
|
display: inline-block;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
strong {
|
|
font-weight: normal;
|
|
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h4>LAPORAN PENILAIAN ATAS TANAH DAN/ATAU BANGUNAN</h4>
|
|
<p>NO: {{ $permohonan->nomor_registrasi }}</p>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
A
|
|
</td>
|
|
<td class="border">
|
|
TUJUAN PENILAIAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table class="custom-dl-tujuan">
|
|
<tr>
|
|
<td>
|
|
<table class="inner-table">
|
|
<tr>
|
|
<td><strong>Permintaan (A/O)</strong></td>
|
|
<td>{{ $permohonan->user->name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Jenis Fasilitas</strong></td>
|
|
<td> {{ $permohonan->tujuanPenilaian->name }}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td>
|
|
<table class="inner-table">
|
|
<tr>
|
|
<td><strong>Tanggal</strong></td>
|
|
<td>{{ $permohonan->created_at->format('d/m/Y') }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Kunjungan Tanggal</strong></td>
|
|
<td>{{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) }}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
@if (isset($basicData['tujuanPenilaian']))
|
|
<ul class="checkbox-list grid-container">
|
|
@foreach ($basicData['tujuanPenilaian'] as $item)
|
|
<li><input type="checkbox"
|
|
{{ $item->name == $permohonan->tujuanPenilaian->name ? 'checked' : '' }}>{{ $item->name }}
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
B
|
|
</td>
|
|
<td class="border">
|
|
IDENTITAS DEBITUR
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table class="custom-table">
|
|
<tr>
|
|
<td><strong>Nama Debitur</strong></td>
|
|
<td>{{ $permohonan->debiture->name ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Alamat dan Telepon</strong></td>
|
|
<td>{{ $permohonan->debiture->address ?? '' }} {{ $permohonan->debiture->phone ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Saat menilai, penilai didampingi oleh</strong></td>
|
|
<td>
|
|
<table class="inner-table">
|
|
<tr>
|
|
<td><strong>Debitur / Wakil Debitur</strong></td>
|
|
<td>{{ $permohonan->debiture->name ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Pihak Bank selain PJ</strong></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
C
|
|
</td>
|
|
<td class="border">
|
|
JENIS JAMINAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
@php
|
|
$data = '';
|
|
foreach ($permohonan->debiture->documents as $dokumen) {
|
|
$data .= $dokumen->jenisJaminan->name . ', ';
|
|
}
|
|
$data = rtrim($data, ', '); // Remove the trailing comma and space
|
|
@endphp
|
|
|
|
@if (isset($basicData['jenisJaminan']))
|
|
<table class="grid-table">
|
|
@foreach ($basicData['jenisJaminan'] as $index => $item)
|
|
@if ($index % 3 === 0)
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox" {{ in_array($item->name, explode(',', $data)) ? 'checked' : '' }}>
|
|
{{ $item->name }}
|
|
</td>
|
|
@if ($index % 3 === 2 || $loop->last)
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</table>
|
|
@endif
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
D
|
|
</td>
|
|
<td class="border">
|
|
LOKASI JAMINAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table class="custom-table">
|
|
<tr>
|
|
<td><strong>Terletak di</strong></td>
|
|
<td> {{ $dokumen->pemilik->address ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Kelurahan</td>
|
|
<td>{{ $dokumen->pemilik->village->name ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Kecamatan</strong></td>
|
|
<td>{{ $dokumen->pemilik->district->name ?? '' }},</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Kotamadya</strong></td>
|
|
<td> {{ $dokumen->pemilik->city->name ?? '' }},</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Propinsi</strong></td>
|
|
<td>{{ $dokumen->pemilik->province->name ?? '' }}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
E
|
|
</td>
|
|
<td class="border">
|
|
STATUS KEPEMILIKAN, HUBUNGAN DAN PENGHUNI
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width="25%"><strong>SHM No/Kelurahan/Desa</strong></td>
|
|
<td>{{ $dokumen->pemilik->address ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Tanggal</strong></td>
|
|
<td>{{ $dokumen->pemilik->created_at->format('d-m-Y') ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Atas Nama</strong></td>
|
|
<td>{{ $dokumen->pemilik->name ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Gambar Situasi No/Tanggal</strong></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Luas Tanah /m2</strong></td>
|
|
<td>{{ $dokumen->luas_tanah ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>IMB No/Tanggal</strong></td>
|
|
<td>{{ $dokumen->imb_no ?? '' }}</td>
|
|
</tr>
|
|
<tr>
|
|
@php
|
|
|
|
$cekHub =
|
|
isset($forminspeksi['asset']['hub_cadeb']) &&
|
|
$forminspeksi['asset']['hub_cadeb'] === 'sesuai'
|
|
? 'sesuai'
|
|
: 'tidak sesuai';
|
|
|
|
$hubCadeb = isset($forminspeksi['asset']['hub_cadeb'][$cekHub])
|
|
? $forminspeksi['asset']['hub_cadeb']['tidak sesuai']
|
|
: $forminspeksi['asset']['hub_cadeb']['sesuai'];
|
|
@endphp
|
|
<td><strong>Hubungan Pemilik Jaminan dengan Debitur</strong></td>
|
|
<td>
|
|
@if (isset($basicData['hubCadeb']))
|
|
<table class="checkbox-table">
|
|
<tr>
|
|
@foreach ($basicData['hubCadeb'] as $item)
|
|
<td><input type="checkbox" {{ $item->name === $hubCadeb ? 'checked' : '' }} > {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
@php
|
|
|
|
$cekHub =
|
|
isset($forminspeksi['asset']['hub_cadeb_penghuni']) &&
|
|
$forminspeksi['asset']['hub_cadeb_penghuni'] === 'sesuai'
|
|
? 'sesuai'
|
|
: 'tidak sesuai';
|
|
|
|
$hubCadeb = isset($forminspeksi['asset']['hub_cadeb_penghuni'][$cekHub])
|
|
? $forminspeksi['asset']['hub_cadeb_penghuni']['tidak sesuai']
|
|
: $forminspeksi['asset']['hub_cadeb_penghuni']['sesuai'];
|
|
@endphp
|
|
<td><strong>Hubungan Penghuni Jaminan dengan Debitur</strong></td>
|
|
<td>
|
|
@if (isset($basicData['hubPenghuni']))
|
|
<table class="checkbox-table">
|
|
<tr>
|
|
@foreach ($basicData['hubPenghuni'] as $item)
|
|
<td><input type="checkbox" {{ $item->name === $hubCadeb ? 'checked' : '' }} > {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
F
|
|
</td>
|
|
<td class="border">
|
|
ANALISA TANAH DAN BANGUNAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table>
|
|
<tr>
|
|
@php
|
|
|
|
$cekLuas =
|
|
isset($forminspeksi['tanah']['luas_tanah']) &&
|
|
$forminspeksi['tanah']['luas_tanah'] === 'sesuai'
|
|
? 'sesuai'
|
|
: 'tidak sesuai';
|
|
|
|
$luas = isset($forminspeksi['tanah']['luas_tanah'][$cekLuas])
|
|
? $forminspeksi['tanah']['luas_tanah'][$cekLuas]
|
|
: null;
|
|
@endphp
|
|
|
|
<!-- Luas Tanah -->
|
|
<td width="25%"><strong>Luas Tanah</strong></td>
|
|
<td>{{ $luas }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><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>
|
|
<input type="checkbox" {{ in_array($item->name, $forminspeksi['tanah']['bentuk_tanah']['bentuk_tanah']) ? 'checked' : '' }}> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><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>
|
|
<input type="checkbox" {{ in_array($item->name, $forminspeksi['tanah']['kontur_tanah']) ? 'checked' : '' }}> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Permukaan dengan Jalan</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>
|
|
<input type="checkbox" > {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Peruntukan 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>
|
|
<input type="checkbox"> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Fisik 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>
|
|
<input type="checkbox"> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Jenis Bangunan</strong></td>
|
|
<td>
|
|
@if (isset($basicData['jenisBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['jenisBangunan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox"> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Kondisi Bangunan</strong></td>
|
|
<td>
|
|
@if (isset($basicData['kondisiBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['kondisiBangunan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox"> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Sifat Bangunan</strong></td>
|
|
<td>
|
|
@if (isset($basicData['sifatBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['sifatBangunan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox"> {{ $item->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@foreach ($basicData['spekKategoriBangunan'] as $kategori)
|
|
<tr>
|
|
<td><strong>{{ $kategori->name }}</strong></td>
|
|
<td>
|
|
@if (isset($basicData['sifatBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['sifatBangunan'] as $index => $sifat)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox"> {{ $sifat->name }}
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
G
|
|
</td>
|
|
<td class="border">
|
|
SARANA PELENGKAP DAN LINGKUNGAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table>
|
|
<tr>
|
|
@php
|
|
|
|
$cekLuas =
|
|
isset($forminspeksi['tanah']['luas_tanah']) &&
|
|
$forminspeksi['tanah']['luas_tanah'] === 'sesuai'
|
|
? 'sesuai'
|
|
: 'tidak sesuai';
|
|
|
|
$luas = isset($forminspeksi['tanah']['luas_tanah'][$cekLuas])
|
|
? $forminspeksi['tanah']['luas_tanah'][$cekLuas]
|
|
: null;
|
|
@endphp
|
|
|
|
<!-- Luas Tanah -->
|
|
<td width="25%"><strong>Luas Tanah</strong></td>
|
|
<td>{{ $luas }}</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Lapisan Perkerasan Jalan -->
|
|
<td><strong>Lapisan Perkerasan Jalan</strong></td>
|
|
<td>
|
|
@if (isset($basicData['perkerasanJalan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['perkerasanJalan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr> <!-- Baris baru setelah setiap 3 checkbox -->
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Lalulintas Didepan Lokasi -->
|
|
<td><strong>Lalulintas Didepan Lokasi</strong></td>
|
|
<td>
|
|
@if (isset($basicData['laluLintasLokasi']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['laluLintasLokasi'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Golongan Masyarakat Sekitar -->
|
|
<td><strong>Golongan Masyarakat Sekitar</strong></td>
|
|
<td>
|
|
@if (isset($basicData['golMasySekitar']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['golMasySekitar'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Terletak Di Daerah -->
|
|
<td><strong>Terletak di Daerah</strong></td>
|
|
<td>
|
|
@if (isset($basicData['terletakDiArea']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['terletakDiArea'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Disekitar Lokasi -->
|
|
<td><strong>Disekitar Lokasi</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><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Dengan Kondisi -->
|
|
<td><strong>Dengan Kondisi</strong></td>
|
|
<td>
|
|
@if (isset($basicData['jenisBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['jenisBangunan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Sifat Bangunan Sekitar -->
|
|
<td><strong>Sifat Bangunan Sekitar</strong></td>
|
|
<td>
|
|
@if (isset($basicData['sifatBangunan']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['sifatBangunan'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Merupakan Daerah -->
|
|
<td><strong>Merupakan Daerah</strong></td>
|
|
<td>
|
|
@if (isset($basicData['merupakanDaerah']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['merupakanDaerah'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- Fasilitas Umum Dekat Lokasi -->
|
|
<td><strong>Fasilitas Umum Dekat Lokasi</strong></td>
|
|
<td>
|
|
@if (isset($basicData['fasilitasObjek']))
|
|
<table class="checkbox-list">
|
|
<tr>
|
|
@foreach ($basicData['fasilitasObjek'] as $index => $item)
|
|
@if ($index % 3 == 0 && $index > 0)
|
|
</tr>
|
|
<tr>
|
|
@endif
|
|
<td><input type="checkbox"> {{ $item->name }}</td>
|
|
@endforeach
|
|
</tr>
|
|
</table>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
H
|
|
</td>
|
|
<td class="border">
|
|
ASURANSI
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table class="checkbox-table">
|
|
<tr>
|
|
<td><input type="checkbox" checked> Tidak Ada</td>
|
|
<td><input type="checkbox"> Ada</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<table class="judul-table">
|
|
<tr>
|
|
<td class="border1">
|
|
I
|
|
</td>
|
|
<td class="border">
|
|
KESIMPULAN DAN SARAN PENILAI, INFORMASI HARGA,
|
|
TOTAL NILAI JAMINAN DAN CATATAN PERLU DIPERHATIKAN
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<table>
|
|
<tr>
|
|
<td width="25%" style="vertical-align: top;"><strong>Faktor Positif</strong></td>
|
|
<td>
|
|
@isset($forminspeksi['fakta']['fakta_positif'])
|
|
<table style="width: 100%; border-collapse: collapse;">
|
|
@foreach ($forminspeksi['fakta']['fakta_positif'] as $key => $item)
|
|
<tr>
|
|
<td>[{{ $key }}] {{ $item }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
@endisset
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="25%" style="vertical-align: top;"><strong>Faktor Negatif</strong></td>
|
|
<td>
|
|
@isset($forminspeksi['fakta']['fakta_negatif'])
|
|
<table style="width: 100%; border-collapse: collapse;">
|
|
@foreach ($forminspeksi['fakta']['fakta_negatif'] as $key => $item)
|
|
<tr>
|
|
<td>[{{ $key }}] {{ $item }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
@endisset
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="25%" style="vertical-align: top;"><strong>Lain - lain :</strong></td>
|
|
<td>
|
|
<p>- Berdasarkan hasil kunjungan di lapangan dapat disampaikan sebagai berikut :</p>
|
|
|
|
@isset($forminspeksi['fakta'])
|
|
@foreach ($forminspeksi['fakta'] as $key => $item)
|
|
@if (
|
|
!in_array($key, [
|
|
'fakta_positif',
|
|
'fakta_negatif',
|
|
'rute_menuju',
|
|
'batas_batas',
|
|
'batas_batas_input',
|
|
'kondisi_lingkungan',
|
|
'kondisi_lain_bangunan',
|
|
'informasi_dokument',
|
|
]))
|
|
<p>{{ $item }}</p>
|
|
@endif
|
|
@endforeach
|
|
@endisset
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="section">
|
|
|
|
<div class="judul">
|
|
<h6 class="border">
|
|
PETA LOKASI
|
|
</h6>
|
|
</div>
|
|
@php
|
|
$fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
|
|
@endphp
|
|
<div class="">
|
|
@if (isset($forminspeksi))
|
|
@forelse ($fotoTypes as $type)
|
|
<div class="border photo-item">
|
|
@php
|
|
$imagePath = $forminspeksi[$type];
|
|
@endphp
|
|
|
|
<img src="{{ storage_path('app/public/' . $imagePath) }}" alt="{{ $type }}"
|
|
class="photo-image">
|
|
<p class="mt-2 text-sm">{{ Str::title(str_replace('_', ' ', $type)) }}</p>
|
|
|
|
</div>
|
|
@empty
|
|
<p>Tidak ada tipe foto yang tersedia</p>
|
|
@endforelse
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<div class="judul">
|
|
<h6 class="border">
|
|
FOTO JAMINAN
|
|
</h6>
|
|
</div>
|
|
<div>
|
|
@if (isset($formFoto))
|
|
@foreach ($formFoto['rute_menuju_lokasi'] as $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name_rute'] . ' ' . $loop->index + 1 }}
|
|
</h2>
|
|
|
|
<img src="{{ storage_path('app/public/' . $item['foto_rute']) }}"
|
|
alt="{{ $item['foto_rute'] }}" class="photo-image">
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
@if (isset($formFoto['object_jaminan']))
|
|
@foreach ($formFoto['object_jaminan'] as $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name_objek'] }}
|
|
</h2>
|
|
|
|
<img src="{{ storage_path('app/public/' . $item['foto_objek']) }}"
|
|
alt="{{ $item['foto_objek'] }}" class="photo-image">
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_basement']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Basement
|
|
</h2>
|
|
|
|
<img src="{{ storage_path('app/public/' . $formFoto['foto_basement']) }}"
|
|
alt="{{ $formFoto['foto_basement'] }}" class="photo-image">
|
|
</div>
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_gerbang']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Gerbang
|
|
</h2>
|
|
|
|
<img src="{{ storage_path('app/public/' . $formFoto['foto_gerbang']) }}"
|
|
alt="{{ $formFoto['foto_gerbang'] }}" class="photo-image">
|
|
</div>
|
|
@endif
|
|
@if (isset($formFoto['pendamping']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Pendamping
|
|
</h2>
|
|
|
|
<img src="{{ storage_path('app/public/' . $formFoto['pendamping']) }}"
|
|
alt="{{ $formFoto['pendamping'] }}" class="photo-image">
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
const datas = @json($forminspeksi);
|
|
console.log(datas);
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|