From 15b3e6d3cb6d0c68ffef5e9d915d6aac0bff9219 Mon Sep 17 00:00:00 2001 From: majid Date: Thu, 14 Nov 2024 17:14:36 +0700 Subject: [PATCH 01/16] update show data status registari final --- app/Http/Controllers/PenilaianController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/PenilaianController.php b/app/Http/Controllers/PenilaianController.php index 137cb6b..8002419 100644 --- a/app/Http/Controllers/PenilaianController.php +++ b/app/Http/Controllers/PenilaianController.php @@ -130,7 +130,9 @@ class PenilaianController extends Controller return redirect()->route('penilaian.index')->with('success', 'Penilaian berhasil disimpan'); } catch (Exception $e) { DB::rollBack(); - return redirect()->route('penilaian.index')->with('error', $e->getMessage()); + + return response()->json(['error'=> $e->getMessage()]); + // return redirect()->route('penilaian.index')->with('error', $e->getMessage()); } } } @@ -299,8 +301,7 @@ class PenilaianController extends Controller }); } - // $query->whereRaw('LOWER(status) = ?', ['registered']); - $query->whereIn('status', ['registered', 'proses_penawaran']); + $query->whereIn('status', ['registered', 'registrasi-final']); $query->whereHas('region.teams.teamsUsers.user', function ($q) { $q->where('id', Auth::user()->id); }); From a79dd22311e7001952767bda0147a7d6d9e81122 Mon Sep 17 00:00:00 2001 From: majid Date: Sat, 16 Nov 2024 07:45:02 +0700 Subject: [PATCH 02/16] udate form kendaraan --- app/Http/Controllers/SurveyorController.php | 50 +- app/Http/Requests/FormSurveyorRequest.php | 123 +++- .../views/surveyor/components/fakta.blade.php | 210 +----- .../surveyor/components/informasi.blade.php | 208 ++++++ .../surveyor/components/inspeksi.blade.php | 3 +- .../surveyor/components/kendaraan.blade.php | 647 +++++++++++++++--- resources/views/surveyor/detail.blade.php | 40 +- routes/web.php | 2 +- 8 files changed, 924 insertions(+), 359 deletions(-) create mode 100644 resources/views/surveyor/components/informasi.blade.php diff --git a/app/Http/Controllers/SurveyorController.php b/app/Http/Controllers/SurveyorController.php index 3c86379..891b88d 100644 --- a/app/Http/Controllers/SurveyorController.php +++ b/app/Http/Controllers/SurveyorController.php @@ -48,6 +48,8 @@ use Modules\Lpj\Models\LaluLintasLokasi; use Modules\Lpj\Models\SpekBagunanAnalisaDetail; use Modules\Lpj\Http\Requests\SurveyorRequest; use Modules\Lpj\Http\Requests\FormSurveyorRequest; +use Modules\Lpj\Emails\SendEmail; +use Illuminate\Support\Facades\Mail; class SurveyorController extends Controller { @@ -391,7 +393,9 @@ class SurveyorController extends Controller } } - public function submitSurveyor($id,$jaminanId) + + + public function submitSurveyor($id, $jaminanId) { try { $cekButton = $this->checkButtonStatus($id)->getData(); @@ -445,35 +449,48 @@ class SurveyorController extends Controller public function storeJadwal(Request $request) { try { - $validate = $request->validate([ 'id' => 'required', 'waktu_penilaian' => 'required', 'deskripsi_penilaian' => 'required' ]); - // return response()->json([ - // 'daa'=>$validate - // ]); + // $user = ['user' => 'rustammajid76@gmail.com']; + + // $emailData = [ + // 'email' => 'rustammajid76@gmail.com', + // 'subject' => 'Test', + // 'emailData' => '

Hello, World!

This is the email content. Waktu Penilaian:

' + // ]; + + // $this->sendMessage($emailData, $user); + $id = $request->input('id'); $penilaian = Penilaian::findOrFail($id); $penilaian->update([ 'waktu_penilaian' => $validate['waktu_penilaian'], 'deskripsi_penilaian' => $validate['deskripsi_penilaian'], - ]); return redirect() ->route('surveyor.index') ->with('success', 'Jadwal berhasil dibuat.'); } catch (\Exception $e) { - return redirect() - ->route('surveyor.index') - ->with('error', 'Gagal membuat jadwal: ' . $e->getMessage()); + return response()->json(['buttonDisable' => $e->getMessage()]); } } + // public function sendMessage($emailData, $user) + // { + // try { + // Mail::to('rustammobil1@gmail.com')->send(new SendEmail($emailData, $user)); + // } catch (\Throwable $th) { + // return $th; + // } + + // } + public function storeAproved($id) { try { @@ -1107,14 +1124,25 @@ class SurveyorController extends Controller private function getBangunanData($data, $request): array { + // $kategori_bangunan = []; + // if ($request->has('spek_kategori_bagunan')) { + // foreach ($request->input('spek_kategori_bagunan', []) as $value) { + // $kategori_bangunan[] = [ + // 'value' => [ + // 'data' => $data['spek_bangunan'] ?? [], + // ], + // ]; + // } + // } + return [ 'luas_tanah_bagunan' => $data['luas_tanah_bagunan'] ?? null, 'jenis_bangunan' => $data['jenis_bangunan'] ?? null, 'kondisi_bangunan' => $data['kondisi_bangunan'] ?? null, 'sifat_bangunan' => $data['sifat_bangunan'] ?? null, - 'sifat_bangunan_input' => $data['sifat_bagunan_input'] ?? null, + 'sifat_bangunan_input' => $data['sifat_bangunan_input'] ?? null, 'spek_kategori_bagunan' => $data['spek_kategori_bagunan'] ?? null, - 'spek_bangunan' => $data['spek_bangunan'] ?? null, + 'spek_bangunan' => $data['spek_bangunan'] ?? [], 'sarana_pelengkap' => $data['sarana_pelengkap'] ?? [], 'sarana_pelengkap_input' => $data['sarana_pelengkap_input'] ?? null, ]; diff --git a/app/Http/Requests/FormSurveyorRequest.php b/app/Http/Requests/FormSurveyorRequest.php index d724c72..04ab54c 100644 --- a/app/Http/Requests/FormSurveyorRequest.php +++ b/app/Http/Requests/FormSurveyorRequest.php @@ -162,8 +162,74 @@ class FormSurveyorRequest extends FormRequest { return [ 'action' => 'required', - 'kondisi_kapal' => 'required', - 'kondisi_kapal_lain' => 'required', + 'nama_wakil_debitur' => 'required', + 'hubungan_calon_debitur' => 'required', + 'dermaga' => 'required', + 'desa_kelurahan' => 'required', + 'kecamatan' => 'required', + 'kota_madya' => 'required', + 'provinsi' => 'required', + 'jenis.*' => 'required', + 'size.*' => 'required', + 'kondisi.*' => 'required', + 'klasifikasi.*' => 'required', + 'nama_kapal' => 'required', + 'pemilik_kapal' => 'required', + 'bendera' => 'required', + 'nomor_tanda_selar_kapal' => 'required', + 'galangan_kapal' => 'required', + 'tahun_pembuatan' => 'required', + 'tahun_launcing' => 'required', + 'dwt' => 'required', + 'lwt' => 'required', + 'gross_tonnage' => 'required', + 'net_tonnage' => 'required', + 'tenaga_mesin' => 'required', + 'loa' => 'required', + 'lbp' => 'required', + 'beam' => 'required', + 'depth' => 'required', + 'draft' => 'required', + 'lambung_kapal' => 'required', + 'dek' => 'required', + 'struktur_kapal' => 'required', + 'palka' => 'required', + 'pondasi_mesin' => 'required', + 'area_mesin' => 'required', + 'cat_korosi' => 'required', + 'sistem_pengelasan' => 'required', + 'deskripsi_lain' => 'required', + 'sekoci' => 'required', + 'jaket_pelampung' => 'required', + 'alat_pemadaman' => 'required', + 'rambu_darurat' => 'required', + 'sistem_pencegahan' => 'required', + 'kebakaran' => 'required', + 'lampu_darurat' => 'required', + 'deskripsi_peralatan' => 'required', + 'gps' => 'required', + 'radar' => 'required', + 'radio_komunikasi' => 'required', + 'lampu_navigasi' => 'required', + 'sistem_kendali_otomatis' => 'required', + 'kompas' => 'required', + 'deskripsi_navigasi' => 'required', + 'mesin_utama' => 'required', + 'mesin_bantu' => 'required', + 'pompa_pendingin' => 'required', + 'sistem_pelumasan' => 'required', + 'propeller' => 'required', + 'sistem_kelistrikan' => 'required', + 'deskripsi_mesin_penggerak' => 'required', + 'lampu_navigasi' => 'required', + 'sistem_penerangan' => 'required', + 'sistem_panel_distribusi' => 'required', + 'kabel_perangkat' => 'required', + 'deskripsi_kelistrikan' => 'required', + 'kebersihan_dek_luar' => 'required', + 'tangki_limbah' => 'required', + 'sistem_pengelolaan_limbah' => 'required', + 'pengelolaan_air_ballast' => 'required', ]; } @@ -191,8 +257,57 @@ class FormSurveyorRequest extends FormRequest { return [ 'action' => 'required', - 'kondisi_alat_berat' => 'required', - 'kondisi_alat_berat_lain' => 'required', + 'tanggal_survey' => 'required', + 'nama_wakili' => 'required', + 'hub_calon_debitur' => 'required', + 'dengan_wadeb' => 'required', + 'nama_jalan' => 'required', + 'perumahan_gang'=>'required', + 'blok' => 'required', + 'desa_kelurahan' => 'required', + 'kecamatan' => 'required', + 'kota_madya' => 'required', + 'provinsi' => 'required', + 'masa_berlaku_stnk' => 'required', + 'masa_berlaku_pajak' => 'required', + 'kendaraan' => 'required', + 'merk' => 'required', + 'detail_merek' => 'required', + 'kondisi' => 'required', + 'nomor_polisi' => 'nullable', + 'merek' => 'nullable', + 'warna' => 'nullable', + 'nomor_rangka'=>'nullable', + 'nomor_mesin'=>'nullable', + 'posisi_kilometer' => 'nullable', + 'transmisi' => 'nullable', + 'mesin_instrument' => 'nullable', + 'fungsi_instrument' => 'nullable', + 'interior' => 'nullable', + 'jumlah' => 'nullable', + 'rangka' => 'nullable', + 'ban' => 'nullable', + 'velg' => 'nullable', + 'bamper_depan' => 'nullable', + 'bamper_belakang' => 'nullable', + 'lampu_depan' => 'nullable', + 'lampu_belakang' => 'nullable', + 'kaca' => 'nullable', + 'air_conditions' => 'nullable', + 'tape_radio' => 'nullable', + 'sensor_parkir' => 'nullable', + 'sensor_kamera' => 'nullable', + 'lcd' => 'nullable', + 'sabuk_keselamatan' => 'nullable', + 'air_bag' => 'nullable', + 'asuransi' => 'nullable', + 'perusahan_asuransi' => 'nullable', + 'tahun_berakhir' => 'nullable', + 'faktor_positif' => 'nullable', + 'faktor_negatif' => 'nullable', + 'analisa_makro' => 'nullable', + 'kesimpulan' => 'nullable', + 'catatan_lainnya' => 'nullable', ]; } diff --git a/resources/views/surveyor/components/fakta.blade.php b/resources/views/surveyor/components/fakta.blade.php index 0609899..fae8dec 100644 --- a/resources/views/surveyor/components/fakta.blade.php +++ b/resources/views/surveyor/components/fakta.blade.php @@ -127,215 +127,7 @@ - - -
-
-
-

Informasi Dinas Tata Ruang

-
- -
- - - @php - $inputDinasTata = [ - [ - 'label' => 'Peruntukan', - 'name' => 'peruntukan', - 'index' => 0, - 'value' => old( - 'peruntukan', - isset($forminspeksi['peruntukan']) ? $forminspeksi['peruntukan'] : '', - ), - ], - [ - 'label' => 'KDB', - 'name' => 'kdb', - 'index' => 1, - 'value' => old('kdb', isset($forminspeksi['kdb']) ? $forminspeksi['kdb'] : ''), - ], - [ - 'label' => 'KDH', - 'name' => 'kdh', - 'index' => 2, - 'value' => old('kdh', isset($forminspeksi['kdh']) ? $forminspeksi['kdh'] : ''), - ], - [ - 'label' => 'gsb', - 'name' => 'gsb', - 'index' => 3, - 'value' => old('gsb', isset($forminspeksi['gsb']) ? $forminspeksi['gsb'] : ''), - ], - [ - 'label' => 'Max Lantai', - 'name' => 'max_lantai', - 'index' => 4, - 'value' => old( - 'max_lantai', - isset($forminspeksi['max_lantai']) ? $forminspeksi['max_lantai'] : '', - ), - ], - [ - 'label' => 'KLB', - 'name' => 'klb', - 'index' => 5, - 'value' => old('klb', isset($forminspeksi['klb']) ? $forminspeksi['klb'] : ''), - ], - [ - 'label' => 'GSS', - 'name' => 'gss', - 'index' => 6, - 'value' => old('gss', isset($forminspeksi['gss']) ? $forminspeksi['gss'] : ''), - ], - [ - 'label' => 'Pelebaran Jalan', - 'name' => 'pelebaran_jalan', - 'index' => 7, - 'value' => old( - 'pelebaran_jalan', - isset($forminspeksi['pelebaran_jalan']) ? $forminspeksi['pelebaran_jalan'] : '', - ), - ], - [ - 'label' => 'Nama Petugas TK', - 'name' => 'nama_petugas', - 'index' => 8, - 'value' => old( - 'nama_petugas', - isset($forminspeksi['nama_petugas']) ? $forminspeksi['nama_petugas'] : '', - ), - ], - ]; - @endphp - - @if (count($inputDinasTata) > 0) - @foreach ($inputDinasTata as $item) -
- -
- - @error($item['name']) - - @enderror -
-
- @endforeach - @endif - - -
- -
- -
- - Foto Gistaru -
- - Gistaru - -
-
- -
- -
- -
- - Foto Bhumi -
- - Bhumi - -
-
- - @if (isset($link_url_region->regions->url)) -
- - -
- @endif -
- - -
- - -
- -
-
- - - -
-
- - -
- - Foto Argis Region -
-
-
- - -
-
-

Catatan yang Perlu Diperhatikan -

- -
-
-
-
+ + +@endsection diff --git a/resources/views/surveyor/components/denah.blade.php b/resources/views/surveyor/components/denah.blade.php index 0fd3e2d..08b8c39 100644 --- a/resources/views/surveyor/components/denah.blade.php +++ b/resources/views/surveyor/components/denah.blade.php @@ -139,16 +139,18 @@ Upload Denah
- Gambar foto_denah + alt="Gambar foto_denah" style="{{ isset($formFoto['foto_denah']) ? 'width: 30rem;' : 'display: none;' }}">
+ accept="image/*" + onchange="previewImage(this, 'foto_denah-preview')" + >
@@ -196,6 +198,18 @@ @push('scripts') + + diff --git a/resources/views/surveyor/components/foto.blade.php b/resources/views/surveyor/components/foto.blade.php index 4228f8b..bf99d26 100644 --- a/resources/views/surveyor/components/foto.blade.php +++ b/resources/views/surveyor/components/foto.blade.php @@ -80,17 +80,12 @@ - {{--
-
--}}
- - -
@@ -109,18 +104,18 @@ Foto Rute Menuju Lokasi
- Foto Rute {{ $index }} - +
+ Foto Rute {{ $index }} +
+ capture="camera" onchange="previewImage(this, 'foto_rute-preview')">
@endforeach -
- @else -
-
- + @else +
+
+ -
- - -
- - - +
+
+
+
- -
- -
- @endif -
-
- -
- - Foto Gerbong -
- - -
-
-
- -
-
-
- - -
-
- -
-
-
-

Objek Jaminan

-
- - - @foreach ($permohonan->debiture->documents as $dokumen) - @if ($dokumen->jenisJaminan) - @php - $formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true); - @endphp - @if (isset($formKategori) && $formKategori) - - - @if (is_array($formKategori)) - @foreach ($formKategori as $kategori) - @if ($kategori === 'tanah' || $kategori === 'bangunan') - @php - $objekViews = [ - ['label' => 'Tampak Samping Kiri', 'index' => 0], - ['label' => 'Tampak Samping Kanan', 'index' => 1], - ['label' => 'Nomor Rumah/Unit', 'index' => 2], - ]; - @endphp - @elseif ($kategori === 'apartemen-kantor') - @php - $objekViews = [ - ['label' => 'Tampak Loby', 'index' => 0], - ['label' => 'Tampak Lift', 'index' => 1], - ['label' => 'Tampak Samping Kiri Unit', 'index' => 2], - ['label' => 'Tampak Samping Kanan Unit', 'index' => 3], - ['label' => 'Tampak Depan Unit', 'index' => 4], - ['label' => 'Nomor Unit', 'index' => 5], - ]; - @endphp - @elseif ($kategori === 'kendaraan') - @php - $objekViews = [ - ['label' => 'Tampak Depan Objek', 'index' => 0], - ['label' => 'Tampak Kanan Objek', 'index' => 1], - ['label' => 'Tampak Samping Kiri Objek', 'index' => 2], - ['label' => 'Tampak Belakang Objek', 'index' => 3], - ['label' => 'Tampak Bagian Dalam', 'index' => 4], - ['label' => 'Nomor Panel Instrument', 'index' => 5], - ['label' => 'Tampak Odometer', 'index' => 6], - ['label' => 'Tampak Aksesoris Tambahan', 'index' => 7], - ['label' => 'Tampak Nomor Rangka', 'index' => 8], - ['label' => 'Tampak Nomor Mesin', 'index' => 9], - ['label' => 'Tampak Penilai dan Pendamping di lapangan', 'index' => 10], - ]; - @endphp - @elseif ($kategori === 'kapal') - @php - $objekViews = [ - ['label' => 'Tampak Depan', 'index' => 0], - ['label' => 'Tampak Kanan', 'index' => 1], - ['label' => 'Tampak Samping Kiri', 'index' => 2], - ['label' => 'Tampak Belakang', 'index' => 3], - ['label' => 'Tampak Bagian Dalam', 'index' => 4], - ['label' => 'Nomor Panel Instrument', 'index' => 5], - ['label' => 'Tampak Hours Meters', 'index' => 6], - ['label' => 'Tampak Aksesoris Tambahan', 'index' => 7], - ['label' => 'Tampak Nomor Rangka', 'index' => 8], - ['label' => 'Tampak Nomor Mesin', 'index' => 9], - ['label' => 'Tampak Penilai dan Pendamping di lapangan', 'index' => 10], - ]; - @endphp @endif - - - @if (count($objekViews) > 0) - @foreach ($objekViews as $view) -
-
- - -
- {{ $view['label'] }} - +
+
+ +
+ + Foto Gerbong +
+ + +
+
+
+ +
+
+ @if (isset($formFoto['foto_rute_lainnya']) && is_array($formFoto['foto_rute_lainnya'])) + @foreach ($formFoto['foto_rute_lainnya'] as $Index => $photo) +
+ +
+
+
+ +
+
+ Foto Rute
- -
- -
+
-
- @endforeach - @endif - @endforeach - @endif - @endif - @endif - @endforeach +
+ @endforeach + @endif +
+ +
+
+
-
-
-
- - +
+
+
+

