diff --git a/app/Http/Controllers/SurveyorController.php b/app/Http/Controllers/SurveyorController.php index 0c936a0..48a5066 100644 --- a/app/Http/Controllers/SurveyorController.php +++ b/app/Http/Controllers/SurveyorController.php @@ -35,6 +35,7 @@ use Modules\Lpj\Models\FotoJaminan; use Modules\Lpj\Models\Lingkungan; use Modules\Lpj\Models\LantaiUnit; use Modules\Lpj\Models\Lantai; +use Modules\Lpj\Models\Teams; use Modules\Lpj\Models\ViewUnit; use Modules\Lpj\Models\ObjekJaminan; use Modules\Lpj\Models\RuteJaminan; @@ -149,41 +150,45 @@ class SurveyorController extends Controller /** * Store form inspeksi. */ - public function store(FormSurveyorRequest $request) + public function store(Request $request) { - $validatedData = $request->validated(); - DB::beginTransaction(); - try { - $analisa = Analisa::create($validatedData); - if ($analisa) { - $validatedData['analisa_id'] = $analisa->id; + dd($request); - switch ($validatedData['action']) { - case 'tanah_bangunan': - $this->handleTanahBangunan($validatedData, $request); - break; - case 'unit': - $this->handleUnit($validatedData); - break; - default: - throw new \Exception('Invalid action type'); - } - AnalisaLingkungan::create($validatedData); - $validatedData['foto_tempat'] = $this->uploadFile($request->file('foto_tempat'), 'foto_tempat'); - AnalisaFakta::create($validatedData); - } + // $validatedData = $request->validated(); + // DB::beginTransaction(); + // try { + // $analisa = Analisa::create($validatedData); - DB::commit(); - return redirect()->route('surveyor.show', [ - 'id' => $validatedData['permohonan_id'], - 'form' => 'inspeksi' - ])->with('success', 'Data form surveyor berhasil disimpan'); - } catch (Exception $e) { - DB::rollback(); - return response()->json(['error' => 'Failed to save data', 'details' => $e->getMessage()], 500); - } + // if ($analisa) { + // $validatedData['analisa_id'] = $analisa->id; + + // switch ($validatedData['action']) { + // case 'tanah_bangunan': + // $this->handleTanahBangunan($validatedData, $request); + // break; + // case 'unit': + // $this->handleUnit($validatedData); + // break; + // default: + // throw new \Exception('Invalid action type'); + // } + + // AnalisaLingkungan::create($validatedData); + // $validatedData['foto_tempat'] = $this->uploadFile($request->file('foto_tempat'), 'foto_tempat'); + // AnalisaFakta::create($validatedData); + // } + + // DB::commit(); + // return redirect()->route('surveyor.show', [ + // 'id' => $validatedData['permohonan_id'], + // 'form' => 'inspeksi' + // ])->with('success', 'Data form surveyor berhasil disimpan'); + // } catch (Exception $e) { + // DB::rollback(); + // return response()->json(['error' => 'Failed to save data', 'details' => $e->getMessage()], 500); + // } } private function handleTanahBangunan(array $validatedData, FormSurveyorRequest $request) @@ -567,8 +572,14 @@ class SurveyorController extends Controller { $permohonan = $this->getPermohonanJaminanId($id, $jaminanId); + // Auth::user()->id + $link_url_region = Teams::with('regions', 'teamsUsers') + ->whereHas('teamsUsers', function ($query) { + $query->where('user_id', Auth::user()->id); + })->first(); + $branches = Branch::all(); $provinces = Province::all(); @@ -600,9 +611,6 @@ class SurveyorController extends Controller ->where('jenis_jaminan_id', $jaminanId) ->first(); - // return response()->json($permohonan); - - return view('lpj::surveyor.components.inspeksi', compact( 'analisa', 'permohonan', @@ -626,7 +634,8 @@ class SurveyorController extends Controller 'golMasySekitar', 'tingkatKeramaian', 'laluLintasLokasi', - 'perkerasanJalan' + 'perkerasanJalan', + 'link_url_region' )); } diff --git a/app/Http/Controllers/TeamsController.php b/app/Http/Controllers/TeamsController.php index 9efc3ca..d83184d 100644 --- a/app/Http/Controllers/TeamsController.php +++ b/app/Http/Controllers/TeamsController.php @@ -196,6 +196,9 @@ class TeamsController extends Controller ->leftJoin('teams_users', 'teams.id', '=', 'teams_users.teams_id') ->leftJoin('users', 'teams_users.user_id', '=', 'users.id') ->addSelect('users.id as user_id', 'users.name as user_name'); + + + // Filter pencarian if ($request->has('search') && !empty($request->get('search'))) { diff --git a/app/Http/Requests/FormSurveyorRequest.php b/app/Http/Requests/FormSurveyorRequest.php index b79014a..475960b 100644 --- a/app/Http/Requests/FormSurveyorRequest.php +++ b/app/Http/Requests/FormSurveyorRequest.php @@ -80,10 +80,22 @@ class FormSurveyorRequest extends FormRequest $action = $this->input('action'); switch ($action) { - case 'tanah_bangunan': + case 'tanah': return $this->getTanahBangunanRules(); case 'unit': return $this->getUnitRules(); + case 'kapal': + return $this->getUnitRules(); + case 'kendaraan': + return $this->getUnitRules(); + case 'mesin': + return $this->getUnitRules(); + case 'bangunan': + return $this->getTanahBangunanRules(); + case 'tanah_bangunan': + return $this->getTanahBangunanRules(); + case 'alat-berat': + return $this->getUnitRules(); default: return []; } @@ -130,4 +142,40 @@ class FormSurveyorRequest extends FormRequest 'bentuk_unit' => 'required', ]; } + + + + private function getKapalRules():array{ + return [ + 'action' => 'required', + 'kondisi_kapal' => 'required', + 'kondisi_kapal_lain' => 'required', + ]; + } + + public function getKendaraanRules():array{ + return [ + 'action' => 'required', + 'kondisi_kendaraan' => 'required', + 'kondisi_kendaraan_lain' => 'required', + ]; + } + + + public function getMesinRules():array{ + return [ + 'action' => 'required', + 'kondisi_mesin' => 'required', + 'kondisi_mesin_lain' => 'required', + ]; + } + + + public function getAlatBeratRules():array{ + return [ + 'action' => 'required', + 'kondisi_alat_berat' => 'required', + 'kondisi_alat_berat_lain' => 'required', + ]; + } } diff --git a/app/Http/Requests/PenilaianRequest.php b/app/Http/Requests/PenilaianRequest.php index 23b91bf..99e979a 100644 --- a/app/Http/Requests/PenilaianRequest.php +++ b/app/Http/Requests/PenilaianRequest.php @@ -25,8 +25,6 @@ class PenilaianRequest extends FormRequest ]; } - - return [ 'jenis_penilaian_id' => 'required|max:255', 'teams_id' => 'required|max:255', diff --git a/app/Http/Requests/RegionRequest.php b/app/Http/Requests/RegionRequest.php index fd9ab1d..250d926 100644 --- a/app/Http/Requests/RegionRequest.php +++ b/app/Http/Requests/RegionRequest.php @@ -14,6 +14,8 @@ class RegionRequest extends FormRequest $rules = [ 'name' => 'required|string|max:255', 'status' => 'nullable|boolean', + 'url' => 'nullable|string|max:255', + 'name_url' => 'nullable|string|max:255', 'authorized_at' => 'nullable|datetime', 'authorized_status' => 'nullable|string|max:1', 'authorized_by' => 'nullable|exists:users,id', diff --git a/app/Models/Regions.php b/app/Models/Regions.php index 28836b5..7b5519c 100644 --- a/app/Models/Regions.php +++ b/app/Models/Regions.php @@ -17,7 +17,7 @@ class Regions extends Model protected $table = 'regions'; protected $fillable = [ - 'code', 'name', 'status', 'authorized_status', 'authorized_at', 'authorized_by' + 'code', 'name', 'status', 'name_url','url','authorized_status', 'authorized_at', 'authorized_by' ]; public function teams(){ diff --git a/database/migrations/2024_10_16_153558_create_analisa_tanah_bangunan_table.php b/database/migrations/2024_10_16_153558_create_analisa_tanah_bangunan_table.php index 585dbf4..2c0cf23 100644 --- a/database/migrations/2024_10_16_153558_create_analisa_tanah_bangunan_table.php +++ b/database/migrations/2024_10_16_153558_create_analisa_tanah_bangunan_table.php @@ -20,7 +20,7 @@ return new class extends Migration $table->string('kontur_tanah'); $table->string('ketinggian_jalan'); $table->string('kontur_jalan'); - $table->string('posis_kavling'); + $table->string('posisi_kavling'); $table->enum('tusuk_sate', ['yes', 'no']); $table->enum('lockland', ['yes', 'no']); $table->string('kondisi_fisik_tanah'); diff --git a/database/migrations/2024_10_31_032940_create_penilai_team_table.php b/database/migrations/2024_10_31_032940_create_penilai_team_table.php index db287b2..fe4f80e 100644 --- a/database/migrations/2024_10_31_032940_create_penilai_team_table.php +++ b/database/migrations/2024_10_31_032940_create_penilai_team_table.php @@ -14,7 +14,7 @@ return new class () extends Migration { $table->id(); $table->unsignedBigInteger('penilaian_id'); $table->unsignedBigInteger('team_id'); - $table->unsignedBigInteger('user_id'); + $table->unsignedBigInteger('user_id')->nullable(); $table->string('role'); $table->boolean('status')->default(true); $table->char('authorized_status', 1)->nullable(); diff --git a/database/migrations/2024_11_08_065701_update_regions_table.php b/database/migrations/2024_11_08_065701_update_regions_table.php new file mode 100644 index 0000000..5c40384 --- /dev/null +++ b/database/migrations/2024_11_08_065701_update_regions_table.php @@ -0,0 +1,30 @@ +string('url')->nullable()->after('name'); + $table->string('name_url')->nullable()->after('url'); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('regions', function (Blueprint $table) { + $table->dropColumn('url'); + $table->dropColumn('name_url'); + }); + } +}; diff --git a/module.json b/module.json index 572fe59..1531970 100644 --- a/module.json +++ b/module.json @@ -567,6 +567,14 @@ "attributes": [], "permission": "", "roles": ["administrator","surveyor"] + }, + { + "title": "Perkerasan jalan", + "path": "basicdata.perkerasan-jalan", + "classes": "", + "attributes": [], + "permission": "", + "roles": ["administrator","surveyor"] } diff --git a/resources/views/region/create.blade.php b/resources/views/region/create.blade.php index ed8ca6f..626414b 100644 --- a/resources/views/region/create.blade.php +++ b/resources/views/region/create.blade.php @@ -49,6 +49,30 @@ @enderror +
+ +
+ + @error('name_url') + {{ $message }} + @enderror +
+
+
+ +
+ + @error('url') + {{ $message }} + @enderror +
+
-
-

Lokasi Jaminan

-
-
- @php - $inputDataLoaksi = []; + {{-- lokasi jaminan --}} + @include('lpj::surveyor.components.lokasi-jaminan') - $inputDataLoaksi = [ - ['label' => 'Nama Jalan', 'index' => 0], - ['label' => 'Perumahan/Gang', 'index' => 1], - ['label' => 'Blok/Nomor', 'index' => 2], - ['label' => 'Desa/Kelurahan', 'index' => 3], - ['label' => 'Kecamatan', 'index' => 4], - ['label' => 'Kota/Kotamadya', 'index' => 5], - ['label' => 'Provinsi', 'index' => 6] - ]; - - @endphp - - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
- @endforeach - @endif -
diff --git a/resources/views/surveyor/components/bangunan.blade.php b/resources/views/surveyor/components/bangunan.blade.php index 524aace..c293814 100644 --- a/resources/views/surveyor/components/bangunan.blade.php +++ b/resources/views/surveyor/components/bangunan.blade.php @@ -1,6 +1,9 @@ {{-- @if ($analisaType == 'tanah_bangunan') --}} -
+
+
+ +

Analisa Bangunan

@@ -29,21 +32,21 @@ -
+
- + {{ $item->name }} + + @endforeach @endif - + +
@error('jenis_bangunan') {{ $message }} @@ -52,21 +55,23 @@
-
+
- + {{ $item->name }} + + @endforeach @endif - + +
+ @error('kondisi_bangunan') {{ $message }} @@ -75,21 +80,24 @@
-
+
- + {{ $item->name }} + + +
@endforeach @endif - +
@error('sifat_bangunan') {{ $message }} @@ -99,32 +107,29 @@
-
+
-
@if (@isset($spekKategoriBagunan)) @foreach ($spekKategoriBagunan as $item) +
- + {{ $spek->name }} + + @endif @endforeach - +
@error('name') {{ $message }} @@ -154,18 +159,21 @@
- + {{ $item->name }} + + +
@endforeach @endif - +
@error('sarana_pelengkap') {{ $message }} @@ -174,6 +182,7 @@
+
{{-- @endif --}} @push('scripts') diff --git a/resources/views/surveyor/components/foto.blade.php b/resources/views/surveyor/components/foto.blade.php index 0293a06..82d7355 100644 --- a/resources/views/surveyor/components/foto.blade.php +++ b/resources/views/surveyor/components/foto.blade.php @@ -5,7 +5,6 @@ @endsection --}} @section('content') -
@@ -516,7 +515,6 @@ - + @endif -
- -
- +
+
-
+ + {{--
+
--}}
@@ -780,7 +557,7 @@
diff --git a/resources/views/surveyor/components/kendaraan.blade.php b/resources/views/surveyor/components/kendaraan.blade.php index a96d64b..093682e 100644 --- a/resources/views/surveyor/components/kendaraan.blade.php +++ b/resources/views/surveyor/components/kendaraan.blade.php @@ -43,43 +43,9 @@
- -
-

