diff --git a/app/Http/Controllers/PenilaiController.php b/app/Http/Controllers/PenilaiController.php
index 96ddb43..c7000fc 100644
--- a/app/Http/Controllers/PenilaiController.php
+++ b/app/Http/Controllers/PenilaiController.php
@@ -129,6 +129,16 @@ class PenilaiController extends Controller
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
+ Penilai::updateOrCreate(
+ [
+ 'permohonan_id' => $permohonanId,
+ 'dokument_id' => $documentId,
+ 'inspeksi_id' => $inspeksiId,
+ ],
+ [
+ 'type_penilai' => 'resume',
+ ]
+ );
$resume = Penilai::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
@@ -157,6 +167,16 @@ class PenilaiController extends Controller
$penilai = Penilai::where('permohonan_id', $req['permohonanId'])->where('dokument_id', $req['documentId'])->first();
$provinces = Province::all();
$basicData = $this->surveyorController->getCommonData();
+ Penilai::updateOrCreate(
+ [
+ 'permohonan_id' => $req['permohonanId'],
+ 'dokument_id' => $req['documentId'],
+ 'inspeksi_id' => $request->inspeksiId,
+ ],
+ [
+ 'type_penilai' => 'memo',
+ ]
+ );
$formFoto = $formPeta = $cities = $districts = $villages = $memo = null;
if ($inspeksi) {
@@ -236,9 +256,19 @@ class PenilaiController extends Controller
$provinces = Province::all();
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
-
+ Penilai::updateOrCreate(
+ [
+ 'permohonan_id' => $permohonanId,
+ 'dokument_id' => $documentId,
+ 'inspeksi_id' => $inspeksiId,
+ ],
+ [
+ 'type_penilai' => 'rap',
+ ]
+ );
$resume = Penilai::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
+
$lpjData = null;
$rap = null;
$forminspeksi= null;
@@ -468,21 +498,24 @@ class PenilaiController extends Controller
}
public function saveStatusLpj(Request $request)
- {
+{
- Penilai::updateOrCreate(
- [
- 'permohonan_id' => $request->permohonan_id,
- 'dokument_id' => $request->document_id,
- 'inspeksi_id' => $request->inspeksi_id,
- ],
- [
- 'type' => $request->type,
- ]
- );
- return response()->json(['success' => true]);
- }
+ Penilai::updateOrCreate(
+ [
+ 'permohonan_id' => $request->permohonan_id,
+ 'dokument_id' => $request->document_id,
+ 'inspeksi_id' => $request->inspeksi_id,
+ ],
+ [
+ 'type' => $request->type,
+ 'type_penilai' => $request->type,
+ ]
+ );
+
+ return response()->json(['success' => true]);
+}
+
public function storePenilaian($id)
@@ -661,7 +694,7 @@ class PenilaiController extends Controller
$jaminanId = $request->query('jaminanId');
$permohonanId = $request->query('permohonanId');
$statusLpj = $request->query('statusLpj');
- $tipeLaporan = $request->query('tipe');
+ $tipeLaporan = $request->query('type');
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId,
$documentId,
@@ -730,8 +763,8 @@ class PenilaiController extends Controller
$pdf->setPaper('A4', 'portrait');
return $pdf->stream();
} else {
- $pdf = view('lpj::' . $viewLaporan, compact(
- // $pdf = PDF::loadView('lpj::' . $viewLaporan, compact(
+ // $pdf = view('lpj::' . $viewLaporan, compact(
+ $pdf = PDF::loadView('lpj::' . $viewLaporan, compact(
'permohonan',
'forminspeksi',
'lpjData',
@@ -746,9 +779,8 @@ class PenilaiController extends Controller
'memo'
));
- return $pdf;
- // $pdf->setPaper('A4', 'portrait');
- // return $pdf->download('laporan.pdf');
+ $pdf->setPaper('A4', 'portrait');
+ return $pdf->download('Laporan_'. $tipeLaporan . '_' . $permohonan->nomor_registrasi . '_' .$permohonan->debiture->name .'_data.pdf');
}
} catch (\Exception $e) {
@@ -767,7 +799,6 @@ class PenilaiController extends Controller
'memo' => 'penilai.components.print-memo',
'rap' => 'penilai.components.print-rap'
];
-
return $viewMap[$tipe] ?? 'penilai.components.print-resume';
}
@@ -828,4 +859,29 @@ class PenilaiController extends Controller
'inspeksiId' => $request->query('inspeksiId')
];
}
+
+ public function checkPrintOutLaporan(Request $request) {
+ $permohonanId = $request->query('permohonanId');
+ $documentId = $request->query('documentId');
+ $inspeksiId = $request->query('inspeksiId');
+
+ // Ambil data berdasarkan ID
+ $statusLpj = Penilai::where('permohonan_id', $permohonanId)
+ ->where('dokument_id', $documentId)
+ ->where('inspeksi_id', $inspeksiId)
+ ->first();
+
+ // Jika data tidak ditemukan, kembalikan status null
+ if (!$statusLpj) {
+ return response()->json(['status' => null]);
+ }
+
+ // Tentukan tipe berdasarkan kondisi
+ $type = $statusLpj->type_penilai ?? null;
+
+ // Kembalikan respons dengan tipe yang sesuai
+ return response()->json(['status' => $type]);
+ }
+
+
}
diff --git a/app/Http/Controllers/PenilaianController.php b/app/Http/Controllers/PenilaianController.php
index 55ab922..fa72da2 100644
--- a/app/Http/Controllers/PenilaianController.php
+++ b/app/Http/Controllers/PenilaianController.php
@@ -17,6 +17,10 @@ use Modules\Lpj\Models\StatusPermohonan;
use Modules\Lpj\Models\Teams;
use Modules\Lpj\Models\Inspeksi;
use Modules\Lpj\Models\Penilai ;
+use Modules\Location\Models\Province;
+use Modules\Location\Models\City;
+use Modules\Location\Models\District;
+use Modules\Location\Models\Village;
use Modules\Usermanagement\Models\User;
use Modules\Lpj\Http\Controllers\SurveyorController;
// use Modules\Lpj\Http\Controllers\PenilaiController;
@@ -630,9 +634,12 @@ class PenilaianController extends Controller
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
$basicData = $this->surveyorController->getCommonData();
-
+ $provinces = Province::all();
$inspeksi = Inspeksi::where('permohonan_id', $id)->where('dokument_id', $documentId)->first();
- $lpj = Penilai::where('permohonan_id', $id)->where('dokument_id', $documentId)->first();
+ $lpj = Penilai::where('permohonan_id', $id)
+ ->where('dokument_id', $documentId)
+ ->where('inspeksi_id', $inspeksi->id)
+ ->first();
$forminspeksi = null;
$lpjData = null;
@@ -643,8 +650,26 @@ class PenilaianController extends Controller
if ($lpj) {
$lpjData = json_decode($lpj->lpj, true);
}
+
+ $viewLaporan = $this->getViewLaporan($lpj->type_penilai);
- return view('lpj::penilaian.laporan-so', compact('permohonan', 'forminspeksi', 'basicData', 'inspeksi', 'lpjData'));
+ if (empty($viewLaporan)) {
+ return redirect()->back()->with('error', 'Laporan belum dibuat');
+ }
+
+ return view('lpj::'. $viewLaporan, compact('permohonan', 'forminspeksi', 'basicData', 'inspeksi', 'lpjData', 'provinces'));
+ }
+
+ private function getViewLaporan($tipe)
+ {
+ $viewMap = [
+ 'sederhana' => 'penilai.components.lpj-sederhana-standard',
+ 'standard' => 'penilai.components.lpj-sederhana-standard',
+ 'resume' => 'penilai.components.resume',
+ 'memo' => 'penilai.components.memo',
+ 'rap' => 'penilai.components.rap-penilai'
+ ];
+ return $viewMap[$tipe] ?? '';
}
public function storePenilaiLaporan(Request $request)
diff --git a/app/Http/Controllers/SurveyorController.php b/app/Http/Controllers/SurveyorController.php
index 11b3aa2..69be313 100644
--- a/app/Http/Controllers/SurveyorController.php
+++ b/app/Http/Controllers/SurveyorController.php
@@ -210,7 +210,7 @@ class SurveyorController extends Controller
$rules = [];
$hasAssetDescriptionRules = false;
- $hasFactaDat = false;
+ $hasFactaData = false;
$pisah = array_filter(
explode(',', $action),
function ($act) use ($allowedActions) {
@@ -1398,12 +1398,28 @@ class SurveyorController extends Controller
$provinceCode = $cekAlamat['province_code'] ?? $provinceCode;
$cityCode = $cekAlamat['city_code'] ?? $cityCode;
$districtCode = $cekAlamat['district_code'] ?? $districtCode;
- }
+ // Ambil data menggunakan kode yang telah ditentukan
- // Ambil data menggunakan kode yang telah ditentukan
+ }
$cities = City::where('province_code', $provinceCode)->get();
$districts = District::where('city_code', $cityCode)->get();
$villages = Village::where('district_code', $districtCode)->get();
+
+ if ($forminspeksi) {
+ if (isset($forminspeksi['alamat']['sesuai']['province_code'])) {
+ $cities = City::where('province_code', $forminspeksi['alamat']['sesuai']['province_code'])->get();
+ }
+
+ if (isset($forminspeksi['alamat']['sesuai']['city_code'])) {
+ $districts = District::where('city_code', $forminspeksi['alamat']['sesuai']['city_code'])->get();
+ }
+
+ if (isset($forminspeksi['alamat']['sesuai']['district_code'])) {
+ $villages = Village::where('district_code', $forminspeksi['alamat']['sesuai']['district_code'])->get();
+ }
+ }
+
+
return view('lpj::surveyor.components.inspeksi', compact(
'permohonan',
'surveyor',
@@ -2440,17 +2456,28 @@ class SurveyorController extends Controller
private function getKapalData($data, $request): array
{
+
+ $alamatData = [
+ 'village_code' => $data['village_code'] ?? null,
+ 'district_code' => $data['district_code'] ?? null,
+ 'city_code' => $data['city_code'] ?? null,
+ 'province_code' => $data['province_code'] ?? null,
+ ];
return [
'action' => $data['action'] ?? null,
'nama_wakil_debitur' => $data['nama_wakil_debitur'] ?? null,
'hub_calon_debitur' => $data['hub_calon_debitur'] ?? null,
'dermaga' => $data['dermaga'] ?? null,
- 'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
- 'kecamatan' => $data['kecamatan'] ?? null,
- 'kota_madya' => $data['kota_madya'] ?? null,
- 'provinsi' => $data['provinsi'] ?? null,
- 'jenis' => $data['jenis'] ?? null,
+ 'nama_jalan' => $data['nama_jalan'] ?? null,
+ 'perumahan_gang' => $data['perumahan_gang'] ?? null,
+ 'blok_nomor' => $data['blok_nomor'] ?? null,
+ 'bandara' => $data['bandara'] ?? null,
+ 'alamat' => [
+ 'sesuai' => $alamatData
+ ],
+ 'jenis_kapal' => $data['jenis_kapal'] ?? null,
+ 'jenis_kapal_lainnya' => $data['jenis_kapal_lainnya'] ?? null,
'size' => $data['size'] ?? null,
'kondisi' => $data['kondisi'] ?? null,
'klasifikasi' => $data['klasifikasi'] ?? null,
@@ -2534,6 +2561,13 @@ class SurveyorController extends Controller
}
public function getKendaraanData($data, $request): array
{
+ $alamatData = [
+ 'village_code' => $data['village_code'] ?? null,
+ 'district_code' => $data['district_code'] ?? null,
+ 'city_code' => $data['city_code'] ?? null,
+ 'province_code' => $data['province_code'] ?? null,
+ ];
+
return [
'action' => $data['action'] ?? null,
'tanggal_survey' => $data['tanggal_survey'] ?? null,
@@ -2542,11 +2576,15 @@ class SurveyorController extends Controller
'nama_jalan' => $data['nama_jalan'] ?? null,
'perumahan_gang' => $data['perumahan_gang'] ?? null,
'blok_nomor' => $data['blok_nomor'] ?? null,
- 'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
- 'kecamatan' => $data['kecamatan'] ?? null,
- 'kota_madya' => $data['kota_madya'] ?? null,
- 'provinsi' => $data['provinsi'] ?? null,
+ 'alamat' => [
+ 'sesuai' => $alamatData
+ ],
+ 'masa_stnk' => $data['masa_stnk'] ?? null,
+ 'masa_pajak' => $data['masa_pajak'] ?? null,
+ 'kendaraan' => $data['kendaraan'] ?? null,
+ 'kendaraan_input' => $data['kendaraan_input'] ?? null,
'kondisi' => $data['kondisi'] ?? null,
+
'nomor_polisi' => $data['nomor_polisi'] ?? null,
'nomor_polis_tidak_sesuai' => $data['nomor_polis_tidak_sesuai'] ?? null,
'merek' => $data['merek'] ?? null,
@@ -2559,30 +2597,50 @@ class SurveyorController extends Controller
'nomor_mesin_tidak_sesuai' => $data['nomor_mesin_tidak_sesuai'] ?? null,
'posisi_kilometer' => $data['posisi_kilometer'] ?? null,
'transmisi' => $data['transmisi'] ?? null,
-
-
+ 'transmisi_input' => $data['transmisi_input'] ?? null,
'mesin_panel_instrument' => $data['mesin_panel_instrument'] ?? null,
+ 'mesin_panel_instrument_input' => $data['mesin_panel_instrument_input'] ?? null,
'fungsi_mesin_panel_instrument' => $data['fungsi_mesin_panel_instrument'] ?? null,
+ 'fungsi_mesin_panel_instrument_input' => $data['fungsi_mesin_panel_instrument_input'] ?? null,
'interior' => $data['interior'] ?? null,
- 'interior' => $data['interior'] ?? null,
-
+ 'interior_input' => $data['interior_input'] ?? null,
'jumlah_pintu' => $data['jumlah_pintu'] ?? null,
+ 'jumlah_pintu_input' => $data['jumlah_pintu_input'] ?? null,
'rangka_karoseri' => $data['rangka_karoseri'] ?? null,
+ 'rangka_karoseri_input' => $data['rangka_karoseri_input'] ?? null,
'ban' => $data['ban'] ?? null,
+ 'ban_input' => $data['ban_input'] ?? null,
'velg' => $data['velg'] ?? null,
+ 'velg_input' => $data['velg_input'] ?? null,
+
+
+
'bamper_depan' => $data['bamper_depan'] ?? null,
+ 'bamper_depan_input' => $data['bamper_depan_input'] ?? null,
'bamper_belakang' => $data['bamper_belakang'] ?? null,
+ 'bamper_belakang_input' => $data['bamper_belakang_input'] ?? null,
'lampu_depan' => $data['lampu_depan'] ?? null,
+ 'lampu_depan_input' => $data['lampu_depan_input'] ?? null,
'lampu_belakang' => $data['lampu_belakang'] ?? null,
+ 'lampu_belakang_input' => $data['lampu_belakang_input'] ?? null,
'kaca_kendaraan' => $data['kaca_kendaraan'] ?? null,
+ 'kaca_kendaraan_input' => $data['kaca_kendaraan_input'] ?? null,
'air_conditioner' => $data['air_conditioner'] ?? null,
+ 'air_conditioner_input' => $data['air_conditioner_input'] ?? null,
'tape_radio_cd' => $data['tape_radio_cd'] ?? null,
+ 'tape_radio_cd_input' => $data['tape_radio_cd_input'] ?? null,
'sensor_parkir' => $data['sensor_parkir'] ?? null,
+ 'sensor_parkir_input' => $data['sensor_parkir_input'] ?? null,
'sensor_camera_recorder' => $data['sensor_camera_recorder'] ?? null,
+ 'sensor_camera_recorder_input' => $data['sensor_camera_recorder_input'] ?? null,
'lcd' => $data['lcd'] ?? null,
+ 'lcd_innput' => $data['lcd_innput'] ?? null,
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
+ 'sabuk_keselamatan_input' => $data['sabuk_keselamatan_input'] ?? null,
'airbag' => $data['airbag'] ?? null,
+ 'airbag_input' => $data['airbag_input'] ?? null,
'asuransi' => $data['asuransi'] ?? null,
+ 'asuransi_input' => $data['asuransi_input'] ?? null,
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
@@ -2622,6 +2680,13 @@ class SurveyorController extends Controller
public function getAlatBeratData($data, $request): array
{
+ $alamatData = [
+ 'village_code' => $data['village_code'] ?? null,
+ 'district_code' => $data['district_code'] ?? null,
+ 'city_code' => $data['city_code'] ?? null,
+ 'province_code' => $data['province_code'] ?? null,
+ ];
+
return [
'action' => $data['action'] ?? null,
'tanggal_survey' => $data['tanggal_survey'] ?? null,
@@ -2630,11 +2695,10 @@ class SurveyorController extends Controller
'dengan_wadeb' => $data['dengan_wadeb'] ?? null,
'nama_jalan' => $data['nama_jalan'] ?? null,
'perumahan_gang' => $data['perumahan_gang'] ?? null,
- 'blok' => $data['blok'] ?? null,
- 'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
- 'kecamatan' => $data['kecamatan'] ?? null,
- 'kota_madya' => $data['kota_madya'] ?? null,
- 'provinsi' => $data['provinsi'] ?? null,
+ 'blok_nomor' => $data['blok_nomor'] ?? null,
+ 'alamat' => [
+ 'sesuai' => $alamatData
+ ],
'jenis_model' => $data['jenis_model'] ?? null,
'nomor_lambung' => $data['nomor_lambung'] ?? null,
'model_unit' => $data['model_unit'] ?? null,
@@ -2653,24 +2717,35 @@ class SurveyorController extends Controller
'overhaul_mesin' => $data['overhaul_mesin'] ?? null,
'mesin_panel' => $data['mesin_panel'] ?? null,
+ 'mesin_panel_input' => $data['mesin_panel_input'] ?? null,
'fungsi_panel' => $data['fungsi_panel'] ?? null,
+ 'fungsi_panel_input' => $data['fungsi_panel_input'] ?? null,
'interior' => $data['interior'] ?? null,
+ 'interior_input' => $data['interior_input'] ?? null,
'rangka_Karoseri' => $data['rangka_Karoseri'] ?? null,
+ 'rangka_Karoseri_input' => $data['rangka_Karoseri_input'] ?? null,
'ban' => $data['ban'] ?? null,
+ 'ban_input' => $data['ban_input'] ?? null,
'velg' => $data['velg'] ?? null,
+ 'velg_input' => $data['velg_input'] ?? null,
'air_conditioner' => $data['air_conditioner'] ?? null,
+ 'air_conditioner_input' => $data['air_conditioner_input'] ?? null,
'aksesoris' => $data['aksesoris'] ?? null,
+ 'aksesoris_input' => $data['aksesoris_input'] ?? null,
'lcd' => $data['lcd'] ?? null,
+ 'lcd_input' => $data['lcd_input'] ?? null,
'perlengkapan' => $data['perlengkapan'] ?? null,
+ 'perlengkapan_input' => $data['perlengkapan_input'] ?? null,
'asuransi' => $data['asuransi'] ?? null,
+ 'asuransi_input' => $data['asuransi_input'] ?? null,
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
'sensor_kamera' => $data['sensor_kamera'] ?? null,
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
'air_bag' => $data['air_bag'] ?? null,
- 'faktor_positif' => $data['faktor_positif'] ?? null,
- 'faktor_negatif' => $data['faktor_negatif'] ?? null,
+ 'fakta_positif' => $data['fakta_positif'] ?? null,
+ 'fakta_negatif' => $data['fakta_negatif'] ?? null,
'kesimpulan' => $data['kesimpulan'] ?? null,
'catatan' => $data['catatan'] ?? null,
];
@@ -2678,18 +2753,27 @@ class SurveyorController extends Controller
private function getPesawatData($data, $request): array
{
+ $alamatData = [
+ 'village_code' => $data['village_code'] ?? null,
+ 'district_code' => $data['district_code'] ?? null,
+ 'city_code' => $data['city_code'] ?? null,
+ 'province_code' => $data['province_code'] ?? null,
+ ];
return [
'action' => $data['action'] ?? null,
'tanggal_survey' => $data['tanggal_survey'] ?? null,
'nama_wakil' => $data['nama_wakil'] ?? null,
'hub_calon_debitur' => $data['hub_calon_debitur'] ?? null,
+ 'nama_jalan' => $data['nama_jalan'] ?? null,
+ 'perumahan_gang' => $data['perumahan_gang'] ?? null,
+ 'blok_nomor' => $data['blok_nomor'] ?? null,
'bandara' => $data['bandara'] ?? null,
- 'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
- 'kecamatan' => $data['kecamatan'] ?? null,
- 'kota_madya' => $data['kota_madya'] ?? null,
- 'provinsi' => $data['provinsi'] ?? null,
-
+ 'alamat' => [
+ 'sesuai' => $alamatData
+ ],
'jenis_pesawat' => $data['jenis_pesawat'] ?? null,
+ 'jenis_pesawat_lainnya' => $data['jenis_pesawat_lainnya'] ?? null,
+
'size' => $data['size'] ?? null,
'kondisi' => $data['kondisi'] ?? null,
'nama_pesawat' => $data['nama_pesawat'] ?? null,
@@ -2772,8 +2856,9 @@ class SurveyorController extends Controller
'deskripsi_Interior' => $data['deskripsi_Interior'] ?? null,
// Validasi untuk faktor dan kesimpulan
- 'faktor_positif' => $data['faktor_positif'] ?? null,
- 'faktor_negatif' => $data['faktor_negatif'] ?? null,
+
+ 'fakta_positif' => $data['fakta_positif'] ?? null,
+ 'fakta_negatif' => $data['fakta_negatif'] ?? null,
'kesimpulan' => $data['kesimpulan'] ?? null,
'catatan' => $data['catatan'] ?? null,
];
diff --git a/app/Http/Requests/FormSurveyorRequest.php b/app/Http/Requests/FormSurveyorRequest.php
index cdc4658..25a887b 100644
--- a/app/Http/Requests/FormSurveyorRequest.php
+++ b/app/Http/Requests/FormSurveyorRequest.php
@@ -176,17 +176,23 @@ class FormSurveyorRequest extends FormRequest
{
return [
'action' => 'required',
- 'nama_wakil_debitur' => 'required',
+ 'nama_wakil_debitur' => 'nullable',
'hub_calon_debitur' => 'required',
- 'dermaga' => 'required',
- 'desa_kelurahan' => 'required',
- 'kecamatan' => 'required',
- 'kota_madya' => 'required',
- 'provinsi' => 'required',
- 'jenis.*' => 'required',
- 'size.*' => 'required',
- 'kondisi.*' => 'required',
- 'klasifikasi.*' => 'required',
+ 'dermaga' => 'nullable',
+ 'nama_jalan' => 'required',
+ 'perumahan_gang' => 'required',
+ 'blok_nomor' => 'required',
+
+ 'village_code' => 'nullable|string',
+ 'district_code' => 'nullable|string',
+ 'city_code' => 'nullable|string',
+ 'province_code' => 'nullable|string',
+
+ 'jenis_kapal' => 'required',
+ 'jenis_kapal_lainnya' => 'nullable',
+ 'size' => 'required',
+ 'kondisi' => 'required',
+ 'klasifikasi' => 'required',
'nama_kapal' => 'required',
'pemilik_kapal' => 'required',
@@ -250,10 +256,10 @@ class FormSurveyorRequest extends FormRequest
'kabel_perangkat' => 'required',
'deskripsi_kelistrikan' => 'required',
- 'kebersihan_dek_luar' => 'required',
- 'tangki_limbah' => 'required',
- 'sistem_pengelolaan_limbah' => 'required',
- 'pengelolaan_air_ballast' => 'required',
+ 'kebersihan_dek_luar' => 'nullable',
+ 'tangki_limbah' => 'nullable',
+ 'sistem_pengelolaan_limbah' => 'nullable',
+ 'pengelolaan_air_ballast' => 'nullable',
'deskripsi_kebersihan' => 'required',
'fakta_positif.*' => 'nullable',
@@ -377,18 +383,30 @@ class FormSurveyorRequest extends FormRequest
'nomor_mesin' => 'nullable',
'hour_mesters' => 'nullable',
'overhaul_mesin' => 'nullable',
+
'mesin_panel.*' => 'nullable',
+ 'mesin_panel_input.*' => 'nullable',
'fungsi_panel.*' => 'nullable',
+ 'fungsi_panel_input.*' => 'nullable',
'interior.*' => 'nullable',
+ 'interior_input.*' => 'nullable',
'rangka_Karoseri.*' => 'nullable',
+ 'rangka_Karoseri_input.*' => 'nullable',
'ban.*' => 'nullable',
+ 'ban_innput.*' => 'nullable',
'velg.*' => 'nullable',
+ 'velg_input.*' => 'nullable',
'air_conditioner.*' => 'nullable',
+ 'air_conditioner_input.*' => 'nullable',
'aksesoris.*' => 'nullable',
+ 'aksesoris_input.*' => 'nullable',
'lcd.*' => 'nullable',
+ 'lcd_innput.*' => 'nullable',
'perlengkapan.*' => 'nullable',
+ 'perlengkapan_input.*' => 'nullable',
'asuransi.*' => 'nullable',
- 'perusahaan_asuransi.*' => 'nullable',
+ 'asuransi_input.*' => 'nullable',
+ 'perusahaan_asuransi' => 'nullable',
'tahun_berakhir.*' => 'nullable',
'sensor_kamera.*' => 'nullable',
'lcd.*' => 'nullable',
@@ -397,10 +415,10 @@ class FormSurveyorRequest extends FormRequest
'asuransi.*' => 'nullable',
'perusahan_asuransi' => 'nullable',
'tahun_berakhir' => 'nullable',
- 'faktor_positif' => 'nullable',
- 'faktor_negatif' => 'nullable',
+ 'fakta_positif' => 'nullable|array',
+ 'fakta_negatif' => 'nullable|array',
'kesimpulan' => 'nullable',
- 'catatan' => 'nullable',
+ 'catatan' => 'nullable|array',
];
}
@@ -410,15 +428,19 @@ class FormSurveyorRequest extends FormRequest
{
return [
'action' => 'required',
- 'nama_wakil' => 'required',
- 'hub_calon_debitur' => 'required',
- 'bandara' => 'required',
- 'desa_kelurahan' => 'required',
- 'kecamatan' => 'required',
- 'kota_madya' => 'required',
- 'provinsi' => 'required',
+ 'nama_wakil' => 'required|string',
+ 'hub_calon_debitur' => 'required|string',
+ 'nama_jalan' => 'required',
+ 'perumahan_gang' => 'required',
+ 'blok_nomor' => 'required',
+
+ 'village_code' => 'nullable|string',
+ 'district_code' => 'nullable|string',
+ 'city_code' => 'nullable|string',
+ 'province_code' => 'nullable|string',
'jenis_pesawat' => 'required',
+ 'jenis_pesawat_lainnya' => 'nullable',
'size' => 'required',
'kondisi' => 'required',
'nama_pesawat' => 'required',
@@ -459,7 +481,7 @@ class FormSurveyorRequest extends FormRequest
'deskripsi_kabin' => 'required',
- 'badan_pesawat' => 'required',
+ 'badan_pesawat' => 'nullable',
'sayap_pesawat' => 'required',
'ekor_pesawat' => 'required',
'landing_gear' => 'required',
@@ -505,12 +527,10 @@ class FormSurveyorRequest extends FormRequest
'sistem_hiburan_kabin' => 'required',
'deskripsi_Interior' => 'required',
-
-
- 'faktor_positif.*' => 'nullable',
- 'faktor_negatif.*' => 'nullable',
- 'kesimpulan.*' => 'nullable',
- 'catatan.*' => 'nullable',
+ 'fakta_positif' => 'nullable|array',
+ 'fakta_negatif' => 'nullable|array',
+ 'kesimpulan' => 'nullable',
+ 'catatan' => 'nullable|array',
];
diff --git a/app/Models/Penilai.php b/app/Models/Penilai.php
index cc5eed5..c817862 100644
--- a/app/Models/Penilai.php
+++ b/app/Models/Penilai.php
@@ -23,6 +23,7 @@ class Penilai extends Model
'lpj',
'type',
'memo',
+ 'type_penilai'
];
// protected static function newFactory(): PenilaiFactory
diff --git a/database/migrations/2025_01_07_071142_update_penilai_table.php b/database/migrations/2025_01_07_071142_update_penilai_table.php
new file mode 100644
index 0000000..c339338
--- /dev/null
+++ b/database/migrations/2025_01_07_071142_update_penilai_table.php
@@ -0,0 +1,30 @@
+enum('type_penilai', ['memo', 'resume', 'standard', 'sederhana', 'rap'])
+ ->nullable()
+ ->comment('Jenis penilai: memo, resume, standard, sederhana, rap');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('penilai', function (Blueprint $table) {
+ $table->dropColumn('type_penilai');
+ });
+ }
+};
diff --git a/resources/views/jenis_jaminan/create.blade.php b/resources/views/jenis_jaminan/create.blade.php
index bf39e4b..c206f7a 100644
--- a/resources/views/jenis_jaminan/create.blade.php
+++ b/resources/views/jenis_jaminan/create.blade.php
@@ -100,7 +100,7 @@
@foreach ($jenisLegalitasJaminan as $row)
- @if (!empty(json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true)))
+ @if ( isset($jenisJaminan) && !empty(json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true)))
code, json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true))) {{ 'checked' }} @endif
value="{{ $row->code }}" name="jenis_legalitas_jaminan_id[]" />
@else
diff --git a/resources/views/penilai/components/memo.blade.php b/resources/views/penilai/components/memo.blade.php
index cd67033..b290706 100644
--- a/resources/views/penilai/components/memo.blade.php
+++ b/resources/views/penilai/components/memo.blade.php
@@ -14,7 +14,7 @@
Memo Antar Kantor
diff --git a/resources/views/penilai/components/resume.blade.php b/resources/views/penilai/components/resume.blade.php
index 3c26c02..7da4275 100644
--- a/resources/views/penilai/components/resume.blade.php
+++ b/resources/views/penilai/components/resume.blade.php
@@ -16,7 +16,7 @@
Data Jaminan
diff --git a/resources/views/penilai/show.blade.php b/resources/views/penilai/show.blade.php
index bec3202..03069fe 100644
--- a/resources/views/penilai/show.blade.php
+++ b/resources/views/penilai/show.blade.php
@@ -371,7 +371,7 @@
.then(data => {
if (data.status) {
// Jika status LPJ sudah ada, arahkan langsung ke halaman
- if (data.status === 'standar') {
+ if (data.status === 'standard') {
showLoadingSwal('Tunggu ...');
window.location.href =
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
@@ -394,17 +394,17 @@
} else {
Swal.fire({
title: 'Pilih Jenis LPJ',
- text: 'Apakah kamu akan memilih LPJ Standar?',
+ text: 'Apakah kamu akan memilih LPJ Standard?',
icon: 'question',
showCloseButton: true,
showDenyButton: true,
- confirmButtonText: 'LPJ Standar',
+ confirmButtonText: 'LPJ Standard',
denyButtonText: 'LPJ Sederhana',
confirmButtonColor: '#3085d6',
denyButtonColor: '#d33',
}).then((result) => {
if (result.isConfirmed) {
- saveStatusLpj(permohonanId, documentId, inspeksiId, 'standar', jaminanId);
+ saveStatusLpj(permohonanId, documentId, inspeksiId, 'standard', jaminanId);
} else if (result.isDenied) {
saveStatusLpj(permohonanId, documentId, inspeksiId, 'sederhana', jaminanId);
}
@@ -427,12 +427,12 @@
permohonan_id: permohonanId,
document_id: documentId,
inspeksi_id: inspeksiId,
- type: type
+ type: type,
}),
}).then(response => response.json())
.then(data => {
if (data.success) {
- if (type === 'standar') {
+ if (type === 'standard') {
window.location.href =
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
} else if (type === 'sederhana') {
@@ -557,14 +557,14 @@
function checkLaporan(permohonanId, documentId, inspeksiId, jaminanId) {
fetch(
- `{{ url('/penilai/check-status-lpj') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}`
+ `{{ url('/penilai/check-laporan') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}`
)
.then(response => response.json())
.then(data => {
if (data.status) {
// Jika laporan ada, arahkan ke halaman cetak
window.location.href =
- `{{ route('penilai.print-out') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}&statusLpj=0`;
+ `{{ route('penilai.print-out') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}&statusLpj=0&type=${data.status}`;
} else {
// Jika laporan belum ada, tampilkan pesan peringatan
Swal.fire({
diff --git a/resources/views/surveyor/components/alat-berat.blade.php b/resources/views/surveyor/components/alat-berat.blade.php
index e929252..08a7624 100644
--- a/resources/views/surveyor/components/alat-berat.blade.php
+++ b/resources/views/surveyor/components/alat-berat.blade.php
@@ -3,6 +3,11 @@
Order Penilaian
+
@@ -404,13 +409,24 @@
Faktor Positif
-
-
-
-
-
-
-
+ @if (!empty($forminspeksi['fakta_positif']))
+ @foreach ($forminspeksi['fakta_positif'] as $index => $positif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+ @endif
@@ -421,13 +437,26 @@
Faktor Negatif
-
-
-
-
-
-
-
+
+ @if (!empty($forminspeksi['fakta_negatif']))
+ @foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
diff --git a/resources/views/surveyor/components/card-tambah.blade.php b/resources/views/surveyor/components/card-tambah.blade.php
index 2472ee5..9c5b4bf 100644
--- a/resources/views/surveyor/components/card-tambah.blade.php
+++ b/resources/views/surveyor/components/card-tambah.blade.php
@@ -7,7 +7,7 @@
$jaminanId = $dokumen->id;
$currentInspeksi = $inspeksiData[$jaminanId] ?? null;
- $tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT'];
+ $tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT', 'MESIN'];
$href = [
[
diff --git a/resources/views/surveyor/components/data-pembanding.blade.php b/resources/views/surveyor/components/data-pembanding.blade.php
index c85f659..816db1c 100644
--- a/resources/views/surveyor/components/data-pembanding.blade.php
+++ b/resources/views/surveyor/components/data-pembanding.blade.php
@@ -15,464 +15,17 @@
-
-
-
-
diff --git a/resources/views/surveyor/components/foto.blade.php b/resources/views/surveyor/components/foto.blade.php
index 0401e18..917346b 100644
--- a/resources/views/surveyor/components/foto.blade.php
+++ b/resources/views/surveyor/components/foto.blade.php
@@ -244,11 +244,14 @@
@php
$processedCategories = [];
+ $tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT','MESIN'];
+ $dokumentName = null;
@endphp
@foreach ($permohonan->debiture->documents as $dokumen)
@if ($dokumen->jenisJaminan)
@php
+ $dokumentName =$dokumen->jenisJaminan->name;
$formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true);
@endphp
@if (isset($formKategori) && $formKategori)
@@ -323,6 +326,7 @@
@endif
@endforeach
+ @if (!in_array(strtoupper($dokumentName), $tanahBangunanTypes))
@@ -390,6 +394,7 @@
Lainnya
+ @endif
diff --git a/resources/views/surveyor/components/informasi.blade.php b/resources/views/surveyor/components/informasi.blade.php
index dcc3a47..a7b84c6 100644
--- a/resources/views/surveyor/components/informasi.blade.php
+++ b/resources/views/surveyor/components/informasi.blade.php
@@ -218,33 +218,34 @@
Catatan yang Perlu Diperhatikan
-
-
- @if (!empty($forminspeksi['fakta']['keterangan']) && is_array($forminspeksi['fakta']['keterangan']))
- @foreach ($forminspeksi['fakta']['keterangan'] as $index => $item)
+
+
+ @if (!empty($forminspeksi['fakta']['keterangan']) && is_array($forminspeksi['fakta']['keterangan']))
+ @foreach ($forminspeksi['fakta']['keterangan'] as $index => $item)
+
+
+
+
+
+
+ @endforeach
+ @else
-
+
+
- @endforeach
- @else
-
-
-
-
-
-
-
- @endif
-
-
-
-
-
+ @endif
+
+
+
+
+
diff --git a/resources/views/surveyor/components/kapal.blade.php b/resources/views/surveyor/components/kapal.blade.php
index 25ab021..f949162 100644
--- a/resources/views/surveyor/components/kapal.blade.php
+++ b/resources/views/surveyor/components/kapal.blade.php
@@ -1,11 +1,15 @@
-
-
-
-
-
Order Penilaian
+
+
-
-
-
-
+
-
-
Identitas Debitur
-
+
@@ -68,10 +71,10 @@
@@ -79,708 +82,820 @@
Hubungan Calon Debitur
+ placeholder="Masukkan Hubungan Calon Debitur"
+ value="{{ old('hub_calon_debitur', $forminspeksi['hub_calon_debitur'] ?? '') }}">
+
+
-
- {{-- lokasi jaminan --}}
- @include('lpj::surveyor.components.lokasi-jaminan')
+
+ @include('lpj::surveyor.components.lokasi-jaminan')
+
-
-
-
Data Data Jaminan
+
+
-
-
-
Jenis
-
-
- Select Jenis
- @if (isset($jenisKapal))
- @foreach ($jenisKapal as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
-
-
-
-
-
Size
-
-
- Select Size
- @if (isset($arahMataAngin))
- @foreach ($arahMataAngin as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
-
-
-
-
-
Kondisi
-
-
- Select Jenis
- @if (isset($arahMataAngin))
- @foreach ($arahMataAngin as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
-
-
-
-
-
-
Klasifikasi
-
-
- Select Jenis
- @if (isset($arahMataAngin))
- @foreach ($arahMataAngin as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
-
-
-
- @php
-
- $inputDataJaminan = [
- [
- '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
-
- @if (count($inputDataJaminan) > 0)
- @foreach ($inputDataJaminan as $item)
-
-
-
{{ $item['label'] }}
-
-
-
-
+
+
+
+
Jenis Pesawat
+
- @endforeach
- @endif
+
+
+ @php
+ $inputDataJaminan = [
+ [
+ 'label' => 'Size',
+ 'value' => ['Small', 'Large', 'Medium', 'Very Large'],
+ 'name' => 'size',
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Kondisi',
+ 'value' => ['Laik Laut', 'Sekrap', 'Rusak', 'Progress', 'Konversi'],
+ 'name' => 'kondisi',
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Klasifikasi
+',
+ 'value' => ['IACS', 'BKI', 'Lainnya'],
+ 'name' => 'klasifikasi',
+ 'index' => 2,
+ ],
+ ];
+ @endphp
+
+ @if (count($inputDataJaminan) > 0)
+ @foreach ($inputDataJaminan as $item)
+
+
{{ $item['label'] }}
+
+
+ @if (isset($item['value']))
+ @foreach ($item['value'] as $value)
+
+
+
+ {{ $value }}
+
+
+ @endforeach
+ @endif
+
+
+
+
+
+
+
+ @endforeach
+ @endif
+
+ @php
+
+ $inputDataJaminan = [
+ [
+ 'label' => 'Nama Kapal',
+ 'name' => 'nama_kapal',
+ 'value' => old('nama_kapal', $forminspeksi['nama_kapal'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Pemilik Kapal',
+ 'name' => 'pemilik_kapal',
+ 'value' => old('pemilik_kapal', $forminspeksi['pemilik_kapal'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Bendera',
+ 'name' => 'bendera',
+ 'value' => old('bendera', $forminspeksi['bendera'] ?? ''),
+
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Nomor Tanda Selar',
+ 'name' => 'nomor_selar',
+ 'value' => old('nomor_selar', $forminspeksi['nomor_selar'] ?? ''),
+ 'index' => 3,
+ ],
+ [
+ 'label' => 'Kapal',
+ 'name' => 'kapal',
+ 'value' => old('kapal', $forminspeksi['kapal'] ?? ''),
+ 'index' => 4,
+ ],
+ [
+ 'label' => 'Galangan',
+ 'name' => 'galangan_kapal',
+ 'value' => old('galangan_kapal', $forminspeksi['galangan_kapal'] ?? ''),
+ 'index' => 5,
+ ],
+ [
+ 'label' => 'Kapal/Shipyard',
+ 'name' => 'kapal_shipyard',
+ 'value' => old('kapal_shipyard', $forminspeksi['kapal_shipyard'] ?? ''),
+ 'index' => 6,
+ ],
+ [
+ 'label' => 'Tahun Pembuatan',
+ 'name' => 'tahun_pembuatan',
+ 'value' => old('tahun_pembuatan', $forminspeksi['tahun_pembuatan'] ?? ''),
+ 'index' => 7,
+ ],
+ [
+ 'label' => 'Tahun Lanuncing',
+ 'name' => 'tahun_launcing',
+ 'value' => old('tahun_launcing', $forminspeksi['tahun_launcing'] ?? ''),
+ 'index' => 8,
+ ],
+ [
+ 'label' => 'DWT (ton)',
+ 'name' => 'dwt',
+ 'value' => old('dwt', $forminspeksi['dwt'] ?? ''),
+ 'index' => 9,
+ ],
+ [
+ 'label' => 'LWT (ton)',
+ 'name' => 'lwt',
+ 'value' => old('lwt', $forminspeksi['lwt'] ?? ''),
+ 'index' => 10,
+ ],
+ [
+ 'label' => 'Gross Tonnage (ton)',
+ 'name' => 'gross_tonnage',
+ 'value' => old('gross_tonnage', $forminspeksi['gross_tonnage'] ?? ''),
+ 'index' => 11,
+ ],
+ [
+ 'label' => 'Net Tonnage (ton)',
+ 'name' => 'net_tonnage',
+ 'value' => old('net_tonnage', $forminspeksi['net_tonnage'] ?? ''),
+ 'index' => 12,
+ ],
+ [
+ 'label' => 'Tenaga Mesin (HP)',
+ 'name' => 'tenaga_mesin',
+ 'value' => old('tenaga_mesin', $forminspeksi['tenaga_mesin'] ?? ''),
+ 'index' => 13,
+ ],
+ [
+ 'label' => 'LOA',
+ 'name' => 'loa',
+ 'value' => old('loa', $forminspeksi['loa'] ?? ''),
+ 'index' => 14,
+ ],
+ [
+ 'label' => 'LBP',
+ 'name' => 'lbp',
+ 'value' => old('lbp', $forminspeksi['lbp'] ?? ''),
+ 'index' => 15,
+ ],
+ [
+ 'label' => 'Beam',
+ 'name' => 'beam',
+ 'value' => old('beam', $forminspeksi['beam'] ?? ''),
+ 'index' => 16,
+ ],
+ [
+ 'label' => 'Depth',
+ 'name' => 'depth',
+ 'value' => old('depth', $forminspeksi['depth'] ?? ''),
+ 'index' => 17,
+ ],
+ [
+ 'label' => 'Draft',
+ 'name' => 'draft',
+ 'value' => old('draft', $forminspeksi['draft'] ?? ''),
+ 'index' => 18,
+ ],
+ ];
+ @endphp
+
+ @if (count($inputDataJaminan) > 0)
+ @foreach ($inputDataJaminan as $item)
+
+
+
{{ $item['label'] }}
+
+
+
+
+
+
+
+ @endforeach
+ @endif
+
-
-
-
Struktur Kapal
+
+
-
- @php
+
- $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,
- ],
- ];
+
+ @php
- @endphp
+ $inputStrukturKapal = [
+ [
+ 'label' => 'Lambung Kapal',
+ 'name' => 'lambung_kapal',
+ 'value' => old('lambung_kapal', $forminspeksi['lambung_kapal'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Dek',
+ 'name' => 'dek',
+ 'value' => old('dek', $forminspeksi['dek'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Struktur Rangka',
+ 'name' => 'struktur_rangka',
+ 'value' => old('struktur_rangka', $forminspeksi['struktur_rangka'] ?? ''),
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Palka',
+ 'name' => 'palka',
+ 'value' => old('palka', $forminspeksi['palka'] ?? ''),
+ 'index' => 3,
+ ],
+ [
+ 'label' => 'Pondasi Mesin',
+ 'name' => 'pondasi_mesin',
+ 'value' => old('pondasi_mesin', $forminspeksi['pondasi_mesin'] ?? ''),
+ 'index' => 4,
+ ],
+ [
+ 'label' => 'Area Mesin',
+ 'name' => 'area_mesin',
+ 'value' => old('area_mesin', $forminspeksi['area_mesin'] ?? ''),
+ 'index' => 5,
+ ],
+ [
+ 'label' => 'Cat dan Korosi',
+ 'name' => 'cat_dan_korosi',
+ 'value' => old('cat_dan_korosi', $forminspeksi['cat_dan_korosi'] ?? ''),
+ 'index' => 6,
+ ],
+ [
+ 'label' => 'Sistem Pengelasan',
+ 'name' => 'sistem_pengelasan',
+ 'value' => old('sistem_pengelasan', $forminspeksi['sistem_pengelasan'] ?? ''),
+ 'index' => 7,
+ ],
+ ];
- @if (count($inputStrukturKapal) > 0)
- @foreach ($inputStrukturKapal as $item)
-
-
-
{{ $item['label'] }}
-
-
+ @endphp
+
+ @if (count($inputStrukturKapal) > 0)
+ @foreach ($inputStrukturKapal as $item)
+
+
+
{{ $item['label'] }}
+
+
-
+
+
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
+
+
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
-
-
-
{{-- Peralatan Keselamatan --}}
-
-
-
Peralatan Keselamatan
+
+
-
- @php
- $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,
- ],
- ];
+
+
+
+ @php
+ $inputPeralatan = [
+ [
+ 'label' => 'Sekoci/Lifeboat',
+ 'name' => 'sekoci',
+ 'value' => old('sekoci', $forminspeksi['sekoci'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Jaket Pelampung',
+ 'name' => 'jaket_pelampung',
+ 'value' => old('jaket_pelampung', $forminspeksi['jaket_pelampung'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Alat Pemadam',
+ 'name' => 'alat_pemadaman',
+ 'value' => old('alat_pemadaman', $forminspeksi['alat_pemadaman'] ?? ''),
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Rambu Darurat',
+ 'name' => 'rambu_darurat',
+ 'value' => old('rambu_darurat', $forminspeksi['rambu_darurat'] ?? ''),
+ 'index' => 3,
+ ],
+ [
+ 'label' => 'Sistem Alarm',
+ 'name' => 'sistem_alarm',
+ 'value' => old('sistem_alarm', $forminspeksi['sistem_alarm'] ?? ''),
+ 'index' => 4,
+ ],
+ [
+ 'label' => 'Sistem Pencegah',
+ 'name' => 'sistem_pencegah',
+ 'value' => old('sistem_pencegah', $forminspeksi['sistem_pencegah'] ?? ''),
+ 'index' => 5,
+ ],
+ [
+ 'label' => 'Kebakaran',
+ 'name' => 'kebakaran',
+ 'value' => old('kebakaran', $forminspeksi['kebakaran'] ?? ''),
+ 'index' => 6,
+ ],
+ [
+ 'label' => 'Lampu Darurat',
+ 'name' => 'lampu_darurat',
+ 'value' => old('lampu_darurat', $forminspeksi['lampu_darurat'] ?? ''),
+ 'index' => 7,
+ ],
+ ];
- @endphp
+ @endphp
- @if (count($inputPeralatan) > 0)
- @foreach ($inputPeralatan as $item)
-
-
-
{{ $item['label'] }}
-
-
-
+ @if (count($inputPeralatan) > 0)
+ @foreach ($inputPeralatan as $item)
+
+
+
{{ $item['label'] }}
+
+
+
+
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
+
+
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
-
-
-
-
{{-- Sistwm Navigasi dan Komunikasi --}}
-
-
-
Sistem Navigasi dan Komunikasi
+
+
-
- @php
+
- $inputDataLoaksi = [
- [
- '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,
- ],
- ];
+
+ @php
- @endphp
+ $inputDataLoaksi = [
+ [
+ 'label' => 'Gps',
+ 'name' => 'gps',
+ 'value' => old('gps', $forminspeksi['gps'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Radar',
+ 'name' => 'radar',
+ 'value' => old('radar', $forminspeksi['radar'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Radio Komunikasi',
+ 'name' => 'radio_komunikasi',
+ 'value' => old('radio_komunikasi', $forminspeksi['radio_komunikasi'] ?? ''),
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Lampu Navigasi',
+ 'name' => 'lampu_navigasi',
+ 'value' => old('lampu_navigasi', $forminspeksi['lampu_navigasi'] ?? ''),
+ 'index' => 3,
+ ],
+ [
+ 'label' => 'Sistem Kendali otomatis',
+ 'name' => 'sistem_kendali_otomatis',
+ 'value' => old('sistem_kendali_otomatis', $forminspeksi['sistem_kendali_otomatis'] ?? ''),
+ 'index' => 4,
+ ],
+ [
+ 'label' => 'Kompas',
+ 'name' => 'kompas',
+ 'value' => old('kompas', $forminspeksi['kompas'] ?? ''),
+ 'index' => 5,
+ ],
+ ];
- @if (count($inputDataLoaksi) > 0)
- @foreach ($inputDataLoaksi as $item)
-
-
-
{{ $item['label'] }}
-
-
+ @endphp
-
-
+ @if (count($inputDataLoaksi) > 0)
+ @foreach ($inputDataLoaksi as $item)
+
+
+
{{ $item['label'] }}
+
+
+
+
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
-
-
{{-- Sistwm Mesin dan Penggerak Kapal --}}
-
-
-
Sistem Mesin dan Penggerak Kapal
+
+
-
- @php
+
- $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,
- ],
- ];
+
+ @php
- @endphp
+ $inputSistemPengerak = [
+ [
+ 'label' => 'Mesin Utama',
+ 'name' => 'mesin_utama',
+ 'value' => old('mesin_utama', $forminspeksi['mesin_utama'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Mesin Bantu',
+ 'name' => 'mesin_bantu',
+ 'value' => old('mesin_bantu', $forminspeksi['mesin_bantu'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Pompa Pendingin',
+ 'name' => 'pompa_pendingin',
+ 'value' => old('pompa_pendingin', $forminspeksi['pompa_pendingin'] ?? ''),
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Sistem Pelumasan',
+ 'name' => 'sistem_pelumasan',
+ 'value' => old('sistem_pelumasan', $forminspeksi['sistem_pelumasan'] ?? ''),
+ 'index' => 3,
+ ],
+ [
+ 'label' => 'Propeller',
+ 'name' => 'propeller',
+ 'value' => old('propeller', $forminspeksi['propeller'] ?? ''),
+ 'index' => 4,
+ ],
+ [
+ 'label' => 'Sistem Kelistrikan',
+ 'name' => 'sistem_kelistrikan',
+ 'value' => old('sistem_kelistrikan', $forminspeksi['sistem_kelistrikan'] ?? ''),
+ 'index' => 5,
+ ],
+ ];
- @if (count($inputSistemPengerak) > 0)
- @foreach ($inputSistemPengerak as $item)
-
-
-
{{ $item['label'] }}
-
-
-
+ @endphp
+
+ @if (count($inputSistemPengerak) > 0)
+ @foreach ($inputSistemPengerak as $item)
+
+
+
{{ $item['label'] }}
+
+
+
+
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
-
-
{{-- Sistwm kelistrikan dan Elektronik --}}
-
-
-
Sistem Kelistrikan dan Elektronik
+
+
-
- @php
- $inputSistemKelistrikan = [];
+
- $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,
- ],
- ];
+
+ @php
+ $inputSistemKelistrikan = [];
- @endphp
+ $inputSistemKelistrikan = [
+ [
+ 'label' => 'Lampu Navigasi',
+ 'name' => 'lampu_navigasi',
+ 'value' => old('lampu_navigasi', $forminspeksi['lampu_navigasi'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Sistem Penerangan',
+ 'name' => 'sistem_penerangan',
+ 'value' => old('sistem_penerangan', $forminspeksi['sistem_penerangan'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Sistem Panel Distribusi',
+ 'name' => 'sistem_panel_distribusi',
+ 'value' => old('sistem_panel_distribusi', $forminspeksi['sistem_panel_distribusi'] ?? ''),
+ 'index' => 2,
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Kabel dan Perangkat Pendukung',
+ 'name' => 'kabel_perangkat',
+ 'value' => old('kabel_perangkat', $forminspeksi['kabel_perangkat'] ?? ''),
+ 'index' => 3,
+ ],
+ ];
- @if (count($inputSistemKelistrikan) > 0)
- @foreach ($inputSistemKelistrikan as $item)
-
-
-
{{ $item['label'] }}
-
-
+ @endphp
+ @if (count($inputSistemKelistrikan) > 0)
+ @foreach ($inputSistemKelistrikan as $item)
+
+
+
{{ $item['label'] }}
+
+
-
+
+
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
+
+
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
-
-
-
-
{{-- Linkungan dan Kebersihan Kapal --}}
-
-
-
Linkungan dan Kebersihan Kapal
+
+
-
- @php
+
+
+ @php
- $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,
- ],
- ];
+ $inputLinkungan = [
+ [
+ 'label' => 'Kebersihan Dek Luar',
+ 'name' => 'kebersihan_dek_luar',
+ 'value' => old('kebersihan_dek_luar', $forminspeksi['kebersihan_dek_luar'] ?? ''),
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Tangki Limbah',
+ 'name' => 'tangki_limbah',
+ 'value' => old('tangki_limbah', $forminspeksi['tangki_limbah'] ?? ''),
+ 'index' => 1,
+ ],
+ [
+ 'label' => 'Sistem Pengelolaan Limbah',
+ 'name' => 'sistem_pengelolaan_limbah',
+ 'value' => old('sistem_pengelolaan_limbah', $forminspeksi['sistem_pengelolaan_limbah'] ?? ''),
+ 'index' => 2,
+ ],
+ [
+ 'label' => 'Pengelolaan Air Ballast',
+ 'name' => 'pengelolaan_air_ballast',
+ 'value' => old('pengelolaan_air_ballast', $forminspeksi['pengelolaan_air_ballast'] ?? ''),
+ 'index' => 3,
+ 'index' => 3,
+ ],
+ ];
- @endphp
+ @endphp
- @if (count($inputLinkungan) > 0)
- @foreach ($inputLinkungan as $item)
-
-
-
{{ $item['label'] }}
-
-
+ @if (count($inputLinkungan) > 0)
+ @foreach ($inputLinkungan as $item)
+
+
+
{{ $item['label'] }}
+
+
+
-
- @endforeach
- @endif
-
-
Deskripsi/Keterangan Lain Lain
-
-
+ @endforeach
+ @endif
+
+
Deskripsi/Keterangan Lain Lain
+
+
+
-
-
-
-
-
Analisis Fakta
+
+
-
-
-
Faktor Positif
-
-
-
-
-
+
+
+
+
Faktor Positif
+
+ @if (!empty($forminspeksi['fakta_positif']))
+ @foreach ($forminspeksi['fakta_positif'] as $index => $positif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+ @endif
+
+
-
-
-
-
-
-
-
Faktor Negatif
-
-
-
-
-
+
+
Faktor Negatif
+
+
+ @if (!empty($forminspeksi['fakta_negatif']))
+ @foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
+
+
-
-
-
-
-
-
-
-
-
-
Catatan Yang Perlu Diperhatikan
-
-
-
-
-
+
+
Catatan Yang Perlu Diperhatikan
+
-
-
-
+
-
-
diff --git a/resources/views/surveyor/components/kendaraan.blade.php b/resources/views/surveyor/components/kendaraan.blade.php
index d2c43cc..438a861 100644
--- a/resources/views/surveyor/components/kendaraan.blade.php
+++ b/resources/views/surveyor/components/kendaraan.blade.php
@@ -3,6 +3,11 @@
Order Penilaian
+
@@ -162,8 +167,8 @@
Kendaraan
- @if (isset($jenisKendaraan))
- @foreach ($jenisKendaraan as $item)
+ @if (isset($basicData['jenisKendaraan']))
+ @foreach ($basicData['jenisKendaraan'] as $item)
name, old('kendaraan', $forminspeksi['kendaraan'] ?? [])) ? 'checked' : '' }} />
{{ $item->name }}
-
+
@endforeach
@endif
@@ -400,7 +405,7 @@
$inputDataJaminan = [
[
'label' => 'Transmisi',
- 'value' => ['Terawat', 'Cukup Terawat', 'Tidak Terawat'],
+ 'value' => ['Otomatis', 'Manual'],
'name' => 'transmisi',
'index' => 0,
],
@@ -596,13 +601,24 @@
Faktor Positif
-
-
-
-
-
-
-
+ @if (!empty($forminspeksi['fakta_positif']))
+ @foreach ($forminspeksi['fakta_positif'] as $index => $positif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+ @endif
@@ -610,16 +626,30 @@
+
Faktor Negatif
-
-
-
-
-
-
-
+
+ @if (!empty($forminspeksi['fakta_negatif']))
+ @foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
@@ -627,62 +657,92 @@
-
Analisa makro
-
-
-
-
-
-
-
-
+
-
+ @if (!empty($forminspeksi['analisa_makro']))
+ @foreach ($forminspeksi['analisa_makro'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
+
-
Kesimpulan
-
-
-
-
-
-
-
-
+ @if (!empty($forminspeksi['kesimpulan']))
+ @foreach ($forminspeksi['kesimpulan'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
+
-
-
Catatan Lainnya
+
Kesimpulan
-
-
-
-
-
-
-
-
+ @if (!empty($forminspeksi['catatan']))
+ @foreach ($forminspeksi['catatan'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
+
-
diff --git a/resources/views/surveyor/components/lokasi-jaminan.blade.php b/resources/views/surveyor/components/lokasi-jaminan.blade.php
index 93eff01..eba5387 100644
--- a/resources/views/surveyor/components/lokasi-jaminan.blade.php
+++ b/resources/views/surveyor/components/lokasi-jaminan.blade.php
@@ -49,20 +49,14 @@
@endforeach
@endif
+
Provinsi
-
- Select Province
- @foreach ($provinces as $province)
- code) ||
- (!isset($cekAlamat['province_code']) &&
- isset($debitur->province_code) &&
- $debitur->province_code == $province->code)) selected @endif>
- {{ $province->name }}
-
+
+ Pilih Provinsi
+ @foreach ($provinces as $item)
+ code ? 'selected' : '' }}>{{ $item->name }}
@endforeach
@@ -71,8 +65,13 @@
Kota/Kabupaten
-
+
Pilih Kota/Kabupaten
+ @if(isset($cities))
+ @foreach ($cities as $item)
+ code ? 'selected' : '' }}>{{ $item->name }}
+ @endforeach
+ @endif
@@ -80,8 +79,13 @@
Kecamatan
-
+
Pilih Kecamatan
+ @if(isset($districts))
+ @foreach ($districts as $item)
+ code ? 'selected' : '' }}>{{ $item->name }}
+ @endforeach
+ @endif
@@ -91,6 +95,11 @@
Pilih Kelurahan
+ @if(isset($villages))
+ @foreach ($villages as $item)
+ code ? 'selected' : '' }}>{{ $item->name }}
+ @endforeach
+ @endif
diff --git a/resources/views/surveyor/components/mesin.blade.php b/resources/views/surveyor/components/mesin.blade.php
index 7516aad..91eb842 100644
--- a/resources/views/surveyor/components/mesin.blade.php
+++ b/resources/views/surveyor/components/mesin.blade.php
@@ -1,9 +1,15 @@
-
-
-
Order Penilaian
+
+
@@ -46,10 +52,13 @@
+
-
-
Identitas Debitur
-
+
+
+
+
+
+
+
+
Faktor Positif
+
+ @if (!empty($forminspeksi['fakta_positif']))
+ @foreach ($forminspeksi['fakta_positif'] as $index => $positif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+ @endif
+
+
+
+
+
+
+
+
Faktor Negatif
+
+
+ @if (!empty($forminspeksi['fakta_negatif']))
+ @foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
+
+
+
+
+
+
+
+
Catatan Yang Perlu Diperhatikan
+
+
+
+
+
+
+
diff --git a/resources/views/surveyor/components/pembanding-kendaraan.blade.php b/resources/views/surveyor/components/pembanding-kendaraan.blade.php
new file mode 100644
index 0000000..8d97a1f
--- /dev/null
+++ b/resources/views/surveyor/components/pembanding-kendaraan.blade.php
@@ -0,0 +1,433 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/surveyor/components/pembanding-tanah-bangunan-unit.blade.php b/resources/views/surveyor/components/pembanding-tanah-bangunan-unit.blade.php
new file mode 100644
index 0000000..8a595e4
--- /dev/null
+++ b/resources/views/surveyor/components/pembanding-tanah-bangunan-unit.blade.php
@@ -0,0 +1,448 @@
+
+
+
+
+
+ {{-- @php
+ print_r($inspectionData);
+ @endphp --}}
+
+
+
diff --git a/resources/views/surveyor/components/pesawat.blade.php b/resources/views/surveyor/components/pesawat.blade.php
index 4d16280..6b03bfd 100644
--- a/resources/views/surveyor/components/pesawat.blade.php
+++ b/resources/views/surveyor/components/pesawat.blade.php
@@ -1,10 +1,15 @@
-
-
-
-
-
Order Penilaian
+
+
+
-
-
+
+
-
-
Identitas Debitur
-
+
@@ -64,8 +71,8 @@
-
- {{-- lokasi jaminan --}}
- @include('lpj::surveyor.components.lokasi-jaminan')
+
+ @include('lpj::surveyor.components.lokasi-jaminan')
+
-
+
+
-
-
-
-
Data Data Umum
-
Jenis Pesawat
-
-
- Select Model Kendaraan
- @if (isset($jenisPesawat))
- @foreach ($jenisPesawat as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
+
-
-
-
Size
-
-
- Select Model Kendaraan
- @if (isset($arahMataAngin))
- @foreach ($arahMataAngin as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
-
-
-
-
-
Kondisi
-
-
- Select Model Kendaraan
- @if (isset($arahMataAngin))
- @foreach ($arahMataAngin as $item)
- name ? 'selected' : '' }}>{{ $item->name }}
-
- @endforeach
- @endif
-
-
- @error('hadapMataAngin')
-
- @enderror
+
+
@php
- $inputDataJaminan = [];
+ $inputDataJaminan = [
+ [
+ 'label' => 'Size',
+ 'value' => ['Small', 'Large'],
+ 'name' => 'size',
+ 'index' => 0,
+ ],
+ [
+ 'label' => 'Kondisi',
+ 'value' => ['Laik Terbang', 'Sekrap', 'Rusak', 'Progress'],
+ 'name' => 'kondisi',
+ 'index' => 1,
+ ],
+ ];
+ @endphp
+ @if (count($inputDataJaminan) > 0)
+ @foreach ($inputDataJaminan as $item)
+
+
{{ $item['label'] }}
+
+
+ @if (isset($item['value']))
+ @foreach ($item['value'] as $value)
+
+
+
+ {{ $value }}
+
+
+ @endforeach
+ @endif
+
+
+
+
+
+
+
+ @endforeach
+ @endif
+
+ @php
$inputDataJaminan = [
[
'label' => 'Nama Pesawat',
'name' => 'nama_pesawat',
+ 'value' => old('nama_pesawat', $forminspeksi['nama_pesawat'] ?? ''),
'index' => 0,
],
[
'label' => 'Model',
'name' => 'model',
+ 'value' => old('model', $forminspeksi['model'] ?? ''),
'index' => 1,
],
[
'label' => 'Nomor Registrasi',
'name' => 'nomor_registrasi',
+ 'value' => old('nomor_registrasi', $forminspeksi['nomor_registrasi'] ?? ''),
'index' => 2,
],
[
'label' => 'Tahun Pembuatan',
'name' => 'tahun_pembuatan',
+ 'value' => old('tahun_pembuatan', $forminspeksi['tahun_pembuatan'] ?? ''),
'index' => 3,
],
[
'label' => 'Certificate of Airworthines (C of A)',
'name' => 'certificate_of_airworthines',
+ 'value' => old(
+ 'certificate_of_airworthines',
+ $forminspeksi['certificate_of_airworthines'] ?? '',
+ ),
'index' => 4,
],
[
'label' => 'Certificate of Registration (C of A)',
'name' => 'certificate_of_registration',
+ 'value' => old(
+ 'certificate_of_registration',
+ $forminspeksi['certificate_of_registration'] ?? '',
+ ),
'index' => 5,
],
[
'label' => 'Total Service Hours (TSN - Total Time Since New)',
'name' => 'total_service_hours',
+ 'value' => old('total_service_hours', $forminspeksi['total_service_hours'] ?? ''),
'index' => 6,
],
[
'label' => 'Total Service Cycles (CSN - Cycle Since New)',
'name' => 'total_service_cycles',
+ 'value' => old('total_service_cycles', $forminspeksi['total_service_cycles'] ?? ''),
'index' => 7,
],
];
@@ -216,12 +252,10 @@
@endforeach
@@ -231,12 +265,13 @@
-
+
+
-
-
-
Maintainence Data
-
@php
@@ -245,41 +280,49 @@
[
'label' => 'Last A Check',
'name' => 'last_a_check',
+ 'value' => old('last_a_check', $forminspeksi['last_a_check'] ?? ''),
'index' => 0,
],
[
'label' => 'Next A Check',
'name' => 'next_a_check',
+ 'value' => old('next_a_check', $forminspeksi['next_a_check'] ?? ''),
'index' => 1,
],
[
'label' => 'Last B Check',
'name' => 'last_b_check',
+ 'value' => old('last_b_check', $forminspeksi['last_b_check'] ?? ''),
'index' => 2,
],
[
'label' => 'Next B Check',
'name' => 'next_b_check',
+ 'value' => old('next_b_check', $forminspeksi['next_b_check'] ?? ''),
'index' => 3,
],
[
'label' => 'Last C Check',
'name' => 'last_c_check',
+ 'value' => old('last_c_check', $forminspeksi['last_c_check'] ?? ''),
'index' => 4,
],
[
'label' => 'Next C Check',
'name' => 'next_c_check',
+ 'value' => old('next_c_check', $forminspeksi['next_c_check'] ?? ''),
'index' => 5,
],
[
'label' => 'Next D Check (Overhaul)',
'name' => 'next_d_check',
+ 'value' => old('next_d_check', $forminspeksi['next_d_check'] ?? ''),
'index' => 6,
],
[
'label' => 'Last D Check (Overhaul)',
'name' => 'last_d_check',
+ 'value' => old('last_d_check', $forminspeksi['last_d_check'] ?? ''),
'index' => 7,
],
];
@@ -292,10 +335,10 @@
{{ $item['label'] }}
+ placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}"">
-
+
@endforeach
@@ -304,9 +347,9 @@
Deskripsi/Keterangan Lain Lain
-
+
-
+
@@ -317,13 +360,13 @@
-
+
+
-
-
-
-
Fungsi konfigurasi
-
@php
@@ -332,26 +375,31 @@
[
'label' => 'Instrument Landing System (ILS)',
'name' => 'instrument_landing_system',
+ 'value' => $forminspeksi['instrument_landing_system'] ?? '',
'index' => 0,
],
[
'label' => 'Traffic Collision Avoidance System (TCAS)',
'name' => 'traffic_collision_avoidance_system',
+ 'value' => $forminspeksi['traffic_collision_avoidance_system'] ?? '',
'index' => 1,
],
[
'label' => 'Windshear',
'name' => 'windshear',
+ 'value' => $forminspeksi['windshear'] ?? '',
'index' => 2,
],
[
'label' => 'Electronic Flight Instrument System (EFIS)',
'name' => 'electronic_flight',
+ 'value' => $forminspeksi['electronic_flight'] ?? '',
'index' => 3,
],
[
'label' => 'Winglets ',
'name' => 'winglets',
+ 'value' => $forminspeksi['winglets'] ?? '',
'index' => 4,
],
];
@@ -364,8 +412,9 @@
{{ $item['label'] }}
-
+ placeholder="Masukkan {{ $item['label'] }}"
+ value="{{ old($item['name'], $item['value'] ?? '') }}">
+
@endforeach
@@ -374,7 +423,7 @@
Deskripsi/Keterangan Lain Lain
-
+
@@ -383,11 +432,14 @@
-
+
+
-
-
Kondisi Kabin pesawat
-
+
@php
@@ -395,41 +447,49 @@
[
'label' => 'Maksimal Penumpang',
'name' => 'maksimal_penumpang',
+ 'value' => $forminspeksi['maksimal_penumpang'] ?? '',
'index' => 0,
],
[
'label' => 'Jumlah Kursi',
'name' => 'jumlah_kursi',
+ 'value' => $forminspeksi['jumlah_kursi'] ?? '',
'index' => 1,
],
[
'label' => 'Kursi Pramugari/Pramugara',
'name' => 'kursi_pramugari_pramugara',
+ 'value' => $forminspeksi['kursi_pramugari_pramugara'] ?? '',
'index' => 2,
],
[
'label' => 'Kartu Fitur keselamatan',
'name' => 'kartu_fitur_keselamatan',
+ 'value' => $forminspeksi['kartu_fitur_keselamatan'] ?? '',
'index' => 3,
],
[
'label' => 'Sabuk Pengaman',
'name' => 'sabuk_pengaman',
+ 'value' => $forminspeksi['sabuk_pengaman'] ?? '',
'index' => 4,
],
[
'label' => 'Lampu Kabin',
'name' => 'lampu_kabin',
+ 'value' => $forminspeksi['lampu_kabin'] ?? '',
'index' => 5,
],
[
'label' => 'Lampu Pintu Keluar',
'name' => 'lampu_pintu_keluar',
+ 'value' => $forminspeksi['lampu_pintu_keluar'] ?? '',
'index' => 6,
],
[
'label' => 'Intercom Kabin',
'name' => 'intercom_kabin',
+ 'value' => $forminspeksi['intercom_kabin'] ?? '',
'index' => 7,
],
];
@@ -442,10 +502,9 @@
{{ $item['label'] }}
-
-
-
+ placeholder="Masukkan {{ $item['label'] }}"
+ value="{{ old($item['name'], $item['value'] ?? '') }}">
+
@@ -455,7 +514,7 @@
Deskripsi/Keterangan Lain Lain
-
+
@@ -466,11 +525,14 @@
-
+
+
-
-
Kondisi Struktur Pesawat
-
+
@php
@@ -479,31 +541,37 @@
[
'label' => 'Badan pesawat',
'name' => 'badan_pesawat',
+ 'value' => $forminspeksi['badan_pesawat'] ?? '',
'index' => 0,
],
[
'label' => 'Sayap Pesawat',
'name' => 'sayap_pesawat',
+ 'value' => $forminspeksi['sayap_pesawat'] ?? '',
'index' => 1,
],
[
'label' => 'Ekor peswat',
'name' => 'ekor_pesawat',
+ 'value' => $forminspeksi['ekor_pesawat'] ?? '',
'index' => 2,
],
[
'label' => 'Landing Gear',
'name' => 'landing_gear',
+ 'value' => $forminspeksi['landing_gear'] ?? '',
'index' => 3,
],
[
'label' => 'Sabuk Pengaman',
'name' => 'sabuk_pengaman',
+ 'value' => $forminspeksi['sabuk_pengaman'] ?? '',
'index' => 4,
],
[
'label' => 'Sistem Pengelasan',
'name' => 'sistem_pengelasan',
+ 'value' => $forminspeksi['sistem_pengelasan'] ?? '',
'index' => 5,
],
];
@@ -516,8 +584,9 @@
{{ $item['label'] }}
-
+ placeholder="Masukkan {{ $item['label'] }}"
+ value="{{ old($item['name'], $item['value'] ?? '') }}">
+
@endforeach
@@ -526,8 +595,8 @@
Deskripsi/Keterangan Lain Lain
-
-
+
+
@@ -537,11 +606,14 @@
-
+
+
-
-
Fungsi Navigasi dan Komunikasi
-
+
@php
@@ -549,26 +621,31 @@
[
'label' => 'Gps',
'name' => 'gps',
+ 'value' => $forminspeksi['gps'] ?? '',
'index' => 0,
],
[
'label' => 'Radar',
'name' => 'radar',
+ 'value' => $forminspeksi['radar'] ?? '',
'index' => 1,
],
[
'label' => 'Radio Komunikasi',
'name' => 'radio_komunikasi',
+ 'value' => $forminspeksi['radio_komunikasi'] ?? '',
'index' => 2,
],
[
'label' => 'Lampu Navigasi',
'name' => 'lampu_navigasi',
+ 'value' => $forminspeksi['lampu_navigasi'] ?? '',
'index' => 3,
],
[
'label' => 'Sistem Autopilot',
'name' => 'sistem_autopilot',
+ 'value' => $forminspeksi['sistem_autopilot'] ?? '',
'index' => 4,
],
];
@@ -580,8 +657,9 @@
{{ $item['label'] }}
-
+ placeholder="Masukkan {{ $item['label'] }}"
+ value="{{ old($item['name'], $item['value'] ?? '') }}">
+
@endforeach
@@ -589,9 +667,9 @@
Deskripsi/Keterangan Lain Lain
-
+
-
+
@@ -601,11 +679,14 @@
-
+
+
-
-
Kondisi Sistem Bahan Bakar dan Hidrolic
-
+
@php
@@ -613,26 +694,31 @@
[
'label' => 'Tangki Bahan Bakar',
'name' => 'tangki_bahan_bakar',
+ 'value' => $forminspeksi['tangki_bahan_bakar'] ?? '',
'index' => 0,
],
[
'label' => 'Saluran & Pipa Bahan Bakar',
'name' => 'saluran_pipa_bahan_bakar',
+ 'value' => $forminspeksi['saluran_pipa_bahan_bakar'] ?? '',
'index' => 1,
],
[
'label' => 'Pompa Bahan Bakar',
'name' => 'pompa_bahan_bakar',
+ 'value' => $forminspeksi['pompa_bahan_bakar'] ?? '',
'index' => 2,
],
[
'label' => 'Sistem Hidrolik Utama',
'name' => 'sistem_hidrolik_utama',
+ 'value' => $forminspeksi['sistem_hidrolik_utama'] ?? '',
'index' => 3,
],
[
'label' => 'Sistem Pendigin Hidrolik',
'name' => 'sistem_pendigin_hidrolik',
+ 'value' => $forminspeksi['sistem_pendigin_hidrolik'] ?? '',
'index' => 4,
],
];
@@ -643,9 +729,10 @@
@endforeach
@@ -654,9 +741,8 @@
Deskripsi/Keterangan Lain Lain
-
-
-
+
+
@@ -665,11 +751,14 @@
-
+
+
-
-
Kondisi Mesin dan Propulis
-
+
@php
@@ -677,26 +766,31 @@
[
'label' => 'Mesin Utama',
'name' => 'mesin_utama',
+ 'value' => $forminspeksi['mesin_utama'] ?? '',
'index' => 0,
],
[
'label' => 'Sistem Pendorong',
'name' => 'sistem_pendorong',
+ 'value' => $forminspeksi['sistem_pendorong'] ?? '',
'index' => 1,
],
[
'label' => 'Sistem Pendigin Mesin',
'name' => 'sistem_pendigin_mesin',
+ 'value' => $forminspeksi['sistem_pendigin_mesin'] ?? '',
'index' => 2,
],
[
'label' => 'Sistem pelumasan',
'name' => 'sistem_pelumasan',
+ 'value' => $forminspeksi['sistem_pelumasan'] ?? '',
'index' => 3,
],
[
'label' => 'Filter dan Perangkat Pendukung',
'name' => 'filter_dan_perangkat_pendukung',
+ 'value' => $forminspeksi['filter_dan_perangkat_pendukung'] ?? '',
'index' => 4,
],
];
@@ -707,9 +801,10 @@
@endforeach
@@ -718,8 +813,8 @@
Deskripsi/Keterangan Lain Lain
-
-
+
+
@@ -728,11 +823,14 @@
-
+
+
-
-
Fungsi keselamatan dan darurat
-
+
@php
@@ -740,36 +838,44 @@
[
'label' => 'Jaket pelampung',
'name' => 'jaket_pelampung',
+ 'value' => $forminspeksi['jaket_pelampung'] ?? '',
'index' => 0,
],
[
'label' => 'Pintu darurat',
'name' => 'pintu_darurat',
+ 'value' => $forminspeksi['pintu_darurat'] ?? '',
'index' => 1,
],
[
'label' => 'Alat Pemadaman Kebakaran',
'name' => 'alat_pemadaman_kebakaran',
+ 'value' => $forminspeksi['alat_pemadaman_kebakaran'] ?? '',
'index' => 2,
],
[
'label' => 'Sistem Alaram Darurat',
'name' => 'sistem_alaram_darurat',
+ 'value' => $forminspeksi['sistem_alaram_darurat'] ?? '',
+ 'index' => 3,
'index' => 3,
],
[
'label' => 'Sekoci',
'name' => 'sekoci',
+ 'value' => $forminspeksi['sekoci'] ?? '',
'index' => 4,
],
[
'label' => 'Masker Oksigen',
'name' => 'masker_oxigen',
+ 'value' => $forminspeksi['masker_oxigen'] ?? '',
'index' => 5,
],
[
'label' => 'Sabuk Pengaman',
'name' => 'sabuk_pengaman',
+ 'value' => $forminspeksi['sabuk_pengaman'] ?? '',
'index' => 6,
],
];
@@ -780,11 +886,10 @@
@endforeach
@@ -793,7 +898,7 @@
Deskripsi/Keterangan Lain Lain
-
+
@@ -805,11 +910,14 @@
-
+
+
-
-
Interior dan Sistem Pendukung Kabin
-
+
@php
@@ -817,21 +925,25 @@
[
'label' => 'Sistem ventilasi & AC',
'name' => 'sistem_ventilasi_ac',
+ 'value' => $forminspeksi['sistem_ventilasi_ac'] ?? '',
'index' => 0,
],
[
'label' => 'Sistem Penerangan Kabin',
'name' => 'sistem_penerangan_kabin',
+ 'value' => $forminspeksi['sistem_penerangan_kabin'] ?? '',
'index' => 1,
],
[
'label' => 'Panel Informasi Penumpang',
'name' => 'panel_informasi_penumpang',
+ 'value' => $forminspeksi['panel_informasi_penumpang'] ?? '',
'index' => 2,
],
[
'label' => 'Sistem Hiburan Kabin',
'name' => 'sistem_hiburan_kabin',
+ 'value' => $forminspeksi['sistem_hiburan_kabin'] ?? '',
'index' => 3,
],
];
@@ -842,9 +954,10 @@
@endforeach
@@ -853,8 +966,8 @@
Deskripsi/Keterangan Lain Lain
-
-
+
+
@@ -862,22 +975,36 @@
-
+
+
+
-
-
Analisis Fakta
-
Faktor Positif
-
-
-
-
-
-
-
+ @if (!empty($forminspeksi['fakta_positif']))
+ @foreach ($forminspeksi['fakta_positif'] as $index => $positif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+ @endif
@@ -888,13 +1015,26 @@
Faktor Negatif
-
-
-
-
-
-
-
+
+ @if (!empty($forminspeksi['fakta_negatif']))
+ @foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
+
+
+
+
+
+
+ @endforeach
+ @else
+
+
+
+
+
+
+
+ @endif
@@ -902,9 +1042,6 @@
-
-
-
Catatan Yang Perlu Diperhatikan
diff --git a/resources/views/surveyor/components/tanah.blade.php b/resources/views/surveyor/components/tanah.blade.php
index 2da8007..250c3de 100644
--- a/resources/views/surveyor/components/tanah.blade.php
+++ b/resources/views/surveyor/components/tanah.blade.php
@@ -65,24 +65,6 @@
Hadap Mata Angin
- @if (isset($permohonan->debiture->documents))
- @foreach ($permohonan->debiture->documents as $item)
- @php
- $luas = $item->detail;
- if(is_array($luas)){
- $details = json_decode($luas[0]->details, true);
- $hadap_mata_angin = isset($details['hadap_mata_angin'])
- ? $details['hadap_mata_angin']
- : 'N/A';
- } else {
- $luas_tanah = $hadap_mata_angin= 'N/A';
- }
- @endphp
-
-
{{ $hadap_mata_angin }} m2
- @endforeach
- @endif
diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.php
index 733b452..00611bf 100644
--- a/routes/breadcrumbs.php
+++ b/routes/breadcrumbs.php
@@ -463,6 +463,10 @@
$trail->parent('otorisator');
$trail->push('Otorisator', route('otorisator.pelaporan.index'));
});
+ Breadcrumbs::for('otorisator.view-laporan', function (BreadcrumbTrail $trail) {
+
+ $trail->push('Otorisator Pelaporan');
+ });
// basic data surveyor
diff --git a/routes/web.php b/routes/web.php
index bcb087d..e31cc68 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -574,6 +574,7 @@ Route::middleware(['auth'])->group(function () {
Route::get('paparan', [PenilaiController::class, 'paparan'])->name('paparan');
Route::get('rap', [PenilaiController::class, 'rap'])->name('rap');
Route::get('/check-status-lpj', [PenilaiController::class, 'checkStatusLpj'])->name('check.status.lpj');
+ Route::get('/check-laporan', [PenilaiController::class, 'checkPrintOutLaporan'])->name('check-laporan');
Route::post('/save-status-lpj', [PenilaiController::class, 'saveStatusLpj'])->name('save.status.lpj');
Route::post('/preoses-laporan/{id}', [PenilaiController::class, 'storePenilaian'])->name('proses.laporan');