update basic data surveyor
This commit is contained in:
@@ -63,9 +63,7 @@
|
||||
<td>
|
||||
@php
|
||||
$formFoto = json_decode($forminspeksi['foto_form'], true);
|
||||
|
||||
$formIns = json_decode($forminspeksi['data_form'], true);
|
||||
|
||||
@endphp
|
||||
|
||||
@if (isset($formFoto['object_jaminan']) &&
|
||||
@@ -92,24 +90,65 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>Alamat</p>
|
||||
<p>Desa</p>
|
||||
<p>Kecamatan</p>
|
||||
<p>Kabupaten</p>
|
||||
<p>Provinsi</p>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" class="input" value="{{ isset($formIns['nama_jalan']) ? $formIns['nama_jalan'] . ' ' . $formIns['desa_kelurahan'] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['kecamatan']) ? $formIns['kecamatan'] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['kota_kabupaten']) ? $formIns['kota_kabupaten'] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['provinsi']) ? $formIns['provinsi'] : ""}}" />
|
||||
<input type="text" class="input"
|
||||
value="{{ isset($formIns['nama_jalan']) ? $formIns['nama_jalan'] . ' ' . $formIns['desa_kelurahan'] : '' }}" />
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Desa</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kecamatan']) ? $formIns['kecamatan'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kecamatan</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kecamatan']) ? $formIns['kecamatan'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kabupaten</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kota_kabupaten']) ? $formIns['kota_kabupaten'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Provinsi</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['provinsi']) ? $formIns['provinsi'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Tahun Penilaian
|
||||
@@ -253,14 +292,16 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex items-center">
|
||||
<input type="text" class="input" placeholder="Objek Penilaian" value="{{ isset($formIns['kordinat_lat']) ? $formIns['kordinat_lat'] : ""}}" />
|
||||
<input type="text" class="input" placeholder="Objek Penilaian" value="{{ isset($formIns['kordinat_lng']) ? $formIns['kordinat_lng'] : ""}}" />
|
||||
<input type="text" class="input" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kordinat_lat']) ? $formIns['kordinat_lat'] : '' }}" />
|
||||
<input type="text" class="input" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kordinat_lng']) ? $formIns['kordinat_lng'] : '' }}" />
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="flex items-center">
|
||||
<input type="text" class="input" placeholder="Data pembanding" />
|
||||
<input type="text" class="input" placeholder="Data pembanding" />
|
||||
<input type="text" class="input" placeholder="Data pembanding" />
|
||||
<input type="text" class="input" placeholder="Data pembanding" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -282,29 +323,60 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>Jarak Ke jalan utama</p>
|
||||
<p>Lebar jalan depan aset (m)</p>
|
||||
<p>Posisi kavling</p>
|
||||
<p>Tingkat Keramaian (Occupancy)</p>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['jarak_jalan_utama']) ? $formIns['jarak_jalan_utama'] : ""}}" />
|
||||
|
||||
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['jarak_cbd_point']) ? $formIns['jarak_cbd_point'] : ""}}" />
|
||||
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['posisi_kavling']) ? $formIns['posisi_kavling'][0] : ""}}" />
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['tingkat_keramaian']) ? $formIns['tingkat_keramaian'][0] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['jarak_jalan_utama']) ? $formIns['jarak_jalan_utama'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p>Lebar jalan depan aset (m)</p>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['jarak_cbd_point']) ? $formIns['jarak_cbd_point'] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p>Posisi kavling</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['posisi_kavling']) ? $formIns['posisi_kavling'][0] : '' }}" />
|
||||
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<p>Tingkat Keramaian (Occupancy)</p>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['tingkat_keramaian']) ? $formIns['tingkat_keramaian'][0] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -313,29 +385,92 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>Kondisi Fisik Tanah</p>
|
||||
<p>Beda Ketinggian dengan Jalan</p>
|
||||
<p>Bentuk Tanah</p>
|
||||
<p>Lebar Depan</p>
|
||||
<p>Fasos Fasum</p>
|
||||
<p>Lain-lain</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input" placeholder="Objek Penilaian" value="{{ isset($formIns['kondisi_fisik_tanah']) ? $formIns['kondisi_fisik_tanah'][0] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['ketinggian_jalan']) ? $formIns['ketinggian_jalan'][0] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['bentuk_tanah']) ? $formIns['bentuk_tanah'][0] : ""}}" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" value="{{ isset($formIns['bentuk_tanah']) ? $formIns['bentuk_tanah'][0] : ""}}" />
|
||||
<input type="text" class="input" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['kondisi_fisik_tanah']) ? $formIns['kondisi_fisik_tanah'][0] : '' }}" />
|
||||
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>Beda Ketinggian dengan Jalan</p>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['ketinggian_jalan']) ? $formIns['ketinggian_jalan'][0] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p>Bentuk Tanah</p>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['bentuk_tanah']) ? $formIns['bentuk_tanah'][0] : '' }}" />
|
||||
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p>Lebar Depan</p>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian"
|
||||
value="{{ isset($formIns['bentuk_tanah']) ? $formIns['bentuk_tanah'][0] : '' }}" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<p>Fasos Fasum</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" />
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
<input type="text" class="input mt-2" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<p>Lain-lain</p>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<input type="text" class="input mt-2" placeholder="Objek Penilaian" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input type="text" class="input" placeholder="Data Pembanding 1" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Karakteristik Ekonomi
|
||||
@@ -416,13 +551,13 @@
|
||||
} else {
|
||||
// Other rows get text inputs
|
||||
const numInputs = row.querySelectorAll('input').length;
|
||||
for (let i = 0; i < numInputs; i++) {
|
||||
const textInput = document.createElement('input');
|
||||
textInput.type = 'text';
|
||||
textInput.className = 'input mt-2';
|
||||
textInput.placeholder = `Data Pembanding ${columnCount}`;
|
||||
newCell.appendChild(textInput);
|
||||
}
|
||||
// for (let i = 0; i < numInputs; i++) {
|
||||
const textInput = document.createElement('input');
|
||||
textInput.type = 'text';
|
||||
textInput.className = 'input mt-2';
|
||||
textInput.placeholder = `Data Pembanding ${columnCount}`;
|
||||
newCell.appendChild(textInput);
|
||||
// }
|
||||
}
|
||||
|
||||
row.appendChild(newCell);
|
||||
|
||||
Reference in New Issue
Block a user