Objek Jaminan

- @if (isset($formFoto['foto_lantai_unit'])) - @foreach ($formFoto['foto_lantai_unit'] as $item) -
-
- -
+ @php + // Array untuk menyimpan kategori yang sudah diproses + $processedCategories = []; + @endphp - Gambar Pendamping - - + @foreach ($permohonan->debiture->documents as $dokumen) + @if ($dokumen->jenisJaminan) + @php + $formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true); + @endphp + @if (isset($formKategori) && $formKategori) + + + + @if (is_array($formKategori)) + @foreach ($formKategori as $kategori) + @if (!in_array($kategori, $processedCategories)) + @php + $objekViews = []; + if ($kategori === 'tanah') { + $objekViews = [ + ['label' => 'Tampak Samping Kiri', 'index' => 0], + ['label' => 'Tampak Samping Kanan', 'index' => 1], + ['label' => 'Nomor Rumah/Unit', 'index' => 2], + ]; + } elseif ($kategori === 'apartemen-kantor') { + $objekViews = [ + ['label' => 'Tampak Loby', 'index' => 0], + ['label' => 'Tampak Lift', 'index' => 1], + ['label' => 'Tampak Samping Kiri Unit', 'index' => 2], + ['label' => 'Tampak Samping Kanan Unit', 'index' => 3], + ['label' => 'Tampak Depan Unit', 'index' => 4], + ['label' => 'Nomor Unit', 'index' => 5], + ]; + } elseif ($kategori === 'kendaraan') { + $objekViews = [ + ['label' => 'Tampak Depan Objek', 'index' => 0], + ['label' => 'Tampak Kanan Objek', 'index' => 1], + ['label' => 'Tampak Samping Kiri Objek', 'index' => 2], + ['label' => 'Tampak Belakang Objek', 'index' => 3], + ['label' => 'Tampak Bagian Dalam', 'index' => 4], + ['label' => 'Nomor Panel Instrument', 'index' => 5], + ['label' => 'Tampak Odometer', 'index' => 6], + ['label' => 'Tampak Aksesoris Tambahan', 'index' => 7], + ['label' => 'Tampak Nomor Rangka', 'index' => 8], + ['label' => 'Tampak Nomor Mesin', 'index' => 9], + [ + 'label' => 'Tampak Penilai dan Pendamping di lapangan', + 'index' => 10, + ], + ]; + } elseif ($kategori === 'kapal') { + $objekViews = [ + ['label' => 'Tampak Depan', 'index' => 0], + ['label' => 'Tampak Kanan', 'index' => 1], + ['label' => 'Tampak Samping Kiri', 'index' => 2], + ['label' => 'Tampak Belakang', 'index' => 3], + ['label' => 'Tampak Bagian Dalam', 'index' => 4], + ['label' => 'Nomor Panel Instrument', 'index' => 5], + ['label' => 'Tampak Hours Meters', 'index' => 6], + ['label' => 'Tampak Aksesoris Tambahan', 'index' => 7], + ['label' => 'Tampak Nomor Rangka', 'index' => 8], + ['label' => 'Tampak Nomor Mesin', 'index' => 9], + [ + 'label' => 'Tampak Penilai dan Pendamping di lapangan', + 'index' => 10, + ], + ]; + } elseif ($kategori === 'mesin') { + $objekViews = [ + ['label' => 'Tampak Depan', 'index' => 0], + ['label' => 'Tampak Kanan', 'index' => 1], + ['label' => 'Tampak Samping Kiri', 'index' => 2], + ['label' => 'Tampak Belakang', 'index' => 3], + ['label' => 'Tampak Bagian Dalam', 'index' => 4], + ['label' => 'Nomor Panel Instrument', 'index' => 5], + ['label' => 'Tampak Hours Meters', 'index' => 6], + ['label' => 'Tampak Aksesoris Tambahan', 'index' => 7], + ['label' => 'Tampak Nomor Rangka', 'index' => 8], + ['label' => 'Tampak Nomor Mesin', 'index' => 9], + [ + 'label' => 'Foto Tampak Aksesoris Tambahan Lainnya', + 'index' => 10, + ], + [ + 'label' => 'Tampak Penilai dan Pendamping di lapangan', + 'index' => 10, + ], + ]; + } + @endphp + + @if (count($objekViews) > 0) + @foreach ($objekViews as $view) +
+
+ + +
+ {{ $view['label'] }} + +
+ + +
+ + +
+
+ +
+ @endforeach + @endif + + @php + // Tandai kategori sebagai sudah diproses + $processedCategories[] = $kategori; + @endphp + @endif + @endforeach + @endif + @endif + @endif + @endforeach + +
+
+
+ + +
+ + @if (isset($formFoto['foto_lantai_unit'])) + @foreach ($formFoto['foto_lantai_unit'] as $item) +
+
+ +
+ + Gambar Pendamping + + + +
+ +
+ + + +
+ @endforeach + @else +
+
+ + +
+ + + +
+ @error('foto_lantai_unit.*') + {{ $message }} + @enderror +
+ @endif +
+
+ +
+ + + Gambar foto_basement +
+ + +
+
+
- @error('foto_lantai_unit.*') - {{ $message }} - @enderror + + +
+ + +
+ +
+ + +
+
+
+
+ + + +
+
+
+