Lokasi Jaminan

-
-
- @php - $inputDataLoaksi = []; - - $inputDataLoaksi = [ - ['label' => 'Nama Jalan', 'index' => 0], - ['label' => 'Perumahan/Gang', 'index' => 1], - ['label' => 'Blok/Nomor', 'index' => 2], - ['label' => 'Desa/Kelurahan', 'index' => 3], - ['label' => 'Kecamatan', 'index' => 4], - ['label' => 'Kota/Kotamadya', 'index' => 5], - ['label' => 'Provinsi', 'index' => 6], - ]; - - @endphp - - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
- @endforeach - @endif -
+ + {{-- lokasi jaminan --}} + @include('lpj::surveyor.components.lokasi-jaminan')
diff --git a/resources/views/surveyor/components/lingkungan.blade.php b/resources/views/surveyor/components/lingkungan.blade.php new file mode 100644 index 0000000..a8c105b --- /dev/null +++ b/resources/views/surveyor/components/lingkungan.blade.php @@ -0,0 +1,363 @@ +
+ +
+ + +
+

Analisis Lingkungan

+
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+ +
+
+ @if (isset($perkerasanJalan)) + @foreach ($perkerasanJalan as $item) + + @endforeach + @endif +
+ @error('perkerasan_jalan') + {{ $message }} + @enderror +
+
+ + +
+ +
+ +
+ @if (isset($laluLintasLokasi)) + @foreach ($laluLintasLokasi as $item) + + @endforeach + @endif +
+ @error('lalu_lintas') + {{ $message }} + @enderror +
+
+ + +
+ +
+ +
+ @if (isset($golMasySekitar)) + @foreach ($golMasySekitar as $item) + + @endforeach + @endif +
+ + @error('gol_mas_sekitar') + {{ $message }} + @enderror +
+
+ + +
+ +
+ +
+ @if (isset($tingkatKeramaian)) + @foreach ($tingkatKeramaian as $item) + + @endforeach + @endif +
+ + @error('tingkat_keramaian') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+ @if (isset($konturTanah)) + @foreach ($konturTanah as $item) + + @endforeach + @endif +
+ + @error('terletak_diarea') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+
+ + +
+ +
+ + @error('disekitar_lokasi') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+
+ + +
+ + +
+ + @error('dekatMakam') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+
+ + +
+ + +
+ + @error('dekatTps') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+ @if (isset($konturTanah)) + @foreach ($konturTanah as $item) + + @endforeach + @endif +
+ + @error('merupakan_daerah') + {{ $message }} + @enderror +
+
+ + + +
+ +
+ +
+ @if (isset($konturTanah)) + @foreach ($konturTanah as $item) + + @endforeach + @endif +
+ @error('fasilitas_dekat_object') + {{ $message }} + @enderror +
+
+
+
+
+ + +@push('scripts') + +@endpush diff --git a/resources/views/surveyor/components/lokasi-jaminan.blade.php b/resources/views/surveyor/components/lokasi-jaminan.blade.php new file mode 100644 index 0000000..32397f1 --- /dev/null +++ b/resources/views/surveyor/components/lokasi-jaminan.blade.php @@ -0,0 +1,38 @@ +
+

