From a809828b80b694ad09119ffd3e04a249374834ec Mon Sep 17 00:00:00 2001 From: majid Date: Mon, 11 Nov 2024 17:24:22 +0700 Subject: [PATCH] update form inspeksi (tanah, bangunan, dan unit apartement) --- app/Http/Controllers/SurveyorController.php | 17 +- app/Http/Requests/FormSurveyorRequest.php | 203 ++-- .../components/apartemen-kantor.blade.php | 143 +-- .../surveyor/components/bangunan.blade.php | 35 +- .../views/surveyor/components/fakta.blade.php | 334 ++++++ .../surveyor/components/header.blade.php | 322 ++++++ .../surveyor/components/inspeksi.blade.php | 999 ++++++------------ .../surveyor/components/kendaraan.blade.php | 16 +- .../surveyor/components/lingkungan.blade.php | 75 +- .../views/surveyor/components/tanah.blade.php | 359 +------ 10 files changed, 1315 insertions(+), 1188 deletions(-) create mode 100644 resources/views/surveyor/components/fakta.blade.php create mode 100644 resources/views/surveyor/components/header.blade.php diff --git a/app/Http/Controllers/SurveyorController.php b/app/Http/Controllers/SurveyorController.php index ec27c82..9368e1d 100644 --- a/app/Http/Controllers/SurveyorController.php +++ b/app/Http/Controllers/SurveyorController.php @@ -150,15 +150,18 @@ class SurveyorController extends Controller /** * Store form inspeksi. */ - public function store(Request $request) + public function store(FormSurveyorRequest $request) { - try { - - return response()->json(['status' => 200, 'message' => 'Data berhasil disimpan']); - } catch (Exception $e) { - - return response()->json(['status' => 500, 'message' => 'Data gagal disimpan: ' . $e->getMessage()], 500); + $data = $request->validated(); + if ($data) { + try { + return response()->json(['message' => 'Data berhasil disimpan', + 'data' => $data], 200); + } catch (Exception $e) { + + return response()->json(['status' => 500, 'message' => 'Data gagal disimpan: ' . $e->getMessage()], 500); + } } diff --git a/app/Http/Requests/FormSurveyorRequest.php b/app/Http/Requests/FormSurveyorRequest.php index 475960b..6a25934 100644 --- a/app/Http/Requests/FormSurveyorRequest.php +++ b/app/Http/Requests/FormSurveyorRequest.php @@ -19,10 +19,11 @@ class FormSurveyorRequest extends FormRequest */ public function rules(): array { - $commonRules = $this->getCommonRules(); + $commonRules = $this->getBangunanRules(); $actionSpecificRules = $this->getActionSpecificRules(); return array_merge($commonRules, $actionSpecificRules); + return $actionSpecificRules; } /** @@ -31,44 +32,26 @@ class FormSurveyorRequest extends FormRequest private function getCommonRules(): array { return [ - 'jenis_jaminan_id' => 'required', - 'type' => 'required', - 'permohonan_id' => 'required', - 'luas' => 'required', - 'jarak_jalan_utama' => 'required', - 'alamat' => 'required', - 'jarak_cbd_point' => 'required', - 'lebar_perkerasan_jalan' => 'required', - 'perkerasan_jalan' => 'required', - 'lalu_lintas' => 'required', - 'gol_mas_sekitar' => 'required', - 'tingkat_keramaian' => 'required', - 'terletak_diarea' => 'required', - 'disekitar_lokasi' => 'required', - 'dekat_makam' => 'required', - 'dekat_tps' => 'required', - 'merupakan_daerah' => 'required', - 'fasilitas_dekat_object' => 'required', - 'fakta_positif' => 'required', - 'fakta_negatif' => 'required', - 'rute_menuju' => 'required', - 'batas_batas' => 'required', - 'kondisi_linkungan' => 'required', - 'kondisi_lain_bangunan' => 'required', - 'informasi_dokument' => 'required', - 'peruntukan' => 'required', - 'kdb' => 'required', - 'kdh' => 'required', - 'gsb' => 'required', - 'max_lantai' => 'required', - 'klb' => 'required', - 'gss' => 'required', - 'pelebaran_jalan' => 'required', - 'nama_petugas' => 'required', + 'fakta_positif' => 'nullable|array', + 'fakta_negatif' => 'nullable|array', + 'rute_menuju' => 'nullable', + 'batas_batas' => 'nullable|array', + 'kondisi_linkungan' => 'nullable|array', + 'kondisi_lain_bangunan' => 'nullable|array', + 'informasi_dokument' => 'nullable|array', + 'peruntukan' => 'nullable', + 'kdb' => 'nullable', + 'kdh' => 'nullable', + 'gsb' => 'nullable', + 'max_lantai' => 'nullable', + 'klb' => 'nullable', + 'gss' => 'nullable', + 'pelebaran_jalan' => 'nullable', + 'nama_petugas' => 'nullable', 'lat' => 'required|numeric', 'lng' => 'required|numeric', - 'foto_tempat' => 'required', - 'keterangan' => 'required', + 'foto_tempat' => 'nullable', + 'keterangan' => 'nullable', ]; } @@ -81,7 +64,7 @@ class FormSurveyorRequest extends FormRequest switch ($action) { case 'tanah': - return $this->getTanahBangunanRules(); + return $this->getTanahRules(); case 'unit': return $this->getUnitRules(); case 'kapal': @@ -93,7 +76,7 @@ class FormSurveyorRequest extends FormRequest case 'bangunan': return $this->getTanahBangunanRules(); case 'tanah_bangunan': - return $this->getTanahBangunanRules(); + return $this->getTanahRules(); case 'alat-berat': return $this->getUnitRules(); default: @@ -102,50 +85,104 @@ class FormSurveyorRequest extends FormRequest } /** - * Get rules specific to tanah_bangunan action. + * Get rules specific to tanah action. */ - private function getTanahBangunanRules(): array + + public function getTanahRules(): array { - return [ - 'action' => 'required', - 'bentuk_tanah' => 'required', - 'kontur_tanah' => 'required', - 'posisi_kavling' => 'required', - 'ketinggian_jalan' => 'required', - 'kondisi_fisik_tanah' => 'required', + + $assetDescriptionRules = $this->getAssetDescriptionRules(); + return array_merge($assetDescriptionRules, [ + 'luas_tanah' => 'required', + 'luas_tanah_tidak_sesuai' => 'nullable', + 'hadap_mata_angin' => 'required', + 'hadap_mata_angin_tidak_sesuai' => 'nullable', + 'bentuk_tanah' => 'nullable|array', + 'bentuk_tanah_lainnya' => 'nullable', + 'kontur_tanah' => 'required|array', + 'ketinggian_jalan' => 'required|array', 'kontur_jalan' => 'required', - 'kondisi_bangunan' => 'required', - 'sifat_bangunan' => 'required', - 'sarana_pelengkap' => 'required', - 'luas_tanah_bagunan' => 'required', + 'posisi_kavling' => 'required|array', + 'posisi_kavling_lainnya' => 'nullable', 'tusuk_sate' => 'required', - 'name.*' => 'required|string', - 'kategori.*' => 'required|string', 'lockland' => 'required', - 'jenis_bangunan' => 'required', - 'kondisi_bangunan' => 'required', - ]; + 'kondisi_fisik_tanah' => 'required|array', + ]); } /** + * Get rules specific to Bangunan action. + */ + + private function getBangunanRules(): array + { + return [ + 'action' => 'required', + 'luas_tanah_bagunan' => 'required', + 'jenis_bangunan' => 'required', + 'kondisi_bangunan' => 'required', + 'sifat_bangunan' => 'required', + 'sifat_bangunan_input' => 'nullable|array', + 'nama_bagunan' => 'required|array', + 'spek_kategori_bangunan' => 'required|array', + 'spek_kategori_bangunan.*' => 'required|string', + 'sarana_pelengkap' => 'required', + 'sarana_pelengkap_input' => 'nullable|array', + ]; + } + + /** * Get rules specific to unit action. */ private function getUnitRules(): array + { + return array_merge($this->getAssetDescriptionRules(), [ + 'action' => 'required', + 'luas_unit' => 'required', + 'luas_unit_tidak_sesuai' => 'nullable', + 'jenis_unit' => 'required|array', + 'kondisi_unit' => 'required|array', + 'posisi_unit' => 'required|array', + 'lantai' => 'required|array', + 'view' => 'required|array', + 'bentuk_unit' => 'required|array', + ]); + } + + /** + * Get rules specific to Linkungan action. + */ + + public function getLinkunganRules(): array { return [ 'action' => 'required', - 'jenis_unit' => 'required', - 'kondisi_unit' => 'required', - 'posisi_unit' => 'required', - 'lantai' => 'required', - 'view' => 'required', - 'bentuk_unit' => 'required', + 'jarak_jalan_utama' => 'nullable', + 'jalan_linkungan' => 'nullable', + 'jarak_cbd_point' => 'nullable', + 'nama_cbd_point' => 'nullable', + 'lebar_perkerasan_jalan' => 'nullable', + 'perkerasan_jalan' => 'nullable', + 'lalu_lintas' => 'nullable', + 'gol_mas_sekitar' => 'nullable', + 'tingkat_keramaian' => 'nullable', + 'terletak_diarea' => 'nullable', + 'disekitar_lokasi' => 'nullable', + 'kondisi_bangunan_sekitar' => 'nullable', + 'sifat_bangunan_sekitar' => 'nullable', + 'dekat_makam' => 'nullable', + 'jarak_makam' => 'nullable', + 'nama_tpu' => 'nullable', + 'dekat_tps' => 'nullable', + 'jarak_tps' => 'nullable', + 'nama_tpu' => 'nullable', + 'merupakan_daerah' => 'nullable', + 'fasilitas_dekat_object' => 'nullable', ]; } - - - private function getKapalRules():array{ + private function getKapalRules(): array + { return [ 'action' => 'required', 'kondisi_kapal' => 'required', @@ -153,7 +190,8 @@ class FormSurveyorRequest extends FormRequest ]; } - public function getKendaraanRules():array{ + public function getKendaraanRules(): array + { return [ 'action' => 'required', 'kondisi_kendaraan' => 'required', @@ -162,7 +200,8 @@ class FormSurveyorRequest extends FormRequest } - public function getMesinRules():array{ + public function getMesinRules(): array + { return [ 'action' => 'required', 'kondisi_mesin' => 'required', @@ -171,11 +210,37 @@ class FormSurveyorRequest extends FormRequest } - public function getAlatBeratRules():array{ + public function getAlatBeratRules(): array + { return [ 'action' => 'required', 'kondisi_alat_berat' => 'required', 'kondisi_alat_berat_lain' => 'required', ]; } + + + private function getAssetDescriptionRules(): array +{ + return [ + 'debitur_perwakilan' => 'required|array', + 'jenis_asset' => 'required', + 'jenis_asset_tidak_sesuai' => 'nullable', + 'alamat_sesuai' => 'required', + 'alamat_tidak_sesuai' => 'nullable', + 'nama_jalan' => 'nullable', + 'desa_kelurahan' => 'nullable', + 'kecamatan' => 'nullable', + 'kota_kabupaten' => 'nullable', + 'provinsi' => 'nullable', + 'kordinat_lng' => 'nullable', + 'kordinat_lat' => 'nullable', + ]; +} + + + + + + } diff --git a/resources/views/surveyor/components/apartemen-kantor.blade.php b/resources/views/surveyor/components/apartemen-kantor.blade.php index 28cb7e8..40d53a9 100644 --- a/resources/views/surveyor/components/apartemen-kantor.blade.php +++ b/resources/views/surveyor/components/apartemen-kantor.blade.php @@ -1,4 +1,11 @@ -
+ + +@include('lpj::surveyor.components.header') + +
+
+ +

Analisa Unit

@@ -31,44 +38,40 @@
- + {{ $item->name }} + + @endforeach @endif - - - @error('jenis_unit') - {{ $message }} - @enderror +
+ +
- + {{ $item->name }} + + @endforeach @endif - - - @error('kondisi_unit') - {{ $message }} - @enderror +
+ +
@@ -77,20 +80,20 @@
- + {{ $item->name }} + @endforeach @endif - - - @error('posisi_unit') - {{ $message }} - @enderror +
+ +
@@ -100,20 +103,21 @@
- + {{ $item->name }} + @endforeach @endif - - - @error('lantai') - {{ $message }} - @enderror +
+ +
@@ -122,41 +126,42 @@
- + {{ $item->name }} + @endforeach @endif - - - @error('view') - {{ $message }} - @enderror +
+ +
- + {{ $item->name }} + @endforeach @endif - - - @error('bentuk_unit') - {{ $message }} - @enderror +
+ +
+ diff --git a/resources/views/surveyor/components/bangunan.blade.php b/resources/views/surveyor/components/bangunan.blade.php index 7c66d7d..cbdf41e 100644 --- a/resources/views/surveyor/components/bangunan.blade.php +++ b/resources/views/surveyor/components/bangunan.blade.php @@ -24,7 +24,7 @@ @error('luas_tanah_bagunan') - {{ $message }} + @enderror @@ -57,7 +57,7 @@ @endif @error('jenis_bangunan') - {{ $message }} + @enderror @@ -88,19 +88,15 @@ @endif @endforeach @endif - + - - - @error('kondisi_bangunan') - {{ $message }} - @enderror +
- +
@@ -113,16 +109,14 @@ value="{{ $item->name }}" /> {{ $item->name }} -
@endforeach @endif
+ - @error('sifat_bangunan') - {{ $message }} - @enderror @@ -137,6 +131,7 @@ @if (@isset($spekKategoriBagunan)) @foreach ($spekKategoriBagunan as $item)
+
@@ -144,7 +139,7 @@ @foreach ($spekBangunan as $spek) @if ($spek->spek_kategori_bangunan_id == $item->id) @@ -152,9 +147,7 @@ @endforeach
- @error('name') - {{ $message }} - @enderror +
@endforeach @@ -191,16 +184,16 @@ value="{{ $item->name }}" /> {{ $item->name }} - @endforeach @endif - @error('sarana_pelengkap') - {{ $message }} - @enderror + + + diff --git a/resources/views/surveyor/components/fakta.blade.php b/resources/views/surveyor/components/fakta.blade.php new file mode 100644 index 0000000..900bca6 --- /dev/null +++ b/resources/views/surveyor/components/fakta.blade.php @@ -0,0 +1,334 @@ + {{-- analisa fakta --}} +
+
+
+

Analisis Fakta

+
+
+
+ +
+ + + +
+ +
+ +
+ +
+ + +
+ +
+ + @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') +
+ +
+ + +
+
+ +
+ +
+
+ @php + $inputBatas = []; + $inputBatas = [ + ['label' => 'Utara', 'index' => 0], + ['label' => 'Timur', 'index' => 1], + ['label' => 'Selatan', 'index' => 2], + ['label' => 'Barat', 'index' => 3], + ]; + @endphp + @if ($inputBatas > 0) + @foreach ($inputBatas as $item) +
+ + +
+ @endforeach + @endif +
+ + @error('batas_batas') + {{ $message }} + @enderror +
+
+ + +
+ +
+ + + + @error('kondisi_linkungan') + {{ $message }} + @enderror +
+ + +
+ + +
+ +
+ + @error('kondisi_lain_bangunan') + {{ $message }} + @enderror +
+ +
+ +
+ +
+ + @error('informasi_dokument') + {{ $message }} + @enderror +
+ +
+ @endif +
+
+
+ + + + @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') +
+
+ + +
+

Informasi Dinas Tata Ruang

+
+ + +
+ +
+ +
+ + @error('peruntukan') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('kdb') + {{ $message }} + @enderror +
+
+ + +
+ +
+ + @error('kdh') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('gsb') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('maxLantai') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('klb') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('gss') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('pelebaran_jalan') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('nama_petugas') + {{ $message }} + @enderror +
+
+ + +
+ + +
+
+ +
+ + + + Bhumi + +
+
+ + @if (isset($link_url_region->regions->url)) +
+ + +
+ @endif +
+ + +
+ + +
+ +
+
+ + + +
+
+ +
+ @if (old('foto_tempat', isset($analisa->analisaFakta) ? $analisa->analisaFakta->foto_tempat : '')) + Gambar Tempat + @endif +
+ + + + + @error('foto_tempat') + {{ $message }} + @enderror + + + +
+ +
+ + +
+
+

Catatan yang Perlu Diperhatikan +

+ +
+
+
+
+ @endif diff --git a/resources/views/surveyor/components/header.blade.php b/resources/views/surveyor/components/header.blade.php new file mode 100644 index 0000000..83ad489 --- /dev/null +++ b/resources/views/surveyor/components/header.blade.php @@ -0,0 +1,322 @@ +
+
+
+

Order Penilaian

+
+
+
+ +
+ @if (isset($permohonan->tujuanPenilaian)) +

{{ $permohonan->tujuanPenilaian->name }}

+ @endif +
+
+
+ +
+

{{ $permohonan->created_at->format('d/m/Y') }}

+
+
+ +
+ +
+ @if (isset($permohonan->branch)) +

{{ $permohonan->branch->name }}

+ @endif +
+
+ +
+ +
+ @if (isset($permohonan->user)) +

{{ $permohonan->user->name }}

+ @endif +
+
+
+ +
+ +
+
+ + +
+
+ + + +
+
+
+ + +
+ +
+
+

Nama Cadeb/Debitur

+
+ +
+
+ +
+ @if (isset($permohonan->debiture)) +

{{ $permohonan->debiture->name }}

+ @endif +
+
+
+
+
+ + +
+
+
+

Deskripsi Aset jaminan

+
+ +
+
+ +
+
+ @if (isset($permohonan->debiture->documents)) + @foreach ($permohonan->debiture->documents as $item) +

{{ $item->jenisJaminan->name }}

+ @endforeach + @endif +
+
+
+ + + + +
+ +
+
+
+ +
+ +
+ + @foreach ($permohonan->debiture->documents as $dokumen) + + {{ $dokumen->pemilik->address ?? '' }}, +
{{ $dokumen->pemilik->village->name ?? '' }}, + {{ $dokumen->pemilik->district->name ?? '' }}, {{ $dokumen->pemilik->city->name ?? '' }}, + {{ $dokumen->pemilik->province->name ?? '' }} - + {{ $dokumen->pemilik->village->postal_code ?? '' }} +
+ @endforeach + +
+
+ + + + +
+ + +
+ +
+ @php + + $inputDataLoaksi = []; + $inputDataLoaksi = [ + [ + 'label' => 'Jl.', + 'index' => 0, + 'name' => 'nama_jalan', + 'value' => old( + 'lokasi_jalan', + isset($analisa->analisaLingkungan) + ? $analisa->analisaLingkungan->lokasi_jalan + : '', + ), + ], + + [ + 'label' => 'Desa/Kelurahan', + 'index' => 3, + 'name' => 'desa_kelurahan', + 'value' => old( + 'lokasi_desa_kelurahan', + isset($analisa->analisaLingkungan) + ? $analisa->analisaLingkungan->lokasi_desa_kelurahan + : '', + ), + ], + [ + 'label' => 'Kecamatan', + 'index' => 4, + 'name' => 'kecamatan', + 'value' => old( + 'lokasi_kecamatan', + isset($analisa->analisaLingkungan) + ? $analisa->analisaLingkungan->lokasi_kecamatan + : '', + ), + ], + [ + 'label' => 'Kota/Kabupaten', + 'index' => 5, + 'name' => 'kota_kabupaten', + 'value' => old( + 'lokasi_kota_kotamadya', + isset($analisa->analisaLingkungan) + ? $analisa->analisaLingkungan->lokasi_kota_kotamadya + : '', + ), + ], + [ + 'label' => 'Provinsi', + 'index' => 6, + 'name' => 'provinsi', + 'value' => old( + 'lokasi_provinsi', + isset($analisa->analisaLingkungan) + ? $analisa->analisaLingkungan->lokasi_provinsi + : '', + ), + ], + ]; + + @endphp + + @if (count($inputDataLoaksi) > 0) + @foreach ($inputDataLoaksi as $item) + +
+ +
+ + + @error($item['name']) + {{ $message }} + @enderror +
+
+ @endforeach + @endif +
+ + + +
+
+
+
+
+ + +
+
+
+

Titik Koordinat Google Maps

+
+
+ +
+
+ + +
+ +
+
+
+
+ +
+
+ +
+
+

Status Kepemilikan

+
+
+ + +
+
+

Izin Bangunan

+
+
+ + +
+
+

SPPT PBB

+
+
+ +
+
+

Dokument Lainnya

+
+
+ + +
+
+

Hubungan cadeb/debitur dengan Pemilik Jaminan

+
+
+ +
+
+

Hubungan Cadeb/Debitur dengan Penghuni Jaminan

+
+
+ +
+
diff --git a/resources/views/surveyor/components/inspeksi.blade.php b/resources/views/surveyor/components/inspeksi.blade.php index 0389306..e00e617 100644 --- a/resources/views/surveyor/components/inspeksi.blade.php +++ b/resources/views/surveyor/components/inspeksi.blade.php @@ -5,690 +5,363 @@ @endsection --}} @section('content') -
-
+
-
-

- Data Jaminan -

-
- - Back - +
+
+

+ Data Jaminan +

+ +
+ @php + $jenisJaminanData = null; + + @endphp + +
+ @foreach ($permohonan->debiture->documents as $dokumen) + @php + $jenisJaminanData = $dokumen->jenisJaminan->name ?? ''; + @endphp + +
+ + +
+ @endforeach
+
+ + + + {{--
+
--}} +
+ @if (isset($analisa->id)) + + @method('PUT') + @endif + @csrf + + + + @php - $jenisJaminanData = null; + $analisaType = 'unknown'; + $data = [ + 'tanah' => 'Tanah', + 'unit_rumah' => 'Rumah Tinggal / Ruko (Unit) / Apartemen (Unit) / Gudang', + 'tanah_bangunan' => 'Kawasan Industrial / Komersil / Residensial - Perumahan', + 'unit_gedung' => 'Gedung Apartement / Kantor / Condotel (Strata Title)', + 'tanah_bangunan' => 'Mall', + ]; + + if (isset($analisa->id)) { + $analisaType = $analisa->type; + } else { + foreach ($data as $key => $value) { + if ( + isset($jenisJaminanData) && + trim(strtolower($jenisJaminanData)) === trim(strtolower($value)) + ) { + $analisaType = $key; + break; + } + } + } + if ($analisaType === 'tanah') { + $analisaType = 'kendaraan'; + } + + if ($analisaType === 'unit_rumah' || $analisaType === 'unit_gedung') { + $analisaType = 'unit'; + } @endphp -
- @foreach ($permohonan->debiture->documents as $dokumen) - @php - $jenisJaminanData = $dokumen->jenisJaminan->name ?? ''; - @endphp + + -
- - -
- @endforeach + @if ($analisaType == 'tanah_bangunan') + @include('lpj::surveyor.components.tanah') + @elseif($analisaType == 'unit') + @include('lpj::surveyor.components.apartemen-kantor') + @elseif($analisaType == 'alat-berat') + @include('lpj::surveyor.components.alat-berat') + @elseif($analisaType == 'mesin') + @include('lpj::surveyor.components.mesin') + @elseif($analisaType == 'kapal') + @include('lpj::surveyor.components.kapal') + @elseif($analisaType == 'kendaraan') + @include('lpj::surveyor.components.kendaraan') + @elseif($analisaType == 'pesawat') + @include('lpj::surveyor.components.pesawat') + @endif + + @if ($analisaType == 'tanah_bangunan') + @include('lpj::surveyor.components.bangunan') + @endif + + @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') + @include('lpj::surveyor.components.lingkungan') + @endif + + + @include('lpj::surveyor.components.fakta') + +
+
-
-
- - - - {{--
-
--}} - - @if (isset($analisa->id)) - - @method('PUT') - @endif - @csrf - - - - - @php - $analisaType = 'unknown'; - $data = [ - 'tanah' => 'Tanah', - 'unit_rumah' => 'Rumah Tinggal / Ruko (Unit) / Apartemen (Unit) / Gudang', - 'tanah_bangunan' => 'Kawasan Industrial / Komersil / Residensial - Perumahan', - 'unit_gedung' => 'Gedung Apartement / Kantor / Condotel (Strata Title)', - 'tanah_bangunan' => 'Mall', - ]; - - if (isset($analisa->id)) { - $analisaType = $analisa->type; - } else { - foreach ($data as $key => $value) { - if ( - isset($jenisJaminanData) && - trim(strtolower($jenisJaminanData)) === trim(strtolower($value)) - ) { - $analisaType = $key; - break; - } - } - } - if ($analisaType === 'tanah') { - $analisaType = 'tanah_bangunan'; - } - - if ($analisaType === 'unit_rumah' || $analisaType === 'unit_gedung') { - $analisaType = 'unit'; - } - - @endphp - - - - - @if ($analisaType == 'tanah_bangunan') - @include('lpj::surveyor.components.tanah') - @elseif($analisaType == 'unit') - @include('lpj::surveyor.components.apartemen-kantor') - @elseif($analisaType == 'alat-berat') - @include('lpj::surveyor.components.alat-berat') - @elseif($analisaType == 'mesin') - @include('lpj::surveyor.components.mesin') - @elseif($analisaType == 'kapal') - @include('lpj::surveyor.components.kapal') - @elseif($analisaType == 'kendaraan') - @include('lpj::surveyor.components.kendaraan') - @elseif($analisaType == 'pesawat') - @include('lpj::surveyor.components.pesawat') - @endif - - @if ($analisaType == 'tanah_bangunan') - @include('lpj::surveyor.components.bangunan') - @endif - - @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') - @include('lpj::surveyor.components.lingkungan') - @endif - - {{-- analisa fakta --}} -
-
-
-

Analisis Fakta

-
-
-
- -
- - - @error('fakta_positif') - {{ $message }} - @enderror -
- - -
- -
- -
- - @error('fakta_negatif') - {{ $message }} - @enderror -
- -
- - @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') -
- -
- - @error('rute_menuju') - {{ $message }} - @enderror -
-
- -
- -
-
- @php - $inputBatas = []; - $inputBatas = [ - ['label' => 'Utara', 'index' => 0], - ['label' => 'Timur', 'index' => 1], - ['label' => 'Selatan', 'index' => 2], - ['label' => 'Barat', 'index' => 3], - ]; - @endphp - @if ($inputBatas > 0) - @foreach ($inputBatas as $item) -
- - -
- @endforeach - @endif -
- - @error('batas_batas') - {{ $message }} - @enderror -
-
- - -
- -
- - - - @error('kondisi_linkungan') - {{ $message }} - @enderror -
- - -
- - -
- -
- - @error('kondisi_lain_bangunan') - {{ $message }} - @enderror -
- -
- -
- -
- - @error('informasi_dokument') - {{ $message }} - @enderror -
- -
- @endif -
-
-
- - - - @if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat') -
-
- - -
-

Informasi Dinas Tata Ruang

-
- - -
- -
- -
- - @error('peruntukan') - {{ $message }} - @enderror -
-
- -
- -
- - @error('kdb') - {{ $message }} - @enderror -
-
- - -
- -
- - @error('kdh') - {{ $message }} - @enderror -
-
- -
- -
- - @error('gsb') - {{ $message }} - @enderror -
-
- -
- -
- - @error('maxLantai') - {{ $message }} - @enderror -
-
- -
- -
- - @error('klb') - {{ $message }} - @enderror -
-
- -
- -
- - @error('gss') - {{ $message }} - @enderror -
-
- -
- -
- - @error('pelebaran_jalan') - {{ $message }} - @enderror -
-
- -
- -
- - @error('nama_petugas') - {{ $message }} - @enderror -
-
- - -
- - -
-
- -
- - - - Bhumi - -
-
- - @if (isset($link_url_region->regions->url)) -
- - -
- @endif -
- - -
- - -
- -
-
- - - -
-
- -
- @if (old('foto_tempat', isset($analisa->analisaFakta) ? $analisa->analisaFakta->foto_tempat : '')) - Gambar Tempat - @endif -
- - - - - @error('foto_tempat') - {{ $message }} - @enderror - - - -
- -
- - -
-
-

Catatan yang Perlu Diperhatikan -

- -
-
-
-
- @endif - -
- -
- - {{--
+ + {{--
--}} -
+
-
-
+
+

Data Data Jaminan

@@ -124,3 +131,4 @@
+
diff --git a/resources/views/surveyor/components/lingkungan.blade.php b/resources/views/surveyor/components/lingkungan.blade.php index 3af8fee..da52a44 100644 --- a/resources/views/surveyor/components/lingkungan.blade.php +++ b/resources/views/surveyor/components/lingkungan.blade.php @@ -18,8 +18,8 @@
- +
@@ -29,7 +29,7 @@
+ value="{{ old('nama_cbd_point', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_cbd_point : '') }}">
@@ -53,9 +53,7 @@ @endforeach @endif
- @error('perkerasan_jalan') - {{ $message }} - @enderror + @@ -75,9 +73,8 @@ @endforeach @endif - @error('lalu_lintas') - {{ $message }} - @enderror + + @@ -98,9 +95,8 @@ @endif - @error('gol_mas_sekitar') - {{ $message }} - @enderror + + @@ -120,10 +116,8 @@ @endforeach @endif + - @error('tingkat_keramaian') - {{ $message }} - @enderror @@ -142,10 +136,8 @@ @endforeach @endif + - @error('terletak_diarea') - {{ $message }} - @enderror @@ -156,19 +148,20 @@
+
- @error('disekitar_lokasi') - {{ $message }} - @enderror + ) + + @@ -235,7 +228,7 @@ @error('dekatMakam') - {{ $message }} + @enderror @@ -256,7 +249,7 @@ style="visibility: hidden; height: 0;">
- +
@@ -269,10 +262,7 @@ Tidak - - @error('dekatTps') - {{ $message }} - @enderror + @@ -291,10 +281,7 @@ @endforeach @endif - - @error('merupakan_daerah') - {{ $message }} - @enderror + @@ -314,10 +301,8 @@ @endforeach @endif - - @error('fasilitas_dekat_object') - {{ $message }} - @enderror + + diff --git a/resources/views/surveyor/components/tanah.blade.php b/resources/views/surveyor/components/tanah.blade.php index aee7a97..12d759d 100644 --- a/resources/views/surveyor/components/tanah.blade.php +++ b/resources/views/surveyor/components/tanah.blade.php @@ -1,238 +1,5 @@ -
-
-
-

Order Penilaian

-
-
-
- -
- @if (isset($permohonan->tujuanPenilaian)) -

{{ $permohonan->tujuanPenilaian->name }}

- @endif -
-
-
- -
-

{{ $permohonan->created_at->format('d/m/Y') }}

-
-
- -
- -
- @if (isset($permohonan->branch)) -

{{ $permohonan->branch->name }}

- @endif -
-
- -
- -
- @if (isset($permohonan->user)) -

{{ $permohonan->user->name }}

- @endif -
-
-
- -
- -
-
- - -
-
- - -
-
-
- - -
- -
-
-

Nama Cadeb/Debitur

-
- -
-
- -
- @if (isset($permohonan->debiture)) -

{{ $permohonan->debiture->name }}

- @endif -
-
-
-
-
- - -
-
-
-

Deskripsi Aset jaminan

-
- -
-
- -
-
- @if (isset($permohonan->debiture->documents)) - @foreach ($permohonan->debiture->documents as $item) -

{{ $item->jenisJaminan->name }}

- @endforeach - @endif -
-
- - - - - - -
-
-
- -
- -
- - @foreach ($permohonan->debiture->documents as $dokumen) - - {{ $dokumen->pemilik->address ?? '' }}, -
{{ $dokumen->pemilik->village->name ?? '' }}, - {{ $dokumen->pemilik->district->name ?? '' }}, {{ $dokumen->pemilik->city->name ?? '' }}, - {{ $dokumen->pemilik->province->name ?? '' }} - - {{ $dokumen->pemilik->village->postal_code ?? '' }} -
- @endforeach - -
-
- - - - -
-
- -
-
-
-
-
- - -
-
-
-

Titik Koordinat Google Maps

-
-
- -
-
- - - -
-
-
-
-
- -
-
- -
-
-

Status Kepemilikan

-
-
- - -
-
-

Izin Bangunan

-
-
- - -
-
-

SPPT PBB

-
-
- -
-
-

Dokument Lainnya

-
-
- - -
-
-

Hubungan cadeb/debitur dengan Pemilik Jaminan

-
-
- -
-
-

Hubungan Cadeb/Debitur dengan Penghuni Jaminan

-
-
- -
-
+@include('lpj::surveyor.components.header')
@@ -255,26 +22,25 @@

{{ $luas_tanah }} m2

@endforeach @endif -
-
- - - +
+
+
+ + + +
+
- - @error('luas') - {{ $message }} - @enderror
@@ -282,22 +48,22 @@
-
+
-
- - @error('hadap_mata_angin_tidak_sesuai') - {{ $message }} - @enderror +
@@ -322,13 +85,15 @@
-
+
@if (isset($bentukTanah)) @foreach ($bentukTanah as $item) @if (strcasecmp($item->name, 'lainnya') == 0) @@ -338,25 +103,23 @@ value="{{ $item->name }}" /> {{ $item->name }} - +
@endif @endforeach - @endif -
- @error('bentuk_tanah') - {{ $message }} - @enderror +
-
+
@if (isset($konturTanah)) @@ -369,9 +132,7 @@ @endforeach @endif
- @error('kontur_tanah') - {{ $message }} - @enderror +
@@ -379,7 +140,7 @@
-
+
@@ -393,9 +154,7 @@ @endforeach @endif
- @error('ketinggian_jalan') - {{ $message }} - @enderror +
@@ -416,17 +175,14 @@ Rata
- - @error('kontur_jalan') - {{ $message }} - @enderror +
-
+
@if (isset($posisiKavling)) @foreach ($posisiKavling as $item) @@ -442,17 +198,14 @@ value="{{ $item->name }}" /> {{ $item->name }} -
@endif @endforeach @endif -
- @error('posisi_kavling') - {{ $message }} - @enderror +
@@ -460,7 +213,7 @@
-
+
- - @error('tusuk_sate') - {{ $message }} - @enderror +
-
+
- @error('lockland') - {{ $message }} - @enderror +
@@ -506,7 +254,7 @@
-
+
@if (isset($kondisiFisikTanah)) @@ -530,9 +278,7 @@ @endforeach @endif
- @error('kondisi_fisik_tanah') - {{ $message }} - @enderror +
@@ -557,16 +303,9 @@ } - function toggleTidakSesuai(params) { - const inputData = document.querySelector(`input[name="${params}"]:checked`); - const luasTanah = document.getElementById('luas_tanah'); - if (inputData && inputData.value === 'tidak sesuai') { - luasTanah.style.display = 'block'; - } else { - luasTanah.style.display = 'none'; - } - } + + function toggleJenisAsset(params) {