penambahan inputan dekat lainnya,pihak bank dan buka galery foto dimobile
This commit is contained in:
@@ -1892,7 +1892,7 @@ class SurveyorController extends Controller
|
||||
'hub_cadeb_penghuni' => [
|
||||
$data['hub_cadeb_penghuni'] => ($data['hub_cadeb_penghuni'] == 'sesuai') ? $data['hub_cadeb_penghuni_sesuai'] : $data['hub_penghuni_tidak_sesuai']
|
||||
],
|
||||
|
||||
'pihak_bank' => $data['pihak_bank'] ?? null,
|
||||
'kordinat_lng' => $data['kordinat_lng'] ?? null,
|
||||
'kordinat_lat' => $data['kordinat_lat'] ?? null,
|
||||
]
|
||||
@@ -1932,6 +1932,7 @@ class SurveyorController extends Controller
|
||||
false,
|
||||
'lainnya'
|
||||
),
|
||||
|
||||
'tusuk_sate' => $data['tusuk_sate'] ?? null,
|
||||
'lockland' => $data['lockland'] ?? null,
|
||||
'kondisi_fisik_tanah' => $this->getFieldData(
|
||||
@@ -2038,6 +2039,7 @@ class SurveyorController extends Controller
|
||||
'dekat_tps' => $data['dekat_tps'] ?? null,
|
||||
'jarak_tps' => $data['jarak_tps'] ?? null,
|
||||
'nama_tps' => $data['nama_tps'] ?? null,
|
||||
'dekat_lainnya' => $data['dekat_lainnya'] ?? null,
|
||||
'merupakan_daerah' => $data['merupakan_daerah'] ?? null,
|
||||
'fasilitas_dekat_object' => $data['fasilitas_dekat_object'] ?? null,
|
||||
'fasilitas_dekat_object_input' => $data['fasilitas_dekat_object_input'] ?? null,
|
||||
|
||||
@@ -164,6 +164,7 @@ class FormSurveyorRequest extends FormRequest
|
||||
'dekat_tps' => 'nullable',
|
||||
'jarak_tps' => 'nullable',
|
||||
'nama_tpu' => 'nullable',
|
||||
'dekat_lainnya' => 'nullable',
|
||||
'merupakan_daerah' => 'nullable',
|
||||
'fasilitas_dekat_object' => 'nullable|array',
|
||||
'fasilitas_dekat_object_input' => 'nullable|array',
|
||||
@@ -528,6 +529,7 @@ class FormSurveyorRequest extends FormRequest
|
||||
'jenis_asset_tidak_sesuai' => 'nullable|string',
|
||||
'alamat_sesuai' => 'required',
|
||||
'alamat_tidak_sesuai' => 'nullable|string',
|
||||
'pihak_bank' => 'required|string',
|
||||
|
||||
'hub_cadeb' => 'required',
|
||||
'hub_cadeb_sesuai' => 'nullable|string',
|
||||
@@ -577,7 +579,7 @@ class FormSurveyorRequest extends FormRequest
|
||||
'foto_bhumi' => 'nullable',
|
||||
'foto_argis_region' => 'nullable',
|
||||
'foto_tempat' => 'nullable',
|
||||
'keterangan' => 'nullable',
|
||||
'keterangan' => 'nullable|array',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -822,43 +822,38 @@
|
||||
|
||||
<!-- Spesifikasi Bangunan -->
|
||||
@if (isset($basicData['spekKategoriBangunan']))
|
||||
@foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
|
||||
<tr>
|
||||
<td><strong>{{ $spesifikasi->name }}</strong></td>
|
||||
<td>
|
||||
<table class="checkbox-list">
|
||||
@if (isset($basicData['spekBangunan']))
|
||||
@foreach ($basicData['spekBangunan'] as $kategori)
|
||||
@if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
style="
|
||||
margin-right: 3px;
|
||||
|
||||
"
|
||||
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
||||
value="{{ $kategori->name }}"
|
||||
{{ isset(
|
||||
$forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name],
|
||||
) &&
|
||||
in_array(
|
||||
$kategori->name,
|
||||
$forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name],
|
||||
)
|
||||
? 'checked'
|
||||
: '' }}>
|
||||
{{ $kategori->name }}
|
||||
</label>
|
||||
</td>
|
||||
@foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
|
||||
<tr>
|
||||
<td><strong>{{ $spesifikasi->name }}</strong></td>
|
||||
<td>
|
||||
<table class="checkbox-list">
|
||||
@if (isset($basicData['spekBangunan']))
|
||||
@foreach ($basicData['spekBangunan'] as $kategori)
|
||||
@if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
|
||||
@if ($loop->iteration % 3 == 1 && $loop->iteration > 1)
|
||||
</tr><tr> <!-- Start a new row after 3 items -->
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
style="margin-right: 3px;"
|
||||
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
||||
value="{{ $kategori->name }}"
|
||||
{{ isset($forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name]) &&
|
||||
in_array($kategori->name, $forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name])
|
||||
? 'checked' : '' }}>
|
||||
{{ $kategori->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
|
||||
<!-- Sarana Pelengkap -->
|
||||
<tr>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5">
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Luas Bagunan</label>
|
||||
<label class="form-label max-w-56">Luas Bangunan</label>
|
||||
<div class="mt-2">
|
||||
|
||||
@if (isset($permohonan->debiture->documents))
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
style="{{ isset($formFoto['foto_gerbang']) ? '' : 'display: none;' }} width: 30rem;">
|
||||
<div class="input-group w-full flex gap-2">
|
||||
<input id="inputRute" type="file" name="foto_gerbang"
|
||||
class="file-input file-input-bordered w-full" accept="image/*" capture="camera"
|
||||
class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
|
||||
onchange="previewImage(this, 'foto_gerbang-preview')">
|
||||
<button type="button" id="btnCamera" class="btn btn-light"
|
||||
data-modal-toggle="#cameraModal">
|
||||
@@ -224,7 +224,7 @@
|
||||
<div class="input-group w-full flex gap-2">
|
||||
<input type="file" name="foto_objek[]"
|
||||
class="file-input file-input-bordered w-full"
|
||||
accept="image/*" capture="camera"
|
||||
accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
|
||||
onchange="previewImage(this, 'foto_object_jaminan_preview_{{ $loop->index }}')">
|
||||
<button type="button" id="btnCamera"
|
||||
class="btn btn-light"
|
||||
|
||||
@@ -80,6 +80,18 @@
|
||||
</button>
|
||||
<em id="error-debitur_perwakilan" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
|
||||
<label class="form-label max-w-56">Pihak Bank</label>
|
||||
<div id="perwakilan" class="flex items-baseline w-full gap-5">
|
||||
<div class="flex gap-4 items-center w-full">
|
||||
<input class="input" type="text" placeholder="Masukan Pihak Bank Selain Pj" type="text"
|
||||
name="pihak_bank" id="lat"
|
||||
value="{{ old('pihak_bank', isset($forminspeksi['asset']['pihak_bank']) ? $forminspeksi['asset']['pihak_bank'] : '') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -251,7 +263,7 @@
|
||||
<button class="accordion-toggle py-4 group "
|
||||
data-accordion-toggle="#accordion_detail_jaminan_{{ $loop->index }}">
|
||||
<span class="text-base text-gray-900 font-medium">
|
||||
Dokument Kepemilikan
|
||||
Dokumen Kepemilikan
|
||||
</span>
|
||||
<i class="ki-outline ki-plus text-gray-600 text-2sm accordion-active:hidden block">
|
||||
</i>
|
||||
@@ -408,8 +420,8 @@
|
||||
|
||||
<div class="mt-2">
|
||||
<div class="flex flex-wrap items-baseline w-full text-sm">
|
||||
<input type="hidden" name="hub_cadeb_penghuni_sesuai"
|
||||
value="ditempati sendiri" id="">
|
||||
<input type="hidden" name="hub_cadeb_penghuni_sesuai" value="ditempati sendiri"
|
||||
id="">
|
||||
</div>
|
||||
|
||||
<div class="flex-wrap items-stretch">
|
||||
@@ -440,7 +452,7 @@
|
||||
|
||||
|
||||
<input id="hub_penghuni_tidak_sesuai" class="input" name="hub_penghuni_tidak_sesuai"
|
||||
placeholder="Masukkan Hubungin penghuni jaminan"
|
||||
placeholder="Masukkan Hubungan penghuni jaminan"
|
||||
value="{{ old('hub_penghuni_tidak_sesuai', isset($selectedData) ? $selectedData : '') }}"
|
||||
style="{{ old('hub_penghuni_tidak_sesuai', $selectedData ?? false) ? '' : 'display: none;' }}">
|
||||
</div>
|
||||
@@ -509,11 +521,11 @@
|
||||
|
||||
function createAlamat(data) {
|
||||
const createElementAlamat = document.getElementById('alamat_form');
|
||||
createElementAlamat.style.display = 'block';
|
||||
|
||||
|
||||
if (data == 'sesuai') {
|
||||
createElementAlamat.innerHTML = `
|
||||
<div class="grid gap-2.5 w-full">
|
||||
<div class="grid gap-2.5 w-full" >
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label for="address" class="form-label max-w-56">Terletak di.</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
@@ -562,6 +574,7 @@
|
||||
}
|
||||
|
||||
if (data === 'tidak sesuai') {
|
||||
createElementAlamat.style.display = 'block';
|
||||
createElementAlamat.innerHTML = `
|
||||
<div class="grid gap-2.5 w-full">
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
|
||||
@@ -190,8 +190,7 @@
|
||||
<!-- Upload Photo Button -->
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
|
||||
<label for="" class="form-label max-w-56 text-sm font-medium text-gray-700">Upload Photo</label>
|
||||
|
||||
<label for="" class="form-label max-w-56 text-sm font-medium text-gray-700">Upload Peta</label>
|
||||
<div class="w-full grid gap-5">
|
||||
<div class="input-group w-full flex gap-2">
|
||||
<input id="foto_tempat" type="file" name="foto_tempat"
|
||||
@@ -210,13 +209,36 @@
|
||||
</div>
|
||||
|
||||
<!-- Notes Section -->
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
|
||||
|
||||
<label class="form-label lg:form-label max-w-56 ">Catatan yang Perlu Diperhatikan
|
||||
</label>
|
||||
<div class="input-group w-full flex gap-2">
|
||||
<textarea name="keterangan" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3">{{ old('keterangan', $forminspeksi['fakta']['keterangan'] ?? '') }}</textarea>
|
||||
</div>
|
||||
</label>
|
||||
<div id="keterangan-container" class="flex items-baseline flex-wrap gap-2.5 w-full">
|
||||
@if (!empty($forminspeksi['fakta']['keterangan']) && is_array($forminspeksi['fakta']['keterangan']))
|
||||
@foreach ($forminspeksi['fakta']['keterangan'] as $index => $item)
|
||||
<div class="keterangan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea name="keterangan[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3">{{ old("keterangan.$index", $item) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="keterangan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea name="keterangan[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3"></textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-keterangan" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" onclick="addClonableItem('keterangan-container', 'keterangan')"
|
||||
class="btn btn-primary btn-sm mt-5 ">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -339,6 +339,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Dekat Lainnya</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" class="input mt-2" name="dekat_lainnya"
|
||||
value="{{ old('dekat_lainnya', $forminspeksi['lingkungan']['dekat_lainnya'] ?? '') }}"
|
||||
placeholder="Masukkan Lainnya" />
|
||||
<em id="error-dekat_makam" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Merupakan daerah -->
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
|
||||
Reference in New Issue
Block a user