Lokasi Jaminan

+
+
+ + + @php + + $inputDataLoaksi = []; + $inputDataLoaksi = [ + ['label' => 'Nama Jalan', 'index' => 0, 'name' => 'nama_jalan', 'value' => old('lokasi_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 : '')], + ]; + + @endphp + + @if (count($inputDataLoaksi) > 0) + @foreach ($inputDataLoaksi as $item) + +
+ +
+ + + @error($item['name']) + {{ $message }} + @enderror +
+
+ @endforeach + @endif +
diff --git a/resources/views/surveyor/components/mesin.blade.php b/resources/views/surveyor/components/mesin.blade.php index 81d71c0..ed75ce2 100644 --- a/resources/views/surveyor/components/mesin.blade.php +++ b/resources/views/surveyor/components/mesin.blade.php @@ -16,42 +16,8 @@
-
-

Lokasi Jaminan

-
-
- @php - $inputDataLoaksi = []; - - $inputDataLoaksi = [ - ['label' => 'Nama Jalan', 'index' => 0], - ['label' => 'Perumahan/Gang', 'index' => 1], - ['label' => 'Blok/Nomor', 'index' => 2], - ['label' => 'Desa/Kelurahan', 'index' => 3], - ['label' => 'Kecamatan', 'index' => 4], - ['label' => 'Kota/Kotamadya', 'index' => 5], - ['label' => 'Provinsi', 'index' => 6] - ]; - - @endphp - - @if (count($inputDataLoaksi) > 0) - @foreach ($inputDataLoaksi as $item) - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
- @endforeach - @endif -
+ {{-- lokasi jaminan --}} + @include('lpj::surveyor.components.lokasi-jaminan')
diff --git a/resources/views/surveyor/components/pesawat.blade.php b/resources/views/surveyor/components/pesawat.blade.php new file mode 100644 index 0000000..26aa8db --- /dev/null +++ b/resources/views/surveyor/components/pesawat.blade.php @@ -0,0 +1,580 @@ +
+
+

Identitas Debitur

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

Data Data Umum

+
+
+
+ +
+ + + @error('hadapMataAngin') + {{ $message }} + @enderror +
+
+ +
+ +
+ + + @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

+
+
+ + @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 +
+
+ @endforeach + @endif + +
+ +
+ + @error('deskripsi') + {{ $message }} + @enderror +
+
+
+ +
+ + + +
+
+

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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @endforeach + @endif + +
+ +
+ + @error('deskripsi') + {{ $message }} + @enderror +
+
+
+ +
+ + +
+
+

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 + + @if (count($inputMaintenece) > 0) + @foreach ($inputMaintenece as $item) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @endforeach + @endif + +
+ +
+ + @error('deskripsi') + {{ $message }} + @enderror +
+
+
+ +
+ + +
+
+

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 + + @if (count($inputStrukturPeswat) > 0) + @foreach ($inputStrukturPeswat as $item) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @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) + +
+ +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ @endforeach + @endif + +
+ +
+ + @error('deskripsi') + {{ $message }} + @enderror +
+
+
+ +
diff --git a/resources/views/surveyor/components/tanah.blade.php b/resources/views/surveyor/components/tanah.blade.php index c71af11..80885ff 100644 --- a/resources/views/surveyor/components/tanah.blade.php +++ b/resources/views/surveyor/components/tanah.blade.php @@ -1,248 +1,588 @@ -
-
-

Analisa Tanah

+
+
+
+

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
- - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
- - -
- -
- - - @error('hadapMataAngin') - {{ $message }} - @enderror -
-
- - -
- -
- - - @error('bentuk_tanah') - {{ $message }} - @enderror -
-
- - - -
- -
- - - @error('kontur_tanah') - {{ $message }} - @enderror -
-
- - - -
- -
- - - @error('ketinggian_jalan') - {{ $message }} - @enderror -
-
- - - -
- -
-
- - -
- - @error('kontur_jalan') - {{ $message }} - @enderror -
-
- - -
- -
- - @error('posisi_kavling') - {{ $message }} - @enderror -
-
- - - -
- -
-
- - -
- - @error('tusuk_sate') - {{ $message }} - @enderror -
-
- - -
- -
-
- - -
- @error('lockland') - {{ $message }} - @enderror -
-
- - - -
- -
- - - @error('kondisi_fisik_tanah') - {{ $message }} - @enderror
+ +
+
+
+

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

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

Analisa Tanah

+
+
+ +
+ +
+ @if (isset($permohonan->debiture->documents)) + @foreach ($permohonan->debiture->documents as $item) + @php + $details = json_decode($item->detail); + $luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A'; + @endphp +

{{ $luas_tanah }} m2

+ @endforeach + @endif +
+
+ + + +
+ + + @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+
+ + +
+ +
+
+ + + + + + +
+ + @error('hadapMataAngin') + {{ $message }} + @enderror +
+
+ + + +
+ +
+
+ @if (isset($bentukTanah)) + @foreach ($bentukTanah as $item) + + @endforeach + @endif + +
+ @error('bentuk_tanah') + {{ $message }} + @enderror +
+
+ + +
+ +
+ +
+ @if (isset($konturTanah)) + @foreach ($konturTanah as $item) + + @endforeach + @endif +
+ @error('kontur_tanah') + {{ $message }} + @enderror +
+
+ + + +
+ +
+ + +
+ @if (isset($ketinggianTanah)) + @foreach ($ketinggianTanah as $item) + + @endforeach + @endif +
+ @error('ketinggian_jalan') + {{ $message }} + @enderror +
+
+ + + +
+ +
+
+ + +
+ + @error('kontur_jalan') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+ @if (isset($posisiKavling)) + @foreach ($posisiKavling as $item) + + @endforeach + @endif + +
+ @error('posisi_kavling') + {{ $message }} + @enderror +
+
+ + + +
+ +
+
+ + +
+ + @error('tusuk_sate') + {{ $message }} + @enderror +
+
+ + +
+ +
+
+ + +
+ @error('lockland') + {{ $message }} + @enderror +
+
+ + + +
+ +
+ +
+ @if (isset($kondisiFisikTanah)) + @foreach ($kondisiFisikTanah as $item) + + @endforeach + @endif + +
+ + @error('kondisi_fisik_tanah') + {{ $message }} + @enderror +
+
+
+
+
+ + +@push('scripts') + +@endpush diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.php index f88c30e..2a428af 100644 --- a/routes/breadcrumbs.php +++ b/routes/breadcrumbs.php @@ -547,6 +547,7 @@ $basicDataRoutes = [ 'lantai-unit' => 'Lantai Unit', 'view-unit' => 'View Unit', 'bentuk-unit' => 'Bentuk unit', + 'perkerasan-jalan' => 'Perkerasan jalan' ]; diff --git a/routes/web.php b/routes/web.php index 97e53a4..47f49ad 100644 --- a/routes/web.php +++ b/routes/web.php @@ -294,6 +294,7 @@ Route::middleware(['auth'])->group(function () { 'lantai-unit' => 'Lantai Unit', 'view-unit' => 'View Unit', 'bentuk-unit' => 'Bentuk unit', + 'perkerasan-jalan' => 'Perkerasan jalan', ]; foreach ($headers as $type => $header) {