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' => [
|
'hub_cadeb_penghuni' => [
|
||||||
$data['hub_cadeb_penghuni'] => ($data['hub_cadeb_penghuni'] == 'sesuai') ? $data['hub_cadeb_penghuni_sesuai'] : $data['hub_penghuni_tidak_sesuai']
|
$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_lng' => $data['kordinat_lng'] ?? null,
|
||||||
'kordinat_lat' => $data['kordinat_lat'] ?? null,
|
'kordinat_lat' => $data['kordinat_lat'] ?? null,
|
||||||
]
|
]
|
||||||
@@ -1932,6 +1932,7 @@ class SurveyorController extends Controller
|
|||||||
false,
|
false,
|
||||||
'lainnya'
|
'lainnya'
|
||||||
),
|
),
|
||||||
|
|
||||||
'tusuk_sate' => $data['tusuk_sate'] ?? null,
|
'tusuk_sate' => $data['tusuk_sate'] ?? null,
|
||||||
'lockland' => $data['lockland'] ?? null,
|
'lockland' => $data['lockland'] ?? null,
|
||||||
'kondisi_fisik_tanah' => $this->getFieldData(
|
'kondisi_fisik_tanah' => $this->getFieldData(
|
||||||
@@ -2038,6 +2039,7 @@ class SurveyorController extends Controller
|
|||||||
'dekat_tps' => $data['dekat_tps'] ?? null,
|
'dekat_tps' => $data['dekat_tps'] ?? null,
|
||||||
'jarak_tps' => $data['jarak_tps'] ?? null,
|
'jarak_tps' => $data['jarak_tps'] ?? null,
|
||||||
'nama_tps' => $data['nama_tps'] ?? null,
|
'nama_tps' => $data['nama_tps'] ?? null,
|
||||||
|
'dekat_lainnya' => $data['dekat_lainnya'] ?? null,
|
||||||
'merupakan_daerah' => $data['merupakan_daerah'] ?? null,
|
'merupakan_daerah' => $data['merupakan_daerah'] ?? null,
|
||||||
'fasilitas_dekat_object' => $data['fasilitas_dekat_object'] ?? null,
|
'fasilitas_dekat_object' => $data['fasilitas_dekat_object'] ?? null,
|
||||||
'fasilitas_dekat_object_input' => $data['fasilitas_dekat_object_input'] ?? null,
|
'fasilitas_dekat_object_input' => $data['fasilitas_dekat_object_input'] ?? null,
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'dekat_tps' => 'nullable',
|
'dekat_tps' => 'nullable',
|
||||||
'jarak_tps' => 'nullable',
|
'jarak_tps' => 'nullable',
|
||||||
'nama_tpu' => 'nullable',
|
'nama_tpu' => 'nullable',
|
||||||
|
'dekat_lainnya' => 'nullable',
|
||||||
'merupakan_daerah' => 'nullable',
|
'merupakan_daerah' => 'nullable',
|
||||||
'fasilitas_dekat_object' => 'nullable|array',
|
'fasilitas_dekat_object' => 'nullable|array',
|
||||||
'fasilitas_dekat_object_input' => 'nullable|array',
|
'fasilitas_dekat_object_input' => 'nullable|array',
|
||||||
@@ -528,6 +529,7 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'jenis_asset_tidak_sesuai' => 'nullable|string',
|
'jenis_asset_tidak_sesuai' => 'nullable|string',
|
||||||
'alamat_sesuai' => 'required',
|
'alamat_sesuai' => 'required',
|
||||||
'alamat_tidak_sesuai' => 'nullable|string',
|
'alamat_tidak_sesuai' => 'nullable|string',
|
||||||
|
'pihak_bank' => 'required|string',
|
||||||
|
|
||||||
'hub_cadeb' => 'required',
|
'hub_cadeb' => 'required',
|
||||||
'hub_cadeb_sesuai' => 'nullable|string',
|
'hub_cadeb_sesuai' => 'nullable|string',
|
||||||
@@ -577,7 +579,7 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'foto_bhumi' => 'nullable',
|
'foto_bhumi' => 'nullable',
|
||||||
'foto_argis_region' => 'nullable',
|
'foto_argis_region' => 'nullable',
|
||||||
'foto_tempat' => 'nullable',
|
'foto_tempat' => 'nullable',
|
||||||
'keterangan' => 'nullable',
|
'keterangan' => 'nullable|array',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -830,24 +830,18 @@
|
|||||||
@if (isset($basicData['spekBangunan']))
|
@if (isset($basicData['spekBangunan']))
|
||||||
@foreach ($basicData['spekBangunan'] as $kategori)
|
@foreach ($basicData['spekBangunan'] as $kategori)
|
||||||
@if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
|
@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
|
||||||
<td class="checkbox-item">
|
<td class="checkbox-item">
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
style="
|
style="margin-right: 3px;"
|
||||||
margin-right: 3px;
|
|
||||||
|
|
||||||
"
|
|
||||||
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
||||||
value="{{ $kategori->name }}"
|
value="{{ $kategori->name }}"
|
||||||
{{ isset(
|
{{ isset($forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name]) &&
|
||||||
$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' : '' }}>
|
||||||
in_array(
|
|
||||||
$kategori->name,
|
|
||||||
$forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name],
|
|
||||||
)
|
|
||||||
? 'checked'
|
|
||||||
: '' }}>
|
|
||||||
{{ $kategori->name }}
|
{{ $kategori->name }}
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
@@ -860,6 +854,7 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
<!-- Sarana Pelengkap -->
|
<!-- Sarana Pelengkap -->
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Sarana Pelengkap</strong></td>
|
<td><strong>Sarana Pelengkap</strong></td>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="grid gap-5">
|
<div class="grid gap-5">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.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">
|
<div class="mt-2">
|
||||||
|
|
||||||
@if (isset($permohonan->debiture->documents))
|
@if (isset($permohonan->debiture->documents))
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
style="{{ isset($formFoto['foto_gerbang']) ? '' : 'display: none;' }} width: 30rem;">
|
style="{{ isset($formFoto['foto_gerbang']) ? '' : 'display: none;' }} width: 30rem;">
|
||||||
<div class="input-group w-full flex gap-2">
|
<div class="input-group w-full flex gap-2">
|
||||||
<input id="inputRute" type="file" name="foto_gerbang"
|
<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')">
|
onchange="previewImage(this, 'foto_gerbang-preview')">
|
||||||
<button type="button" id="btnCamera" class="btn btn-light"
|
<button type="button" id="btnCamera" class="btn btn-light"
|
||||||
data-modal-toggle="#cameraModal">
|
data-modal-toggle="#cameraModal">
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
<div class="input-group w-full flex gap-2">
|
<div class="input-group w-full flex gap-2">
|
||||||
<input type="file" name="foto_objek[]"
|
<input type="file" name="foto_objek[]"
|
||||||
class="file-input file-input-bordered w-full"
|
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 }}')">
|
onchange="previewImage(this, 'foto_object_jaminan_preview_{{ $loop->index }}')">
|
||||||
<button type="button" id="btnCamera"
|
<button type="button" id="btnCamera"
|
||||||
class="btn btn-light"
|
class="btn btn-light"
|
||||||
|
|||||||
@@ -80,6 +80,18 @@
|
|||||||
</button>
|
</button>
|
||||||
<em id="error-debitur_perwakilan" class="alert text-danger text-sm"></em>
|
<em id="error-debitur_perwakilan" class="alert text-danger text-sm"></em>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -251,7 +263,7 @@
|
|||||||
<button class="accordion-toggle py-4 group "
|
<button class="accordion-toggle py-4 group "
|
||||||
data-accordion-toggle="#accordion_detail_jaminan_{{ $loop->index }}">
|
data-accordion-toggle="#accordion_detail_jaminan_{{ $loop->index }}">
|
||||||
<span class="text-base text-gray-900 font-medium">
|
<span class="text-base text-gray-900 font-medium">
|
||||||
Dokument Kepemilikan
|
Dokumen Kepemilikan
|
||||||
</span>
|
</span>
|
||||||
<i class="ki-outline ki-plus text-gray-600 text-2sm accordion-active:hidden block">
|
<i class="ki-outline ki-plus text-gray-600 text-2sm accordion-active:hidden block">
|
||||||
</i>
|
</i>
|
||||||
@@ -408,8 +420,8 @@
|
|||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<div class="flex flex-wrap items-baseline w-full text-sm">
|
<div class="flex flex-wrap items-baseline w-full text-sm">
|
||||||
<input type="hidden" name="hub_cadeb_penghuni_sesuai"
|
<input type="hidden" name="hub_cadeb_penghuni_sesuai" value="ditempati sendiri"
|
||||||
value="ditempati sendiri" id="">
|
id="">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-wrap items-stretch">
|
<div class="flex-wrap items-stretch">
|
||||||
@@ -440,7 +452,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<input id="hub_penghuni_tidak_sesuai" class="input" name="hub_penghuni_tidak_sesuai"
|
<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 : '') }}"
|
value="{{ old('hub_penghuni_tidak_sesuai', isset($selectedData) ? $selectedData : '') }}"
|
||||||
style="{{ old('hub_penghuni_tidak_sesuai', $selectedData ?? false) ? '' : 'display: none;' }}">
|
style="{{ old('hub_penghuni_tidak_sesuai', $selectedData ?? false) ? '' : 'display: none;' }}">
|
||||||
</div>
|
</div>
|
||||||
@@ -509,7 +521,7 @@
|
|||||||
|
|
||||||
function createAlamat(data) {
|
function createAlamat(data) {
|
||||||
const createElementAlamat = document.getElementById('alamat_form');
|
const createElementAlamat = document.getElementById('alamat_form');
|
||||||
createElementAlamat.style.display = 'block';
|
|
||||||
|
|
||||||
if (data == 'sesuai') {
|
if (data == 'sesuai') {
|
||||||
createElementAlamat.innerHTML = `
|
createElementAlamat.innerHTML = `
|
||||||
@@ -562,6 +574,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data === 'tidak sesuai') {
|
if (data === 'tidak sesuai') {
|
||||||
|
createElementAlamat.style.display = 'block';
|
||||||
createElementAlamat.innerHTML = `
|
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">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
|
|||||||
@@ -190,8 +190,7 @@
|
|||||||
<!-- Upload Photo Button -->
|
<!-- Upload Photo Button -->
|
||||||
|
|
||||||
<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 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="w-full grid gap-5">
|
||||||
<div class="input-group w-full flex gap-2">
|
<div class="input-group w-full flex gap-2">
|
||||||
<input id="foto_tempat" type="file" name="foto_tempat"
|
<input id="foto_tempat" type="file" name="foto_tempat"
|
||||||
@@ -210,12 +209,35 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notes Section -->
|
<!-- 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 class="form-label lg:form-label max-w-56 ">Catatan yang Perlu Diperhatikan
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group w-full flex gap-2">
|
<div id="keterangan-container" class="flex items-baseline flex-wrap gap-2.5 w-full">
|
||||||
<textarea name="keterangan" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3">{{ old('keterangan', $forminspeksi['fakta']['keterangan'] ?? '') }}</textarea>
|
@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>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -339,6 +339,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</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 -->
|
<!-- Merupakan daerah -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
|||||||
Reference in New Issue
Block a user