Lingkungan

+ +
+ + @if (isset($formFoto['lingkungan']) && !is_array($formFoto['lingkungan']) && !empty($formFoto['lingkungan'])) + @foreach ($formFoto['lingkungan'] as $item) +
+
+ +
+ Gambar Pendamping + +
+ + + +
+ +
+
+ +
@endforeach @else -
-
- +
+
-
- - - -
- -
- @error('foto_lantai_unit.*') - {{ $message }} - @enderror -
- @endif - -
-
- -
- - - Gambar basement -
- - -
-
- -
- @error('foto_lantai_unit.*') - {{ $message }} - @enderror -
- - -
- -
- - -
-
-
-
- - - -
-
-
-

Lingkungan

- -
- - @if (isset($formFoto['lingkungan'])) - @foreach ($formFoto['lingkungan'] as $item) -
-
- -
- Gambar Pendamping -
+
+ + +
+ +
+ @endif +
+
+ +
+
+ + +
+

Pendamping

+
+
+
+ + +
+ + Gambar Pendamping + + +
+ + +
+
- - -
- @endforeach - @else -
-
- -
- - - - -
- - -
- -
- @endif -
-
- -
-
- - -
-

Pendamping

-
-
-
- - -
- - Gambar Pendamping - - -
- - -
- - + @error('pendamping') + {{ $message }} + @enderror
- @error('pendamping') - {{ $message }} - @enderror
-
-
-
-
- -
- - {{-- + + {{--
--}}
@@ -573,7 +642,7 @@
- +
@@ -636,10 +705,9 @@ - -
@@ -652,18 +720,17 @@ @push('scripts') diff --git a/resources/views/surveyor/components/header.blade.php b/resources/views/surveyor/components/header.blade.php index c98814e..795f322 100644 --- a/resources/views/surveyor/components/header.blade.php +++ b/resources/views/surveyor/components/header.blade.php @@ -45,15 +45,14 @@ -
- -
diff --git a/resources/views/surveyor/components/informasi.blade.php b/resources/views/surveyor/components/informasi.blade.php index cac688e..6b93367 100644 --- a/resources/views/surveyor/components/informasi.blade.php +++ b/resources/views/surveyor/components/informasi.blade.php @@ -187,8 +187,9 @@ - + + Foto Argis Region diff --git a/resources/views/surveyor/components/inspeksi.blade.php b/resources/views/surveyor/components/inspeksi.blade.php index 07c0c12..589db44 100644 --- a/resources/views/surveyor/components/inspeksi.blade.php +++ b/resources/views/surveyor/components/inspeksi.blade.php @@ -34,25 +34,25 @@ @foreach ($permohonan->debiture->documents as $dokumen) - @if ($dokumen->jenisJaminan) - @php - $formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true); - @endphp - @if (isset($formKategori) && $formKategori) - - - @if (is_array($formKategori)) - @foreach ($formKategori as $kategori) - @include('lpj::surveyor.components.' . str_replace('-', '-', $kategori), [ - 'dokumen' => $dokumen, - ]) - @endforeach + @if ($dokumen->jenisJaminan) + @php + $formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true); + @endphp + @if (isset($formKategori) && $formKategori) + + + @if (is_array($formKategori)) + @foreach ($formKategori as $kategori) + @include('lpj::surveyor.components.' . str_replace('-', '-', $kategori), [ + 'dokumen' => $dokumen, + ]) + @endforeach + @endif @endif @endif - @endif - @endforeach + @endforeach
@@ -107,34 +177,109 @@ @error('hadapMataAngin') - {{ $message }} + @enderror @php - $inputDataJaminan = []; $inputDataJaminan = [ - ['label' => 'Nama Kapal', 'index' => 0], - ['label' => 'Pemilik Kapal', 'index' => 1], - ['label' => 'Bendera', 'index' => 2], - ['label' => 'Nomor Tanda Selar', 'index' => 3], - ['label' => 'Kapal', 'index' => 4], - ['label' => 'Galangan', 'index' => 5], - ['label' => 'Kapal/Shipyard', 'index' => 6], - ['label' => 'Tahun Pembuatan', 'index' => 7], - ['label' => 'Tahun Lanuncing', 'index' => 8], - ['label' => 'DWT (ton)', 'index' => 9], - ['label' => 'LWT (ton)', 'index' => 10], - ['label' => 'Gross Tonnage (ton)', 'index' => 11], - ['label' => 'Net Tonnage (ton)', 'index' => 12], - ['label' => 'Tenaga Mesin (HP)', 'index' => 13], - ['label' => 'LOA', 'index' => 14], - ['label' => 'LBP', 'index' => 15], - ['label' => 'Beam', 'index' => 16], - ['label' => 'Depth', 'index' => 17], - ['label' => 'Draft', 'index' => 18], + [ + 'label' => 'Nama Kapal', + 'name' => 'nama_kapal', + 'index' => 0, + ], + [ + 'label' => 'Pemilik Kapal', + 'name' => 'pemilik_kapal', + 'index' => 1, + ], + [ + 'label' => 'Bendera', + 'name' => 'bendera', + 'index' => 2, + ], + [ + 'label' => 'Nomor Tanda Selar', + 'name' => 'nomor_selar', + 'index' => 3, + ], + [ + 'label' => 'Kapal', + 'name' => 'kapal', + 'index' => 4, + ], + [ + 'label' => 'Galangan', + 'name' => 'galangan_kapal', + 'index' => 5, + ], + [ + 'label' => 'Kapal/Shipyard', + 'name' => 'kapal_shipyard', + 'index' => 6, + ], + [ + 'label' => 'Tahun Pembuatan', + 'name' => 'tahun_pembuatan', + 'index' => 7, + ], + [ + 'label' => 'Tahun Lanuncing', + 'name' => 'tahun_launcing', + 'index' => 8, + ], + [ + 'label' => 'DWT (ton)', + 'name' => 'dwt', + 'index' => 9, + ], + [ + 'label' => 'LWT (ton)', + 'name' => 'lwt', + 'index' => 10, + ], + [ + 'label' => 'Gross Tonnage (ton)', + 'name' => 'gross_tonnage', + 'index' => 11, + ], + [ + 'label' => 'Net Tonnage (ton)', + 'name' => 'net_tonnage', + 'index' => 12, + ], + [ + 'label' => 'Tenaga Mesin (HP)', + 'name' => 'tenaga_mesin', + 'index' => 13, + ], + [ + 'label' => 'LOA', + 'name' => 'loa', + 'index' => 14, + ], + [ + 'label' => 'LBP', + 'name' => 'lbp', + 'index' => 15, + ], + [ + 'label' => 'Beam', + 'name' => 'beam', + 'index' => 16, + ], + [ + 'label' => 'Depth', + 'name' => 'depth', + 'index' => 17, + ], + [ + 'label' => 'Draft', + 'name' => 'draft', + 'index' => 18, + ], ]; @endphp @@ -144,24 +289,16 @@
- - @error('bentuk_tanah') - {{ $message }} - @enderror + +
@endforeach @endif - -
- -
@@ -170,33 +307,64 @@
@php - $inputDataLoaksi = []; - $inputDataLoaksi = [ - ['label' => 'Lambung Kapal', 'index' => 0], - ['label' => 'Dek', 'index' => 1], - ['label' => 'Struktur Rangka', 'index' => 2], - ['label' => 'Palka', 'index' => 3], - ['label' => 'Pondasi Mesin', 'index' => 4], - ['label' => 'Area Mesin', 'index' => 5], - ['label' => 'Cat dan Korosi', 'index' => 6], - ['label' => 'Sistem Pengelasan', 'index' => 7] + $inputStrukturKapal = [ + [ + 'label' => 'Lambung Kapal', + 'name' => 'lambung_kapal', + 'index' => 0, + ], + [ + 'label' => 'Dek', + 'name' => 'dek', + 'index' => 1, + ], + [ + 'label' => 'Struktur Rangka', + 'name' => 'struktur_rangka', + 'index' => 2, + ], + [ + 'label' => 'Palka', + 'name' => 'palka', + 'index' => 3, + ], + [ + 'label' => 'Pondasi Mesin', + 'name' => 'pondasi_mesin', + 'index' => 4, + ], + [ + 'label' => 'Area Mesin', + 'name' => 'area_mesin', + 'index' => 5, + ], + [ + 'label' => 'Cat dan Korosi', + 'name' => 'cat_dan_korosi', + 'index' => 6, + ], + [ + 'label' => 'Sistem Pengelasan', + 'name' => 'sistem_pengelasan', + 'index' => 7, + ], ]; @endphp - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) + @if (count($inputStrukturKapal) > 0) + @foreach ($inputStrukturKapal as $item)
- - @error('bentuk_tanah') - {{ $message }} - @enderror + + +
@endforeach @@ -204,10 +372,10 @@
- - @error('deskripsi') - {{ $message }} - @enderror + + + +
@@ -220,33 +388,60 @@
@php - $inputDataLoaksi = []; - - $inputDataLoaksi = [ - ['label' => 'Sekoci/Lifeboat', 'index' => 0], - ['label' => 'Jaket Pelampung', 'index' => 1], - ['label' => 'Alat Pemadam', 'index' => 2], - ['label' => 'Rambu Darurat', 'index' => 3], - ['label' => 'Sistem Alarm', 'index' => 4], - ['label' => 'Sistem Pencegah', 'index' => 5], - ['label' => 'Kebaran', 'index' => 6], - ['label' => 'Lampu Darurat', 'index' => 7] + $inputPeralatan = [ + [ + 'label' => 'Sekoci/Lifeboat', + 'name' => 'sekoci', + 'index' => 0, + ], + [ + 'label' => 'Jaket Pelampung', + 'name' => 'jaket_pelampung', + 'index' => 1, + ], + [ + 'label' => 'Alat Pemadam', + 'name' => 'alat_pemadaman', + 'index' => 2, + ], + [ + 'label' => 'Rambu Darurat', + 'name' => 'rambu_darurat', + 'index' => 3, + ], + [ + 'label' => 'Sistem Alarm', + 'name' => 'sistem_alarm', + 'index' => 4, + ], + [ + 'label' => 'Sistem Pencegah', + 'name' => 'sistem_pencegah', + 'index' => 5, + ], + [ + 'label' => 'Kebakaran', + 'name' => 'kebakaran', + 'index' => 6, + ], + [ + 'label' => 'Lampu Darurat', + 'name' => 'lampu_darurat', + 'index' => 7, + ], ]; @endphp - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) + @if (count($inputPeralatan) > 0) + @foreach ($inputPeralatan as $item)
- - - @error('bentuk_tanah') - {{ $message }} - @enderror +
@endforeach @@ -254,10 +449,10 @@
- - @error('deskripsi') - {{ $message }} - @enderror + + + +
@@ -270,15 +465,38 @@
@php - $inputDataLoaksi = []; $inputDataLoaksi = [ - ['label' => 'Gps', 'index' => 0], - ['label' => 'Radat', 'index' => 1], - ['label' => 'Radio Komunikasi', 'index' => 2], - ['label' => 'Lampu Navigasi', 'index' => 3], - ['label' => 'Sistem Kendali otomatis', 'index' => 4], - ['label' => 'Kompas', 'index' => 5], + [ + 'label' => 'Gps', + 'name' => 'gps', + 'index' => 0, + ], + [ + 'label' => 'Radar', + 'name' => 'radar', + 'index' => 1, + ], + [ + 'label' => 'Radio Komunikasi', + 'name' => 'radio_komunikasi', + 'index' => 2, + ], + [ + 'label' => 'Lampu Navigasi', + 'name' => 'lampu_navigasi', + 'index' => 3, + ], + [ + 'label' => 'Sistem Kendali otomatis', + 'name' => 'sistem_kendali_otomatis', + 'index' => 4, + ], + [ + 'label' => 'Kompas', + 'name' => 'kompas', + 'index' => 5, + ], ]; @endphp @@ -289,12 +507,11 @@
- - @error('bentuk_tanah') - {{ $message }} - @enderror + +
@endforeach @@ -302,10 +519,8 @@
- - @error('deskripsi') - {{ $message }} - @enderror + +
@@ -319,31 +534,51 @@
@php - $inputDataLoaksi = []; - $inputDataLoaksi = [ - ['label' => 'Mesin Utama', 'index' => 0], - ['label' => 'Mesin Bantu', 'index' => 1], - ['label' => 'Pompa Pendingin', 'index' => 2], - ['label' => 'Sistem Pelumasan', 'index' => 3], - ['label' => 'Propeller', 'index' => 4], - ['label' => 'Sistem Kelistrikan', 'index' => 5], + $inputSistemPengerak = [ + [ + 'label' => 'Mesin Utama', + 'name' => 'mesin_utama', + 'index' => 0, + ], + [ + 'label' => 'Mesin Bantu', + 'name' => 'mesin_bantu', + 'index' => 1, + ], + [ + 'label' => 'Pompa Pendingin', + 'name' => 'pompa_pendingin', + 'index' => 2, + ], + [ + 'label' => 'Sistem Pelumasan', + 'name' => 'sistem_pelumasan', + 'index' => 3, + ], + [ + 'label' => 'Propeller', + 'name' => 'propeller', + 'index' => 4, + ], + [ + 'label' => 'Sistem Kelistrikan', + 'name' => 'sistem_kelistrikan', + 'index' => 5, + ], ]; @endphp - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) + @if (count($inputSistemPengerak) > 0) + @foreach ($inputSistemPengerak as $item)
- - - @error('bentuk_tanah') - {{ $message }} - @enderror +
@endforeach @@ -351,10 +586,8 @@
- - @error('deskripsi') - {{ $message }} - @enderror + +
@@ -368,29 +601,45 @@
@php - $inputDataLoaksi = []; + $inputSistemKelistrikan = []; - $inputDataLoaksi = [ - ['label' => 'Lampu Navigasi', 'index' => 0], - ['label' => 'Sistem Penerangan', 'index' => 1], - ['label' => 'Sistem Panel Distribusi', 'index' => 2], - ['label' => 'Kabel dan Perangkat Pendukung', 'index' => 3], + $inputSistemKelistrikan = [ + [ + 'label' => 'Lampu Navigasi', + 'name' => 'lampu_navigasi', + 'index' => 0, + ], + [ + 'label' => 'Sistem Penerangan', + 'name' => 'sistem_penerangan', + 'index' => 1, + ], + [ + 'label' => 'Sistem Panel Distribusi', + 'name' => 'sistem_panel_distribusi', + 'index' => 2, + ], + [ + 'label' => 'Kabel dan Perangkat Pendukung', + 'name' => 'kabel_perangkat', + 'index' => 3, + ], ]; @endphp - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) + @if (count($inputSistemKelistrikan) > 0) + @foreach ($inputSistemKelistrikan as $item)
- - @error('bentuk_tanah') - {{ $message }} - @enderror + + +
@endforeach @@ -398,10 +647,10 @@
- - @error('deskripsi') - {{ $message }} - @enderror + + + +
@@ -414,19 +663,35 @@
@php - $inputDataLoaksi = []; - $inputDataLoaksi = [ - ['label' => 'Kebersihan Dek Luar', 'index' => 0], - ['label' => 'Tangki Limbah', 'index' => 1], - ['label' => 'Sistem Pengelolaan Limbah', 'index' => 2], - ['label' => 'Pengelolaan Air Ballast', 'index' => 3], + + $inputLinkungan = [ + [ + 'label' => 'Kebersihan Dek Luar', + 'name' => 'kebersihan_dek_luar', + 'index' => 0, + ], + [ + 'label' => 'Tangki Limbah', + 'name' => 'tangki_limbah', + 'index' => 1, + ], + [ + 'label' => 'Sistem Pengelolaan Limbah', + 'name' => 'sistem_pengelolaan_limbah', + 'index' => 2, + ], + [ + 'label' => 'Pengelolaan Air Ballast', + 'name' => 'pengelolaan_air_ballast', + 'index' => 3, + ], ]; @endphp - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) + @if (count($inputLinkungan) > 0) + @foreach ($inputLinkungan as $item)
@@ -434,9 +699,9 @@ - @error('bentuk_tanah') - {{ $message }} - @enderror + + +
@endforeach @@ -444,11 +709,78 @@
- - @error('deskripsi') - {{ $message }} - @enderror + + + +
+ + +
+
+
+

Analisis Fakta

+
+
+
+ +
+
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + + + +
+ +
+
+ + + +
+ +
+ +
+ +
+
+
diff --git a/resources/views/surveyor/components/kendaraan.blade.php b/resources/views/surveyor/components/kendaraan.blade.php index 3112bd8..1cb535a 100644 --- a/resources/views/surveyor/components/kendaraan.blade.php +++ b/resources/views/surveyor/components/kendaraan.blade.php @@ -46,11 +46,9 @@
- - - @error('bentuk_tanah') - {{ $message }} - @enderror + +
@@ -77,23 +75,21 @@
- - @error('bentuk_tanah') - {{ $message }} - @enderror + +
- - @error('bentuk_tanah') - {{ $message }} - @enderror + +
@@ -132,15 +128,51 @@ @php $inputDataJaminan = [ - ['label' => 'Nama pemilik','index' => 0], - ['label' => 'Nomor polisi', 'index' => 1], - ['label' => 'Merek', 'index' => 2], - ['label' => 'jenis', 'index' => 3], - ['label' => 'Warna', 'index' => 4], - ['label' => 'Nomor Rangka/NIK/VIN', 'index' => 5], - ['label' => 'Nomor Mesin', 'index' => 6], - ['label' => 'Masa Berlaku STNK', 'index' => 7], - ['label' => 'Masa Berlaku Pajak', 'index' => 8], + [ + 'label' => 'Nama pemilik', + 'name' => 'nama_pemilik', + 'index' => 0, + ], + [ + 'label' => 'Nomor polisi', + 'name' => 'nomor_polisi_jaminan', + 'index' => 1, + ], + [ + 'label' => 'Merek', + 'name' => 'merek_jaminan', + 'index' => 2, + ], + [ + 'label' => 'jenis', + 'name' => 'jenis', + 'index' => 3, + ], + [ + 'label' => 'Warna', + 'name' => 'warna_jaminan', + 'index' => 4, + ], + [ + 'label' => 'Nomor Rangka/NIK/VIN', + 'name' => 'nomor_rangka_jaminan', + 'index' => 5, + ], + [ + 'label' => 'Nomor Mesin', + 'name' => 'nomor_mesin_jaminan', + 'index' => 6, + ], + [ + 'label' => 'Masa Berlaku STNK', + 'name' => 'masa_stnk', + 'index' => 7, + ], + [ + 'label' => 'Masa Berlaku Pajak', + 'name' => 'masa_pajak', + 'index' => 8, + ], ]; @endphp @@ -175,9 +207,9 @@ @foreach ($saranaPelengkap as $item)
- +
- - @error('hadapMataAngin') - {{ $message }} - @enderror + + +
@@ -210,9 +241,9 @@ @foreach ($permohonan->debiture->documents as $item) @php $details = json_decode($item->detail); - $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + $nomo_polisi = isset($details['nomo_polisi']) ? $details['nomo_polisi'] : 'N/A'; @endphp -

{{ $luas_tanah }}

+

{{ $nomo_polisi }}

@endforeach @endif
@@ -248,9 +279,9 @@ @foreach ($permohonan->debiture->documents as $item) @php $details = json_decode($item->detail); - $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + $merek = isset($details['merek']) ? $details['merek'] : 'N/A'; @endphp -

{{ $luas_tanah }}

+

{{ $merek }}

@endforeach @endif
@@ -273,7 +304,7 @@ value="{{ old('merek_tidak_sesuai', $forminspeksi['merek_tidak_sesuai'] ?? '') }}" style="{{ old('merek', $forminspeksi['merek'] ?? '') == 'tidak sesuai' ? '' : 'display: none;' }}">
- +
@@ -287,9 +318,9 @@ @foreach ($permohonan->debiture->documents as $item) @php $details = json_decode($item->detail); - $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + $warna = isset($details['warna']) ? $details['warna'] : 'N/A'; @endphp -

{{ $luas_tanah }}

+

{{ $warna }}

@endforeach @endif
@@ -326,9 +357,9 @@ @foreach ($permohonan->debiture->documents as $item) @php $details = json_decode($item->detail); - $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + $nomor_rangka = isset($details['nomor_rangka']) ? $details['nomor_rangka'] : 'N/A'; @endphp -

{{ $luas_tanah }}

+

{{ $nomor_rangka }}

@endforeach @endif
@@ -364,9 +395,9 @@ @foreach ($permohonan->debiture->documents as $item) @php $details = json_decode($item->detail); - $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + $nomor_mesin = isset($details['nomor_mesin']) ? $details['nomor_mesin'] : 'N/A'; @endphp -

{{ $luas_tanah }}

+

{{ $nomor_mesin }}

@endforeach @endif
@@ -400,9 +431,9 @@
- + - +
@@ -572,12 +603,12 @@ @endif -
- - + +
@@ -586,10 +617,113 @@
- +
+ + +
+
+
+

Analisis Fakta

+
+
+
+ +
+
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + +
+ +
+
+ + + +
+ + +
+
+ + +
+ +
+
+ + + +
+ +
+ +
+ +
+ +
+
+ + + +
+ +
+ +
+ +
+
+
diff --git a/resources/views/surveyor/components/lokasi-jaminan.blade.php b/resources/views/surveyor/components/lokasi-jaminan.blade.php index 32397f1..bfcd473 100644 --- a/resources/views/surveyor/components/lokasi-jaminan.blade.php +++ b/resources/views/surveyor/components/lokasi-jaminan.blade.php @@ -8,13 +8,13 @@ $inputDataLoaksi = []; $inputDataLoaksi = [ - ['label' => 'Nama Jalan', 'index' => 0, 'name' => 'nama_jalan', 'value' => old('lokasi_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_jalan : '')], + ['label' => 'Nama Jalan', 'index' => 0, 'name' => 'nama_jalan', 'value' => old('nama_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_jalan : '')], ['label' => 'Perumahan/Gang', 'index' => 1, 'name' => 'perumahan_gang', 'value' => old('lokasi_perumahan_gang', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_perumahan_gang : '')], - ['label' => 'Blok/Nomor', 'index' => 2, 'name' => 'blok_nomor', 'value' => old('lokasi_blok_nomor', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_blok_nomor : '')], - ['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/Kotamadya', 'index' => 5, 'name' => 'kota_kotamadya', '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 : '')], + ['label' => 'Blok/Nomor', 'index' => 2, 'name' => 'blok_nomor', 'value' => old('blok_nomor', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_blok_nomor : '')], + ['label' => 'Desa/Kelurahan', 'index' => 3, 'name' => 'desa_kelurahan', 'value' => old('desa_kelurahan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_desa_kelurahan : '')], + ['label' => 'Kecamatan', 'index' => 4, 'name' => 'kecamatan' , 'value' => old('kecamatan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_kecamatan : '')], + ['label' => 'Kota/Kotamadya', 'index' => 5, 'name' => 'kota_madya', 'value' => old('kota_madya', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_kota_kotamadya : '')], + ['label' => 'Provinsi', 'index' => 6, 'name' => 'provinsi', 'value' => old('provinsi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_provinsi : '')], ]; @endphp diff --git a/resources/views/surveyor/components/mesin.blade.php b/resources/views/surveyor/components/mesin.blade.php index ed75ce2..1068573 100644 --- a/resources/views/surveyor/components/mesin.blade.php +++ b/resources/views/surveyor/components/mesin.blade.php @@ -1,99 +1,188 @@ - - -
-
-

Identitas Debitur

-
-
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror +
+
+
+

Order Penilaian

-
- {{-- lokasi jaminan --}} - @include('lpj::surveyor.components.lokasi-jaminan') -
+
- -
-
-

Data Data Jaminan

-
-
-
- -
- - - @error('hadapMataAngin') - {{ $message }} - @enderror -
-
- - @php - $inputDataJaminan = []; - - $inputDataJaminan = [ - ['label' => 'Tipe/Model', 'index' => 0], - ['label' => 'Merek', 'index' => 1], - ['label' => 'Tahun Pembuatan', 'index' => 2], - ['label' => 'Negara Pembuat', 'index' => 3], - ['label' => 'Kondisi Mesin', 'index' => 4], - ]; - @endphp - - @if (count($inputDataJaminan) > 0) - @foreach ($inputDataJaminan as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
- @endforeach - @endif - -
- -
- - @error('deskripsi') - {{ $message }} - @enderror
-
-
+
+ +
+

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

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

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

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

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

+ @endif +
+
+ +
+
+
+
+

Identitas Debitur

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

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

+ @endif +
+
+ +
+ +
+ + + + +
+
+
+ +
+ + + + + +
+
+
+ + {{-- lokasi jaminan --}} + @include('lpj::surveyor.components.lokasi-jaminan') +
+
+ + +
+
+
+

Data Data Jaminan

+
+
+
+ +
+ + + @error('hadapMataAngin') + {{ $message }} + @enderror +
+
+ + @php + $inputDataJaminan = []; + + $inputDataJaminan = [ + [ + 'label' => 'Tipe/Model', + 'name' => 'tipe_model', + 'index' => 0, + ], + [ + 'label' => 'Merek', + 'name' => 'merek', + 'index' => 1, + ], + [ + 'label' => 'Tahun Pembuatan', + 'name' => 'tahun_pembuatan', + 'index' => 2, + ], + [ + 'label' => 'Negara Pembuat', + 'name' => 'negara_pembuat', + 'index' => 3, + ], + [ + 'label' => 'Kondisi Mesin', + 'name' => 'kondisi_mesin', + 'index' => 4, + ], + ]; + @endphp + + @if (count($inputDataJaminan) > 0) + @foreach ($inputDataJaminan as $item) + +
+ +
+ + + + + +
+
+ @endforeach + @endif + +
+ +
+ + @error('deskripsi') + {{ $message }} + @enderror +
+
+
+ +
+ +
+
+
diff --git a/resources/views/surveyor/components/pesawat.blade.php b/resources/views/surveyor/components/pesawat.blade.php index 26aa8db..33a7b59 100644 --- a/resources/views/surveyor/components/pesawat.blade.php +++ b/resources/views/surveyor/components/pesawat.blade.php @@ -1,580 +1,928 @@ -
-
-

Identitas Debitur

-
+
+
-
- -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror +
+

Order Penilaian

-
-
- -
- - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
+
-
- - {{-- lokasi jaminan --}} - @include('lpj::surveyor.components.lokasi-jaminan') -
- - -
-
-

Data Data Umum

-
-
-
- -
- - - @error('hadapMataAngin') - {{ $message }} - @enderror +
+
+
+ +
+

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

+
-
-
- -
- - - @error('hadapMataAngin') - {{ $message }} - @enderror +
-
-
- -
- - - @error('hadapMataAngin') - {{ $message }} - @enderror -
-
- - @php - $inputDataJaminan = []; - - $inputDataJaminan = [ - ['label' => 'Nama Pesawat', 'index' => 0], - ['label' => 'Model', 'index' => 1], - ['label' => 'Nomor Registrasi', 'index' => 2], - ['label' => 'Tahun Pembuatan', 'index' => 3], - ['label' => 'Certificate of Airworthines (C of A)', 'index' => 4], - [ - 'label' => 'Certificate of Registration (C of A)', - 'index' => 5, - ], - - [ - 'label' => 'Total Service Hours (TSN - Total Time Since New)', - 'index' => 6, - ], - [ - 'label' => 'Total Service Cycles (CSN - Cycle Since New)', - 'index' => 7, - ], - ]; - @endphp - - @if (count($inputDataJaminan) > 0) - @foreach ($inputDataJaminan as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
- @endforeach - @endif +
+ +
-
-
-

Maintainence Data

-
-
+
+
+
+

Identitas Debitur

+
+
- @php - $inputMaintenece = []; - $inputMaintenece = [ - ['label' => 'Last A Check', 'index' => 0], - ['label' => 'Next A Check', 'index' => 1], - ['label' => 'Last B Check', 'index' => 2], - ['label' => 'Next B Check', 'index' => 3], - ['label' => 'Last C Check', 'index' => 4], - ['label' => 'Next C Check', 'index' => 5], - ['label' => 'Next D Check (Overhaul)', 'index' => 6], - ['label' => 'Last D Check (Overhaul)', 'index' => 7], - ]; - @endphp - - @if (count($inputMaintenece) > 0) - @foreach ($inputMaintenece as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
+
+ +
+ @if (isset($permohonan->debiture->name)) +

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

+ @endif
- @endforeach - @endif +
-
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + + +
+
+
+ +
+ + + +
-
+ {{-- lokasi jaminan --}} + @include('lpj::surveyor.components.lokasi-jaminan') +
+
+ + +
+
+ + +
+

Data Data Umum

+
+
+
+ +
+ + + @error('hadapMataAngin') + + @enderror +
+
+ +
+ +
+ + + @error('hadapMataAngin') + + @enderror +
+
+ +
+ +
+ + + @error('hadapMataAngin') + + @enderror +
+
+ + @php + $inputDataJaminan = []; + + $inputDataJaminan = [ + [ + 'label' => 'Nama Pesawat', + 'name' => 'nama_pesawat', + 'index' => 0, + ], + [ + 'label' => 'Model', + 'name' => 'model', + 'index' => 1, + ], + [ + 'label' => 'Nomor Registrasi', + 'name' => 'nomor_registrasi', + 'index' => 2, + ], + [ + 'label' => 'Tahun Pembuatan', + 'name' => 'tahun_pembuatan', + 'index' => 3, + ], + [ + 'label' => 'Certificate of Airworthines (C of A)', + 'name' => 'certificate_of_airworthines', + 'index' => 4, + ], + [ + 'label' => 'Certificate of Registration (C of A)', + 'name' => 'certificate_of_registration', + 'index' => 5, + ], + + [ + 'label' => 'Total Service Hours (TSN - Total Time Since New)', + 'name' => 'total_service_hours', + 'index' => 6, + ], + [ + 'label' => 'Total Service Cycles (CSN - Cycle Since New)', + 'name' => 'total_service_cycles', + 'index' => 7, + ], + ]; + @endphp + + @if (count($inputDataJaminan) > 0) + @foreach ($inputDataJaminan as $item) + +
+ +
+ + + @error('bentuk_tanah') + + @enderror +
+
+ @endforeach + @endif +
+
+
+ + +
+
+ +
+

Maintainence Data

+
+
+ + @php + + $inputMaintenece = [ + [ + 'label' => 'Last A Check', + 'name' => 'last_a_check', + 'index' => 0, + ], + [ + 'label' => 'Next A Check', + 'name' => 'next_a_check', + 'index' => 1, + ], + [ + 'label' => 'Last B Check', + 'name' => 'last_b_check', + 'index' => 2, + ], + [ + 'label' => 'Next B Check', + 'name' => 'next_b_check', + 'index' => 3, + ], + [ + 'label' => 'Last C Check', + 'name' => 'last_c_check', + 'index' => 4, + ], + [ + 'label' => 'Next C Check', + 'name' => 'next_c_check', + 'index' => 5, + ], + [ + 'label' => 'Next D Check (Overhaul)', + 'name' => 'next_d_check', + 'index' => 6, + ], + [ + 'label' => 'Last D Check (Overhaul)', + 'name' => 'last_d_check', + 'index' => 7, + ], + ]; + @endphp + + @if (count($inputMaintenece) > 0) + @foreach ($inputMaintenece as $item) + +
+ +
+ + + + +
+
+ @endforeach + @endif + +
+ +
+ + + + +
+
+
+ +
-
-
-

Fungsi konfigurasi

-
-
+
+
- @php - $inputFungsiKonfigurasi = []; - $inputFungsiKonfigurasi = [ - ['label' => 'Instrument Landing System (ILS)', 'index' => 0], - ['label' => 'Traffic Collision Avoidance System (TCAS)', 'index' => 1], - ['label' => 'Windshear', 'index' => 2], - ['label' => 'Electronic Flight Instrument System (EFIS)', 'index' => 3], - ['label' => 'Winglets ', 'index' => 4], - ]; - @endphp - @if (count($inputFungsiKonfigurasi) > 0) - @foreach ($inputFungsiKonfigurasi as $item) - -
- -
- +
+

Fungsi konfigurasi

+
+
- @error('bentuk_tanah') - {{ $message }} - @enderror + @php + + $inputFungsiKonfigurasi = [ + [ + 'label' => 'Instrument Landing System (ILS)', + 'name' => 'instrument_landing_system', + 'index' => 0, + ], + [ + 'label' => 'Traffic Collision Avoidance System (TCAS)', + 'name' => 'traffic_collision_avoidance_system', + 'index' => 1, + ], + [ + 'label' => 'Windshear', + 'name' => 'windshear', + 'index' => 2, + ], + [ + 'label' => 'Electronic Flight Instrument System (EFIS)', + 'name' => 'electronic_flight', + 'index' => 3, + ], + [ + 'label' => 'Winglets ', + 'name' => 'winglets', + 'index' => 4, + ], + ]; + @endphp + + @if (count($inputFungsiKonfigurasi) > 0) + @foreach ($inputFungsiKonfigurasi as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + +
-
-
-
-

Kondisi Kabin pesawat

-
-
+
+
+
+

Kondisi Kabin pesawat

+
+
- @php - $inputMaintenece = []; - $inputMaintenece = [ - ['label' => 'Maksimal Penumpang', 'index' => 0], - ['label' => 'Jumlah Kursi', 'index' => 1], - ['label' => 'Kursi Pramugari/Pramugara', 'index' => 2], - ['label' => 'Kartu Fitur keselamatan', 'index' => 3], - ['label' => 'Sabuk Pengaman', 'index' => 4], - ['label' => 'Lampu Kabin', 'index' => 5], - ['label' => 'Lampu Pintu Keluar', 'index' => 6], - ['label' => 'Intercom Kabin', 'index' => 7], - ]; - @endphp + @php + $kondisiKabin = [ + [ + 'label' => 'Maksimal Penumpang', + 'name' => 'maksimal_penumpang', + 'index' => 0, + ], + [ + 'label' => 'Jumlah Kursi', + 'name' => 'jumlah_kursi', + 'index' => 1, + ], + [ + 'label' => 'Kursi Pramugari/Pramugara', + 'name' => 'kursi_pramugari_pramugara', + 'index' => 2, + ], + [ + 'label' => 'Kartu Fitur keselamatan', + 'name' => 'kartu_fitur_keselamatan', + 'index' => 3, + ], + [ + 'label' => 'Sabuk Pengaman', + 'name' => 'sabuk_pengaman', + 'index' => 4, + ], + [ + 'label' => 'Lampu Kabin', + 'name' => 'lampu_kabin', + 'index' => 5, + ], + [ + 'label' => 'Lampu Pintu Keluar', + 'name' => 'lampu_pintu_keluar', + 'index' => 6, + ], + [ + 'label' => 'Intercom Kabin', + 'name' => 'intercom_kabin', + 'index' => 7, + ], + ]; + @endphp - @if (count($inputMaintenece) > 0) - @foreach ($inputMaintenece as $item) - -
- -
- + @if (count($kondisiKabin) > 0) + @foreach ($kondisiKabin as $item) + +
+ +
+ - @error('bentuk_tanah') - {{ $message }} - @enderror + + + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + + +
-
-
-
-

Kondisi Struktur Pesawat

-
-
+
+
+
+

Kondisi Struktur Pesawat

+
+
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Badan pesawat', 'index' => 0], - ['label' => 'Sayap Pesawat', 'index' => 1], - ['label' => 'Ekor peswat', 'index' => 2], - ['label' => 'Landing Gear', 'index' => 3], - ['label' => 'Sabuk Pengaman', 'index' => 4], - ['label' => 'Sistem Pengelasan', 'index' => 5], - ]; - @endphp + @php - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- + $kondisiStrukturPesawat = [ + [ + 'label' => 'Badan pesawat', + 'name' => 'badan_pesawat', + 'index' => 0, + ], + [ + 'label' => 'Sayap Pesawat', + 'name' => 'sayap_pesawat', + 'index' => 1, + ], + [ + 'label' => 'Ekor peswat', + 'name' => 'ekor_pesawat', + 'index' => 2, + ], + [ + 'label' => 'Landing Gear', + 'name' => 'landing_gear', + 'index' => 3, + ], + [ + 'label' => 'Sabuk Pengaman', + 'name' => 'sabuk_pengaman', + 'index' => 4, + ], + [ + 'label' => 'Sistem Pengelasan', + 'name' => 'sistem_pengelasan', + 'index' => 5, + ], + ]; + @endphp - @error('bentuk_tanah') - {{ $message }} - @enderror + @if (count($kondisiStrukturPesawat) > 0) + @foreach ($kondisiStrukturPesawat as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + +
-
-
-
-

Fungsi Navigasi dan Komunikasi

-
-
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Gps', 'index' => 0], - ['label' => 'Radar', 'index' => 1], - ['label' => 'Radio Komunikasi', 'index' => 2], - ['label' => 'Lampu Navigasi', 'index' => 3], - ['label' => 'Sistem Autopilot', 'index' => 4], - ]; - @endphp - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- +
+
+
+

Fungsi Navigasi dan Komunikasi

+
+
+ @php - @error('bentuk_tanah') - {{ $message }} - @enderror + $fungsiNavigasi = [ + [ + 'label' => 'Gps', + 'name' => 'gps', + 'index' => 0, + ], + [ + 'label' => 'Radar', + 'name' => 'radar', + 'index' => 1, + ], + [ + 'label' => 'Radio Komunikasi', + 'name' => 'radio_komunikasi', + 'index' => 2, + ], + [ + 'label' => 'Lampu Navigasi', + 'name' => 'lampu_navigasi', + 'index' => 3, + ], + [ + 'label' => 'Sistem Autopilot', + 'name' => 'sistem_autopilot', + 'index' => 4, + ], + ]; + @endphp + @if (count($fungsiNavigasi) > 0) + @foreach ($fungsiNavigasi as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif +
+ +
+ -
- -
- - @error('deskripsi') - {{ $message }} - @enderror + + +
-
-
-
-

Kondisi Sistem Bahan Bakar dan Hidrolic

-
-
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Tangki Bahan Bakar', 'index' => 0], - ['label' => 'Saluran & Pipa Bahan Bakar', 'index' => 1], - ['label' => 'Pompa Bahan Bakar', 'index' => 2], - ['label' => 'Sistem Hidrolik Utama', 'index' => 3], - ['label' => 'Sistem Pendigin Hidrolik', 'index' => 4], - ]; - @endphp - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- +
+
+
+

Kondisi Sistem Bahan Bakar dan Hidrolic

+
+
+ @php - @error('bentuk_tanah') - {{ $message }} - @enderror + $kondisiSistem = [ + [ + 'label' => 'Tangki Bahan Bakar', + 'name' => 'tangki_bahan_bakar', + 'index' => 0, + ], + [ + 'label' => 'Saluran & Pipa Bahan Bakar', + 'name' => 'saluran_pipa_bahan_bakar', + 'index' => 1, + ], + [ + 'label' => 'Pompa Bahan Bakar', + 'name' => 'pompa_bahan_bakar', + 'index' => 2, + ], + [ + 'label' => 'Sistem Hidrolik Utama', + 'name' => 'sistem_hidrolik_utama', + 'index' => 3, + ], + [ + 'label' => 'Sistem Pendigin Hidrolik', + 'name' => 'sistem_pendigin_hidrolik', + 'index' => 4, + ], + ]; + @endphp + @if (count($kondisiSistem) > 0) + @foreach ($kondisiSistem as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + + +
-
-
-
-

Kondisi Mesin dan Propulis

-
-
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Mesin Utama', 'index' => 0], - ['label' => 'Sistem Pendorong', 'index' => 1], - ['label' => 'Sistem Pendigin Mesin', 'index' => 2], - ['label' => 'Sistem pelumasan', 'index' => 3], - ['label' => 'Filter dan Perangkat Pendukung', 'index' => 4], - ]; - @endphp - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- +
+
+
+

Kondisi Mesin dan Propulis

+
+
+ @php - @error('bentuk_tanah') - {{ $message }} - @enderror + $kondisiMesin = [ + [ + 'label' => 'Mesin Utama', + 'name' => 'mesin_utama', + 'index' => 0, + ], + [ + 'label' => 'Sistem Pendorong', + 'name' => 'sistem_pendorong', + 'index' => 1, + ], + [ + 'label' => 'Sistem Pendigin Mesin', + 'name' => 'sistem_pendigin_mesin', + 'index' => 2, + ], + [ + 'label' => 'Sistem pelumasan', + 'name' => 'sistem_pelumasan', + 'index' => 3, + ], + [ + 'label' => 'Filter dan Perangkat Pendukung', + 'name' => 'filter_dan_perangkat_pendukung', + 'index' => 4, + ], + ]; + @endphp + @if (count($kondisiMesin) > 0) + @foreach ($kondisiMesin as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + +
-
-
-
-

Fungsi keselamatan dan darurat

-
-
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Jaket pelampung', 'index' => 0], - ['label' => 'Pintu darurat', 'index' => 1], - ['label' => 'Alat Pemadaman Kebakaran', 'index' => 2], - ['label' => 'Sistem Alaram Darurat', 'index' => 3], - ['label' => 'Sekoci', 'index' => 4], - ['label' => 'Masker Oksigen', 'index' => 4], - ['label' => 'Sabuk Pengaman', 'index' => 4], - ]; - @endphp - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- +
+
+
+

Fungsi keselamatan dan darurat

+
+
+ @php - @error('bentuk_tanah') - {{ $message }} - @enderror + $fungsiKeselamatan = [ + [ + 'label' => 'Jaket pelampung', + 'name' => 'jaket_pelampung', + 'index' => 0, + ], + [ + 'label' => 'Pintu darurat', + 'name' => 'pintu_darurat', + 'index' => 1, + ], + [ + 'label' => 'Alat Pemadaman Kebakaran', + 'name' => 'alat_pemadaman_kebakaran', + 'index' => 2, + ], + [ + 'label' => 'Sistem Alaram Darurat', + 'name' => 'sistem_alaram_darurat', + 'index' => 3, + ], + [ + 'label' => 'Sekoci', + 'name' => 'sekoci', + 'index' => 4, + ], + [ + 'label' => 'Masker Oksigen', + 'name' => 'masker_oxigen', + 'index' => 5, + ], + [ + 'label' => 'Sabuk Pengaman', + 'name' => 'sabuk_pengaman', + 'index' => 6, + ], + ]; + @endphp + @if (count($fungsiKeselamatan) > 0) + @foreach ($fungsiKeselamatan as $item) + +
+ +
+ + + + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + + + +
-
-
-
-

Interior dan Sistem Pendukung Kabin

-
-
- @php - $inputStrukturPeswat = []; - $inputStrukturPeswat = [ - ['label' => 'Sistem ventilasi & AC', 'index' => 0], - ['label' => 'Sistem Penerangan Kabin', 'index' => 1], - ['label' => 'Panel Informasi Penumpang', 'index' => 2], - ['label' => 'Sistem Hiburan Kabin', 'index' => 3], - ]; - @endphp - @if (count($inputStrukturPeswat) > 0) - @foreach ($inputStrukturPeswat as $item) - -
- -
- +
+
+
+

Interior dan Sistem Pendukung Kabin

+
+
+ @php - @error('bentuk_tanah') - {{ $message }} - @enderror + $inputStrukturPeswat = [ + [ + 'label' => 'Sistem ventilasi & AC', + 'name' => 'sistem_ventilasi_ac', + 'index' => 0, + ], + [ + 'label' => 'Sistem Penerangan Kabin', + 'name' => 'sistem_penerangan_kabin', + 'index' => 1, + ], + [ + 'label' => 'Panel Informasi Penumpang', + 'name' => 'panel_informasi_penumpang', + 'index' => 2, + ], + [ + 'label' => 'Sistem Hiburan Kabin', + 'name' => 'sistem_hiburan_kabin', + 'index' => 3, + ], + ]; + @endphp + @if (count($inputStrukturPeswat) > 0) + @foreach ($inputStrukturPeswat as $item) + +
+ +
+ + +
-
- @endforeach - @endif + @endforeach + @endif -
- -
- - @error('deskripsi') - {{ $message }} - @enderror +
+ +
+ + +
- +
+ + +
+
+
+

Analisis Fakta

+
+
+
+ +
+
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + + + +
+ +
+
+ + + +
+ +
+ +
+ +
+
diff --git a/resources/views/surveyor/components/tanah.blade.php b/resources/views/surveyor/components/tanah.blade.php index 717ba96..324f94e 100644 --- a/resources/views/surveyor/components/tanah.blade.php +++ b/resources/views/surveyor/components/tanah.blade.php @@ -316,9 +316,6 @@ - - - function toggleJenisAsset(params) { const inputData = document.querySelector(`input[name="${params}"]:checked`); const luasTanah = document.getElementById('jenis_asset'); @@ -347,25 +344,5 @@ const selectElement = document.getElementById('selectTidakSesuai'); selectElement.style.display = showSelect ? 'block' : 'none'; } - - - const perwakilanContainer = document.getElementById('perwakilan'); - const addPerwakilanButton = document.getElementById('addPerwakilan'); - - // Tambahkan event listener untuk tombol "Tambah" - addPerwakilanButton.addEventListener('click', function() { - // Clone elemen ".perwakilan" - const newDiv = perwakilanContainer.querySelector('.perwakilan').cloneNode(true); - - newDiv.querySelector('input').value = ''; - const deleteButton = newDiv.querySelector('.delete-button'); - deleteButton.style.display = 'inline-block'; - - deleteButton.addEventListener('click', function() { - newDiv.remove(); - }); - - perwakilanContainer.appendChild(newDiv); - }); @endpush diff --git a/resources/views/surveyor/detail.blade.php b/resources/views/surveyor/detail.blade.php index e0497a1..ae98ad0 100644 --- a/resources/views/surveyor/detail.blade.php +++ b/resources/views/surveyor/detail.blade.php @@ -18,7 +18,7 @@ @endpush
- + @include('lpj::component.detail-jaminan',['backLink'=>'surveyor.index']) @@ -36,17 +36,17 @@ FOTO - {{-- DATA - PEMBANDING --}} + PEMBANDING
@if (request()->has('form') && request('form') == 'denah') @include('lpj::surveyor.components.card-tambah') - {{-- @elseif(request()->has('form') && request('form') == 'data-pembanding') - @include('lpj::surveyor.components.data-pembanding') --}} + @elseif(request()->has('form') && request('form') == 'data-pembanding') + @include('lpj::surveyor.components.card-tambah') @elseif(request()->has('form') && request('form') == 'foto') @include('lpj::surveyor.components.card-tambah') @else @@ -56,9 +56,7 @@