perbaikan laporan berdasarkan form inspeksi di so dan penilai dan perbaikan tambah data di jenis jaminan
This commit is contained in:
@@ -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;
|
||||
@@ -470,6 +500,7 @@ class PenilaiController extends Controller
|
||||
public function saveStatusLpj(Request $request)
|
||||
{
|
||||
|
||||
|
||||
Penilai::updateOrCreate(
|
||||
[
|
||||
'permohonan_id' => $request->permohonan_id,
|
||||
@@ -478,6 +509,7 @@ class PenilaiController extends Controller
|
||||
],
|
||||
[
|
||||
'type' => $request->type,
|
||||
'type_penilai' => $request->type,
|
||||
]
|
||||
);
|
||||
|
||||
@@ -485,6 +517,7 @@ class PenilaiController extends Controller
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function storePenilaian($id)
|
||||
{
|
||||
try {
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
@@ -644,7 +651,25 @@ class PenilaianController extends Controller
|
||||
$lpjData = json_decode($lpj->lpj, true);
|
||||
}
|
||||
|
||||
return view('lpj::penilaian.laporan-so', compact('permohonan', 'forminspeksi', 'basicData', 'inspeksi', 'lpjData'));
|
||||
$viewLaporan = $this->getViewLaporan($lpj->type_penilai);
|
||||
|
||||
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)
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
$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,
|
||||
];
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
];
|
||||
|
||||
@@ -23,6 +23,7 @@ class Penilai extends Model
|
||||
'lpj',
|
||||
'type',
|
||||
'memo',
|
||||
'type_penilai'
|
||||
];
|
||||
|
||||
// protected static function newFactory(): PenilaiFactory
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('penilai', function (Blueprint $table) {
|
||||
$table->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');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -100,7 +100,7 @@
|
||||
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
||||
@foreach ($jenisLegalitasJaminan as $row)
|
||||
<label class="switch">
|
||||
@if (!empty(json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true)))
|
||||
@if ( isset($jenisJaminan) && !empty(json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true)))
|
||||
<input type="checkbox" @if (in_array($row->code, json_decode($jenisJaminan->jenis_legalitas_jaminan_id, true))) {{ 'checked' }} @endif
|
||||
value="{{ $row->code }}" name="jenis_legalitas_jaminan_id[]" />
|
||||
@else
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
Memo Antar Kantor
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ route('penilai.show', ['id' => $permohonan->id]) }}" class="btn btn-xs btn-info">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
Data Jaminan
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ route('penilai.show', ['id' => $permohonan->id]) }}" class="btn btn-xs btn-info">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
<h3 class="card-title uppercase">
|
||||
Order Penilaian
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5 grid-cols-2">
|
||||
@@ -404,13 +409,24 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Positif</label>
|
||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['fakta_positif']))
|
||||
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
@@ -421,6 +437,18 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@if (!empty($forminspeksi['fakta_negatif']))
|
||||
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old('fakta_negatif.0', $forminspeksi['fakta_negatif'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
@@ -428,6 +456,7 @@
|
||||
</button>
|
||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
|
||||
@@ -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 = [
|
||||
[
|
||||
|
||||
@@ -15,455 +15,8 @@
|
||||
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
||||
<input type="hidden" name="type" value="tanah">
|
||||
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title">Data Pembanding</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ route('surveyor.show', ['id' => request('pembanding')]) }}"
|
||||
class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Kembali
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-header bg-agi-50 py-5 flex-wrap flex justify-end">
|
||||
<button type="button" id="addColumnBtn" class="btn btn-primary btn-sm">
|
||||
<i class="ki-filled ki-plus"></i> Tambah Pembanding
|
||||
</button>
|
||||
<button type="button" id="removeColumnBtn" class="btn btn-danger btn-sm ml-2"
|
||||
style="display: none;">
|
||||
<i class="ki-filled ki-minus"></i> Hapus Pembanding
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{-- @php
|
||||
print_r($inspectionData);
|
||||
@endphp --}}
|
||||
|
||||
<div class="card-body">
|
||||
<div class="scrollable-x-auto">
|
||||
<table id="dataTable"
|
||||
class="table table-auto table-border align-middle text-gray-700 font-medium text-sm">
|
||||
<thead class="bg-gray-50 sticky top-0">
|
||||
<tr>
|
||||
<th class="px-4 py-3 min-w-[200px]">Parameter</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Objek Penilaian</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Data Pembanding 1</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Informasi Dasar -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Informasi Dasar</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Foto</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage1"
|
||||
src="{{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? asset('storage/' . $fotoForm['object_jaminan'][0]['foto_objek']) : '' }}"
|
||||
class="max-w-[200px] {{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? '' : 'hidden' }}"
|
||||
alt="Uploaded Image">
|
||||
<input type="file" name="foto_objek" class="file-input"
|
||||
accept="image/*" onchange="previewImage(this, 'uploadedImage1')">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage2" class="max-w-[200px] hidden"
|
||||
alt="Pembanding Image">
|
||||
<input type="file" name="foto_objek_pembanding[]" class="file-input"
|
||||
accept="image/*" onchange="previewImage(this, 'uploadedImage2')">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<!-- Data Properti -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Data Properti</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Jenis Aset</td>
|
||||
<td class="px-4 py-2">
|
||||
<select name="jenis_aset" class="select">
|
||||
<option value="">Pilih Jenis Aset</option>
|
||||
@foreach ($data['jenisJaminan'] as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ ($inspectionData['asset']['jenis_asset']['sesuai'] ?? '') == $item->name ? 'selected' : '' }}>
|
||||
{{ $item->name }}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select name="jenis_aset_pembanding[]" class="select">
|
||||
<option value="">Pilih Jenis Aset</option>
|
||||
@foreach ($data['jenisJaminan'] as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ ($inspectionData['jenis_aset'] ?? '') == $item->name ? 'selected' : '' }}>
|
||||
{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Luas Tanah (m²)</td>
|
||||
@php
|
||||
$cekLuas =
|
||||
isset($inspectionData['tanah']['luas_tanah']) == 'sesuai'
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
|
||||
@endphp
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_tanah" class="input number-format"
|
||||
value="{{ $inspectionData['tanah']['luas_tanah']['sesuai'] ?? ($inspectionData['tanah']['luas_tanah']['tidak sesuai'] ?? '') }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_pembanding[]"
|
||||
class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Luas Bangunan (m²)</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan"
|
||||
class="input number-format"
|
||||
value="{{ $inspectionData['bangunan']['luas_tanah_bagunan']['sesuai'] ?? ($inspectionData['bangunan']['luas_tanah_bagunan']['tidak sesuai'] ?? '') }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]"
|
||||
class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Informasi Harga -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Informasi</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Hak atas properti yang dialihkan</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti" class="input"
|
||||
value="{{ $inspectionData['asset']['hak_properti'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Penawaran/ Transaksi</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran" class="input"
|
||||
value="{{ $inspectionData['asset']['penawaran'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Telepon Contact Person</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon" class="input"
|
||||
value="{{ $inspectionData['asset']['telepon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Status Narasumber</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['status_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Nama Narasumber</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['nama_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Lokasi -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Lokasi</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Koordinat</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat" class="input"
|
||||
placeholder="Latitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lat'] ?? '' }}">
|
||||
<input type="text" name="kordinat_lng" class="input"
|
||||
placeholder="Longitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lng'] ?? '' }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat_pembanding[]" class="input"
|
||||
placeholder="Latitude">
|
||||
<input type="text" name="kordinat_lng_pembanding[]" class="input"
|
||||
placeholder="Longitude">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Alamat</td>
|
||||
<td class="px-4 py-2">
|
||||
@php
|
||||
$statusAlamat = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address =
|
||||
$inspectionData['asset']['alamat'][$statusAlamat]['address'] ??
|
||||
null;
|
||||
@endphp
|
||||
<textarea name="address" class="input py-2" rows="2">{{ $address }}</textarea>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<textarea name="address_pembanding[]" class="input py-2" rows="2"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Provinsi</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code" name="province_code" class="input w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'province_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Select Province</option>
|
||||
@foreach ($provinces as $province)
|
||||
@php
|
||||
$statusKey = isset(
|
||||
$inspectionData['asset']['alamat']['sesuai'],
|
||||
)
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedProvince =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'province_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
|
||||
<option value="{{ $province->code }}"
|
||||
{{ $selectedProvince == $province->code ? 'selected' : '' }}>
|
||||
{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code_pembanding" name="province_code_pembanding[]"
|
||||
onchange="handleProvinceChange(this)" class="input w-full">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach ($provinces as $province)
|
||||
<option value="{{ $province->code }}">{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kabupaten/Kota</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code" name="city_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedCity =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'city_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
@if (isset($selectedCity))
|
||||
@foreach ($cities as $city)
|
||||
<option value="{{ $city->code }}"
|
||||
{{ $selectedCity == $city->code ? 'selected' : '' }}>
|
||||
{{ $city->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code_pembanding" name="city_code_pembanding[]"
|
||||
onchange="handleCityChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kecamatan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="district_code" name="district_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDisrict =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'district_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDisrict))
|
||||
@foreach ($districts as $district)
|
||||
<option value="{{ $district->code }}"
|
||||
{{ $selectedDisrict == $district->code ? 'selected' : '' }}>
|
||||
{{ $district->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<select id="district_code_pembanding" name="district_code_pembanding[]"
|
||||
onchange="handleDistrictChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Desa/Kelurahan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code" name="village_code" class="select w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDesa =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'village_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDesa))
|
||||
@foreach ($villages as $village)
|
||||
<option value="{{ $village->code }}"
|
||||
{{ $selectedDesa == $village->code ? 'selected' : '' }}>
|
||||
{{ $village->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code_pembanding" name="village_code_pembanding[]"
|
||||
class="input w-full">
|
||||
<option value="">Pilih Desa/Kelurahan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Harga Per Meter</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga" class="input currency-format"
|
||||
value="{{ $inspectionData['asset']['harga'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_pembanding[]"
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon" class=" currency"
|
||||
value="{{ $inspectionData['asset']['diskon'] ?? '' }}">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td class=" px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon_pembanding[]"
|
||||
class="currency">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td class="px-4 py-2">Total</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total" class="input currency"
|
||||
value="{{ $inspectionData['asset']['total'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total_pembanding[]"
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon" class="input currency-format" readonly
|
||||
value="{{ $inspectionData['asset']['harga_diskon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon_pembanding[]" readonly
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('lpj::surveyor.components.pembanding-kendaraan')
|
||||
<div class="card-footer">
|
||||
<div class="flex justify-end gap-2">
|
||||
<button type="button" onclick="submitData()" class="btn btn-primary">
|
||||
|
||||
@@ -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))
|
||||
<div id="lantaiContainer" class="mt-2">
|
||||
<!-- Lantai akan dinamis ditambahkan di sini -->
|
||||
<div class="lantai-item mb-4" id="lantai-item-1">
|
||||
@@ -390,6 +394,7 @@
|
||||
<i class="ki-outline ki-plus text-2sm"></i>
|
||||
Lainnya
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -233,7 +233,8 @@
|
||||
@else
|
||||
<div class="keterangan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea name="keterangan[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3"></textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-keterangan" class="alert text-danger text-sm"></em>
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Order Penilaian</h1>
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Order Penilaian
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5 grid-cols-2">
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
@@ -45,15 +49,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-body">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Identitas Debitur</h1>
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Identitas Debitur
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<div class="grid gap-5">
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
@@ -68,10 +71,10 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Nama Wakil Debitur</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="nama_wakil" class="input"
|
||||
placeholder="Masukkan Hubungan Calon Debitur">
|
||||
<input type="text" name="nama_wakil" class="input" placeholder="Masukkan Hubungan Calon Debitur"
|
||||
value="{{ old('nama_wakil_debitur', $forminspeksi['nama_wakil_debitur'] ?? '') }}">
|
||||
|
||||
<em id="error-nama_wakil" class="alert text-danger text-sm"></em>
|
||||
<em id="error-nama_wakil_debitur" class="alert text-danger text-sm"></em>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -79,108 +82,117 @@
|
||||
<label class="form-label max-w-56">Hubungan Calon Debitur</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="hub_calon_debitur" class="input"
|
||||
placeholder="Masukkan Hubungan Calon Debitur">
|
||||
placeholder="Masukkan Hubungan Calon Debitur"
|
||||
value="{{ old('hub_calon_debitur', $forminspeksi['hub_calon_debitur'] ?? '') }}">
|
||||
|
||||
|
||||
<em id="error-hub_calon_debitur" class="alert text-danger text-sm"></em>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- lokasi jaminan --}}
|
||||
<div class="card border border-agi-100 rounded-lg shadow-md">
|
||||
@include('lpj::surveyor.components.lokasi-jaminan')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Data Data Jaminan</h1>
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Data Data Jaminan
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body rounded-lg overflow-hidden">
|
||||
<div class="grid gap-5">
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Jenis</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||
name="hadapMataAngin">
|
||||
<option value="">Select Jenis</option>
|
||||
@if (isset($jenisKapal))
|
||||
@foreach ($jenisKapal as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
|
||||
@error('hadapMataAngin')
|
||||
<em class="alert text-danger text-sm"></em>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Size</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||
name="hadapMataAngin">
|
||||
<option value="">Select Size</option>
|
||||
@if (isset($arahMataAngin))
|
||||
@foreach ($arahMataAngin as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
||||
</option>
|
||||
<label class="form-label max-w-56">Jenis Pesawat</label>
|
||||
<div class="flex-wrap items-stretch">
|
||||
<div class="flex flex-col items-start gap-4">
|
||||
@if (isset($basicData['jenisKapal']))
|
||||
@foreach ($basicData['jenisKapal'] as $item)
|
||||
<div class="flex items-center">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||
<input class="checkbox" name="jenis_kapal[]" type="checkbox"
|
||||
value="{{ $item->name }}"
|
||||
{{ in_array($item->name, old('jenis_kapal', [])) ||
|
||||
(isset($forminspeksi['jenis_kapal']) &&
|
||||
is_array($forminspeksi['jenis_kapal']) &&
|
||||
in_array($item->name, $forminspeksi['jenis_kapal']))
|
||||
? 'checked'
|
||||
: '' }}
|
||||
onclick="toggleCheckboxVisibility('jenis_kapal', 'jenis_kapal_lainnya', ['lainnya'])" />
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
@if (strcasecmp($item->name, 'lainnya') == 0)
|
||||
<input id="jenis_kapal_lainnya" type="text"
|
||||
style="{{ isset($forminspeksi['jenis_kapal_lainnya']) && $forminspeksi['jenis_kapal_lainnya'] ? '' : 'display: none;' }}"
|
||||
name="jenis_kapal_lainnya" class="input w-full mt-2"
|
||||
placeholder="Masukkan bentuk tanah..."
|
||||
value="{{ old('jenis_kapal_lainnya', $forminspeksi['jenis_kapal_lainnya'] ?? '') }}" />
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
|
||||
@error('hadapMataAngin')
|
||||
<em class="alert text-danger text-sm"></em>
|
||||
@enderror
|
||||
</div>
|
||||
<em id="error-jenis_kapal" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@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)
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mt-2">
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<div class="flex flex-col items-start gap-4">
|
||||
@if (isset($item['value']))
|
||||
@foreach ($item['value'] as $value)
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Kondisi</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||
name="hadapMataAngin">
|
||||
<option value="">Select Jenis</option>
|
||||
@if (isset($arahMataAngin))
|
||||
@foreach ($arahMataAngin as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
||||
</option>
|
||||
<label class="form-label max-w-56 gap-2.5" style="width: 500px">
|
||||
<input class="checkbox" name="{{ $item['name'] }}[]" type="checkbox"
|
||||
value="{{ $value }}"
|
||||
{{ in_array($value, old($item['name'], $forminspeksi[$item['name']] ?? [])) ? 'checked' : '' }} />
|
||||
{{ $value }}
|
||||
</label>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
|
||||
@error('hadapMataAngin')
|
||||
<em class="alert text-danger text-sm"></em>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
<em id="error-{{ $item['name'] }}-input-{{ $loop->index }}"
|
||||
class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Klasifikasi</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||
name="hadapMataAngin">
|
||||
<option value="">Select Jenis</option>
|
||||
@if (isset($arahMataAngin))
|
||||
@foreach ($arahMataAngin as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
|
||||
@error('hadapMataAngin')
|
||||
<em class="alert text-danger text-sm"></em>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
|
||||
@@ -188,96 +200,116 @@
|
||||
[
|
||||
'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,
|
||||
],
|
||||
];
|
||||
@@ -290,9 +322,9 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -300,11 +332,16 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Struktur Kapal</h1>
|
||||
</div>
|
||||
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Struktur Kapal
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@php
|
||||
|
||||
@@ -312,41 +349,49 @@
|
||||
[
|
||||
'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,
|
||||
],
|
||||
];
|
||||
@@ -360,7 +405,7 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||
|
||||
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
@@ -372,7 +417,7 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_struktur" id="" class="textarea"></textarea>
|
||||
<textarea name="deskripsi_struktur" id="" class="textarea">{{ old('deskripsi_struktur', $forminspeksi['deskripsi_struktur'] ?? '') }}</textarea>
|
||||
|
||||
<em id="error_deskripsi_struktur" class="alert text-danger text-sm"></em>
|
||||
|
||||
@@ -380,53 +425,66 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Peralatan Keselamatan --}}
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Peralatan Keselamatan</h1>
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Peralatan Keselamatan
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@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,
|
||||
],
|
||||
];
|
||||
@@ -440,8 +498,8 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -449,20 +507,24 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_peralatan" id="" class="textarea"></textarea>
|
||||
<textarea name="deskripsi_peralatan" id="" class="textarea">{{ old('deskripsi_peralatan', $forminspeksi['deskripsi_peralatan'] ?? '') }}</textarea>
|
||||
|
||||
<em id="error_deskripsi_peralatan" class="alert text-danger text-sm"></em>
|
||||
<em id="error-deskripsi_peralatan" class="alert text-danger text-sm"></em>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{-- Sistwm Navigasi dan Komunikasi --}}
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Sistem Navigasi dan Komunikasi</h1>
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Sistem Navigasi dan Komunikasi
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@php
|
||||
|
||||
@@ -470,31 +532,37 @@
|
||||
[
|
||||
'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,
|
||||
],
|
||||
];
|
||||
@@ -508,10 +576,8 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
|
||||
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -519,19 +585,23 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_navigasi" id="" class="textarea"></textarea>
|
||||
<em id="error_deskripsi_navigasi" class="alert text-danger text-sm"></em>
|
||||
<textarea name="deskripsi_navigasi" id="" class="textarea">{{ old('deskripsi_navigasi', $forminspeksi['deskripsi_navigasi'] ?? '') }}</textarea>
|
||||
<em id="error-deskripsi_navigasi" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- Sistwm Mesin dan Penggerak Kapal --}}
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Sistem Mesin dan Penggerak Kapal</h1>
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Sistem Mesin dan Penggerak Kapal
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@php
|
||||
|
||||
@@ -539,31 +609,37 @@
|
||||
[
|
||||
'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,
|
||||
],
|
||||
];
|
||||
@@ -577,8 +653,8 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
placeholder="Masukkan {{ $item['label'] }}" value={{ $item['value'] }}>
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -586,19 +662,23 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_mesin_penggerak" id="" class="textarea"></textarea>
|
||||
<em id="error_deskripsi_mesin_penggerak" class="alert text-danger text-sm"></em>
|
||||
<textarea name="deskripsi_mesin_penggerak" id="" class="textarea">{{ old('deskripsi_mesin_penggerak', $forminspeksi['deskripsi_mesin_penggerak'] ?? '') }}</textarea>
|
||||
<em id="error-deskripsi_mesin_penggerak" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- Sistwm kelistrikan dan Elektronik --}}
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Sistem Kelistrikan dan Elektronik</h1>
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Sistem Kelistrikan dan Elektronik
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@php
|
||||
$inputSistemKelistrikan = [];
|
||||
@@ -607,21 +687,26 @@
|
||||
[
|
||||
'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,
|
||||
],
|
||||
];
|
||||
@@ -635,10 +720,9 @@
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||
|
||||
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
<em id="error-{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -647,7 +731,7 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_kelistrikan" id="" class="textarea"></textarea>
|
||||
<textarea name="deskripsi_kelistrikan" id="" class="textarea">{{ old('deskripsi_kelistrikan', $forminspeksi['deskripsi_kelistrikan'] ?? '') }}</textarea>
|
||||
|
||||
<em id="error_deskripsi_kelistrikan" class="alert text-danger text-sm"></em>
|
||||
|
||||
@@ -655,35 +739,43 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Linkungan dan Kebersihan Kapal --}}
|
||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Linkungan dan Kebersihan Kapal</h1>
|
||||
</div>
|
||||
{{-- Linkungan dan Kebersihan Kapal --}}
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Linkungan dan Kebersihan Kapal
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body overflow-hidden">
|
||||
|
||||
<div class="grid gap-5">
|
||||
@php
|
||||
|
||||
|
||||
$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,
|
||||
],
|
||||
];
|
||||
@@ -696,8 +788,8 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="bentuk_tanah" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}">
|
||||
<input type="text" name="{{ $item['name'] }}" class="input"
|
||||
placeholder="Masukkan {{ $item['label'] }}" value={{ $item['value'] }}>
|
||||
|
||||
|
||||
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
|
||||
@@ -709,7 +801,7 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<textarea name="deskripsi_kebersihan" id="" class="textarea"></textarea>
|
||||
<textarea name="deskripsi_kebersihan" id="" class="textarea">{{ old('deskripsi_kebersihan', $forminspeksi['deskripsi_kebersihan'] ?? '') }}</textarea>
|
||||
|
||||
<em id="error_deskripsi_kebersihan" class="alert text-danger text-sm"></em>
|
||||
|
||||
@@ -717,24 +809,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card border border-agi-100 bg-white rounded-lg overflow-hidden">
|
||||
<div class="card-body">
|
||||
<div class=" py-4 ">
|
||||
<h1 class="text-md font-medium text-gray-900">Analisis Fakta</h1>
|
||||
</div>
|
||||
|
||||
<div class="card border border-agi-100 rounded-lg overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Analisis Fakta
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5">
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Positif</label>
|
||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['fakta_positif']))
|
||||
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
@@ -745,6 +850,18 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@if (!empty($forminspeksi['fakta_negatif']))
|
||||
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old('fakta_negatif.0', $forminspeksi['fakta_negatif'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
@@ -752,6 +869,7 @@
|
||||
</button>
|
||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
@@ -759,9 +877,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Catatan Yang Perlu Diperhatikan</label>
|
||||
<div id="catatan-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
<h3 class="card-title uppercase">
|
||||
Order Penilaian
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5 grid-cols-2">
|
||||
@@ -162,8 +167,8 @@
|
||||
<label class="form-label max-w-56">Kendaraan</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<div class="flex flex-col items-start gap-4">
|
||||
@if (isset($jenisKendaraan))
|
||||
@foreach ($jenisKendaraan as $item)
|
||||
@if (isset($basicData['jenisKendaraan']))
|
||||
@foreach ($basicData['jenisKendaraan'] as $item)
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56 gap-2.5" style="width: 500px">
|
||||
<input class="checkbox" name="kendaraan[]" type="checkbox"
|
||||
@@ -171,9 +176,9 @@
|
||||
{{ in_array($item->name, old('kendaraan', $forminspeksi['kendaraan'] ?? [])) ? 'checked' : '' }} />
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
<input type="text" name="sarana_pelengkap_input[]" class="input w-full"
|
||||
id="bentukTanahInput" placeholder="Masukkan {{ $item->name }}..."
|
||||
value="{{ old('sarana_pelengkap_input.' . $loop->index, $forminspeksi['sarana_pelengkap_input'][$loop->index] ?? '') }}">
|
||||
<input type="text" name="kendaraan_input[]" class="input w-full"
|
||||
id="kendaraan_input" placeholder="Masukkan {{ $item->name }}..."
|
||||
value="{{ old('kendaraan_input.' . $loop->index, $forminspeksi['kendaraan_input'][$loop->index] ?? '') }}">
|
||||
</div>
|
||||
@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 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Positif</label>
|
||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['fakta_positif']))
|
||||
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
@@ -610,9 +626,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@if (!empty($forminspeksi['fakta_negatif']))
|
||||
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old('fakta_negatif.0', $forminspeksi['fakta_negatif'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
@@ -620,6 +649,7 @@
|
||||
</button>
|
||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
@@ -627,29 +657,50 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Analisa makro</label>
|
||||
<div class="flex flex-wrap items-baseline w-full" id="analisa-makro-container">
|
||||
<div id="analisa_makro-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@if (!empty($forminspeksi['analisa_makro']))
|
||||
@foreach ($forminspeksi['analisa_makro'] as $index => $negatif)
|
||||
<div class="analisa_makro flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="analisa_makro[]" rows="3" placeholder="Tambahkan keterangan"></textarea>
|
||||
<textarea class="textarea mt-2" name="analisa_makro[]" rows="3">{{ old("analisa_makro.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="analisa_makro flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="analisa_makro[]" rows="3">{{ old('analisa_makro.0', $forminspeksi['analisa_makro'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-analisa_makro" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary btn-sm mt-5" type="button"
|
||||
onclick="addClonableItem('analisa-makro-container', 'analisa_makro')">
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('analisa_makro-container', 'analisa_makro')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Kesimpulan</label>
|
||||
<div id="kesimpulan-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['kesimpulan']))
|
||||
@foreach ($forminspeksi['kesimpulan'] as $index => $negatif)
|
||||
<div class="kesimpulan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="kesimpulan[]" rows="3">{{ old("kesimpulan.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="kesimpulan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="kesimpulan[]" rows="3">{{ old('kesimpulan.0', $forminspeksi['kesimpulan'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
@@ -657,18 +708,28 @@
|
||||
</button>
|
||||
<em id="error-kesimpulan" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
<button type="button"
|
||||
onclick="addClonableItem('kesimpulan-container', 'kesimpulan')"
|
||||
class="btn btn-primary btn-sm mt-5 ">
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('kesimpulan-container', 'kesimpulan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Catatan Lainnya</label>
|
||||
<label class="form-label max-w-56">Kesimpulan</label>
|
||||
<div id="catatan-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['catatan']))
|
||||
@foreach ($forminspeksi['catatan'] as $index => $negatif)
|
||||
<div class="catatan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old("catatan.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="catatan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old('catatan.0', $forminspeksi['catatan'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
@@ -676,13 +737,12 @@
|
||||
</button>
|
||||
<em id="error-catatan" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
<button type="button"
|
||||
onclick="addClonableItem('catatan-container', 'catatan')"
|
||||
class="btn btn-primary btn-sm mt-5 ">
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('catatan-container', 'catatan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -49,20 +49,14 @@
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label for="province_code" class="form-label max-w-56">Provinsi</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select id="province_code" name="province_code" class="input w-full" onchange="getCity(this.value)">
|
||||
<option value="">Select Province</option>
|
||||
@foreach ($provinces as $province)
|
||||
<option value="{{ $province->code }}"
|
||||
@if (
|
||||
(isset($cekAlamat['province_code']) && $cekAlamat['province_code'] == $province->code) ||
|
||||
(!isset($cekAlamat['province_code']) &&
|
||||
isset($debitur->province_code) &&
|
||||
$debitur->province_code == $province->code)) selected @endif>
|
||||
{{ $province->name }}
|
||||
</option>
|
||||
<select id="province_code" name="province_code" class="input w-full">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach ($provinces as $item)
|
||||
<option value="{{ $item->code }}" {{ ($forminspeksi['alamat']['sesuai']['province_code'] ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@@ -71,8 +65,13 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label for="city_code" class="form-label max-w-56">Kota/Kabupaten</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select id="city_code" name="city_code" class="select w-full" onchange="getDistrict(this.value)">
|
||||
<select id="city_code" name="city_code" class="select w-full">
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
@if(isset($cities))
|
||||
@foreach ($cities as $item)
|
||||
<option value="{{ $item->code }}" {{ ($forminspeksi['alamat']['sesuai']['city_code'] ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -80,8 +79,13 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label for="district_code" class="form-label max-w-56">Kecamatan</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select id="district_code" name="district_code" class="select w-full" onchange="getVillage(this.value)">
|
||||
<select id="district_code" name="district_code" class="select w-full">
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if(isset($districts))
|
||||
@foreach ($districts as $item)
|
||||
<option value="{{ $item->code }}" {{ ($forminspeksi['alamat']['sesuai']['district_code'] ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,6 +95,11 @@
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<select id="village_code" name="village_code" class="select w-full">
|
||||
<option value="">Pilih Kelurahan</option>
|
||||
@if(isset($villages))
|
||||
@foreach ($villages as $item)
|
||||
<option value="{{ $item->code }}" {{ ($forminspeksi['alamat']['sesuai']['village_code'] ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-body">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Order Penilaian</h1>
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Order Penilaian
|
||||
</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Back
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5 grid-cols-2">
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
@@ -46,10 +52,13 @@
|
||||
|
||||
|
||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-body">
|
||||
<div class="py-4 px-6">
|
||||
<h1 class="text-md font-medium text-gray-900">Identitas Debitur</h1>
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Identitas Debitur
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<div class="grid gap-5">
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
@@ -189,3 +198,92 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card border border-agi-100 rounded-lg overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
Analisis Fakta
|
||||
</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5">
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Positif</label>
|
||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['fakta_positif']))
|
||||
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||
|
||||
@if (!empty($forminspeksi['fakta_negatif']))
|
||||
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||
style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old('fakta_negatif.0', $forminspeksi['fakta_negatif'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
@endif
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Catatan Yang Perlu Diperhatikan</label>
|
||||
<div id="catatan-container" class="flex flex-wrap items-baseline w-full">
|
||||
<div class="catatan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old('catatan.0', $forminspeksi['catatan'][0] ?? '') }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
<em id="error-catatan" class="alert text-danger text-sm"></em>
|
||||
</div>
|
||||
<button type="button"
|
||||
onclick="addClonableItem('catatan-container', 'catatan')"
|
||||
class="btn btn-primary btn-sm mt-5 ">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,433 @@
|
||||
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title">Data Pembanding</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ route('surveyor.show', ['id' => request('pembanding')]) }}" class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Kembali
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-header bg-agi-50 py-5 flex-wrap flex justify-end">
|
||||
<button type="button" id="addColumnBtn" class="btn btn-primary btn-sm">
|
||||
<i class="ki-filled ki-plus"></i> Tambah Pembanding
|
||||
</button>
|
||||
<button type="button" id="removeColumnBtn" class="btn btn-danger btn-sm ml-2" style="display: none;">
|
||||
<i class="ki-filled ki-minus"></i> Hapus Pembanding
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="scrollable-x-auto">
|
||||
<table id="dataTable" class="table table-auto table-border align-middle text-gray-700 font-medium text-sm">
|
||||
<thead class="bg-gray-50 sticky top-0">
|
||||
<tr>
|
||||
<th class="px-4 py-3 min-w-[200px]">Parameter</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Objek Penilaian</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Data Pembanding 1</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Informasi Dasar -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Informasi Dasar</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Foto</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage1"
|
||||
src="{{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? asset('storage/' . $fotoForm['object_jaminan'][0]['foto_objek']) : '' }}"
|
||||
class="max-w-[200px] {{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? '' : 'hidden' }}"
|
||||
alt="Uploaded Image">
|
||||
<input type="file" name="foto_objek" class="file-input" accept="image/*"
|
||||
onchange="previewImage(this, 'uploadedImage1')">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage2" class="max-w-[200px] hidden" alt="Pembanding Image">
|
||||
<input type="file" name="foto_objek_pembanding[]" class="file-input" accept="image/*"
|
||||
onchange="previewImage(this, 'uploadedImage2')">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<!-- Data Properti -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Data </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Nama</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="" class="input">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Tipe</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_tanah" class="input" value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Warna</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan" class="input number-format" value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Lokasi</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan" class="input number-format" value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Sumber data</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan" class="input number-format" value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Tahun</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan" class="input number-format"
|
||||
value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Transmisi</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan" class="input number-format"
|
||||
value="">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]" class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Informasi Harga -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Spesifikasi</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Tahun Pembuatan
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti" class="input"
|
||||
value="{{ $inspectionData['asset']['hak_properti'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti_pembanding[]" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Merek / Buatan
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran" class="input"
|
||||
value="{{ $inspectionData['asset']['penawaran'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran_pembanding[]" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kapasitas / HP
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon" class="input"
|
||||
value="{{ $inspectionData['asset']['telepon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon_pembanding[]" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Power</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['status_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber_pembanding[]" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kondisi</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['nama_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber_pembanding[]" class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Lokasi -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Lokasi</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Koordinat</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat" class="input" placeholder="Latitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lat'] ?? '' }}">
|
||||
<input type="text" name="kordinat_lng" class="input" placeholder="Longitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lng'] ?? '' }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat_pembanding[]" class="input"
|
||||
placeholder="Latitude">
|
||||
<input type="text" name="kordinat_lng_pembanding[]" class="input"
|
||||
placeholder="Longitude">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Alamat</td>
|
||||
<td class="px-4 py-2">
|
||||
@php
|
||||
$statusAlamat = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address = $inspectionData['asset']['alamat'][$statusAlamat]['address'] ?? null;
|
||||
@endphp
|
||||
<textarea name="address" class="input py-2" rows="2">{{ $address }}</textarea>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<textarea name="address_pembanding[]" class="input py-2" rows="2"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Provinsi</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code" name="province_code" class="input w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address = $inspectionData['asset']['alamat'][$statusKey]['province_code'] ?? null;
|
||||
@endphp
|
||||
<option value="">Select Province</option>
|
||||
@foreach ($provinces as $province)
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedProvince =
|
||||
$inspectionData['asset']['alamat'][$statusKey]['province_code'] ?? null;
|
||||
@endphp
|
||||
|
||||
<option value="{{ $province->code }}"
|
||||
{{ $selectedProvince == $province->code ? 'selected' : '' }}>
|
||||
{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code_pembanding" name="province_code_pembanding[]"
|
||||
onchange="handleProvinceChange(this)" class="input w-full">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach ($provinces as $province)
|
||||
<option value="{{ $province->code }}">{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kabupaten/Kota</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code" name="city_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedCity = $inspectionData['asset']['alamat'][$statusKey]['city_code'] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
@if (isset($selectedCity))
|
||||
@foreach ($cities as $city)
|
||||
<option value="{{ $city->code }}"
|
||||
{{ $selectedCity == $city->code ? 'selected' : '' }}>
|
||||
{{ $city->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code_pembanding" name="city_code_pembanding[]"
|
||||
onchange="handleCityChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kecamatan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="district_code" name="district_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDisrict =
|
||||
$inspectionData['asset']['alamat'][$statusKey]['district_code'] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDisrict))
|
||||
@foreach ($districts as $district)
|
||||
<option value="{{ $district->code }}"
|
||||
{{ $selectedDisrict == $district->code ? 'selected' : '' }}>
|
||||
{{ $district->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<select id="district_code_pembanding" name="district_code_pembanding[]"
|
||||
onchange="handleDistrictChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Desa/Kelurahan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code" name="village_code" class="select w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDesa =
|
||||
$inspectionData['asset']['alamat'][$statusKey]['village_code'] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDesa))
|
||||
@foreach ($villages as $village)
|
||||
<option value="{{ $village->code }}"
|
||||
{{ $selectedDesa == $village->code ? 'selected' : '' }}>
|
||||
{{ $village->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code_pembanding" name="village_code_pembanding[]"
|
||||
class="input w-full">
|
||||
<option value="">Pilih Desa/Kelurahan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Harga Per Meter</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga" class="input currency-format"
|
||||
value="{{ $inspectionData['asset']['harga'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_pembanding[]" class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon" class=" currency"
|
||||
value="{{ $inspectionData['asset']['diskon'] ?? '' }}">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td class=" px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon_pembanding[]" class="currency">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td class="px-4 py-2">Total</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total" class="input currency"
|
||||
value="{{ $inspectionData['asset']['total'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total_pembanding[]" class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon" class="input currency-format" readonly
|
||||
value="{{ $inspectionData['asset']['harga_diskon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon_pembanding[]" readonly
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,448 @@
|
||||
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title">Data Pembanding</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="{{ route('surveyor.show', ['id' => request('pembanding')]) }}"
|
||||
class="btn btn-xs btn-info">
|
||||
<i class="ki-filled ki-exit-left"></i> Kembali
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-header bg-agi-50 py-5 flex-wrap flex justify-end">
|
||||
<button type="button" id="addColumnBtn" class="btn btn-primary btn-sm">
|
||||
<i class="ki-filled ki-plus"></i> Tambah Pembanding
|
||||
</button>
|
||||
<button type="button" id="removeColumnBtn" class="btn btn-danger btn-sm ml-2"
|
||||
style="display: none;">
|
||||
<i class="ki-filled ki-minus"></i> Hapus Pembanding
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{-- @php
|
||||
print_r($inspectionData);
|
||||
@endphp --}}
|
||||
|
||||
<div class="card-body">
|
||||
<div class="scrollable-x-auto">
|
||||
<table id="dataTable"
|
||||
class="table table-auto table-border align-middle text-gray-700 font-medium text-sm">
|
||||
<thead class="bg-gray-50 sticky top-0">
|
||||
<tr>
|
||||
<th class="px-4 py-3 min-w-[200px]">Parameter</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Objek Penilaian</th>
|
||||
<th class="px-4 py-3 min-w-[250px]">Data Pembanding 1</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Informasi Dasar -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Informasi Dasar</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Foto</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage1"
|
||||
src="{{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? asset('storage/' . $fotoForm['object_jaminan'][0]['foto_objek']) : '' }}"
|
||||
class="max-w-[200px] {{ isset($fotoForm['object_jaminan'][0]['foto_objek']) ? '' : 'hidden' }}"
|
||||
alt="Uploaded Image">
|
||||
<input type="file" name="foto_objek" class="file-input"
|
||||
accept="image/*" onchange="previewImage(this, 'uploadedImage1')">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="px-4 py-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<img id="uploadedImage2" class="max-w-[200px] hidden"
|
||||
alt="Pembanding Image">
|
||||
<input type="file" name="foto_objek_pembanding[]" class="file-input"
|
||||
accept="image/*" onchange="previewImage(this, 'uploadedImage2')">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<!-- Data Properti -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Data Properti</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Jenis Aset</td>
|
||||
<td class="px-4 py-2">
|
||||
<select name="jenis_aset" class="select">
|
||||
<option value="">Pilih Jenis Aset</option>
|
||||
@foreach ($data['jenisJaminan'] as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ ($inspectionData['asset']['jenis_asset']['sesuai'] ?? '') == $item->name ? 'selected' : '' }}>
|
||||
{{ $item->name }}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select name="jenis_aset_pembanding[]" class="select">
|
||||
<option value="">Pilih Jenis Aset</option>
|
||||
@foreach ($data['jenisJaminan'] as $item)
|
||||
<option value="{{ $item->name }}"
|
||||
{{ ($inspectionData['jenis_aset'] ?? '') == $item->name ? 'selected' : '' }}>
|
||||
{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Luas Tanah (m²)</td>
|
||||
@php
|
||||
$cekLuas =
|
||||
isset($inspectionData['tanah']['luas_tanah']) == 'sesuai'
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
|
||||
@endphp
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_tanah" class="input number-format"
|
||||
value="{{ $inspectionData['tanah']['luas_tanah']['sesuai'] ?? ($inspectionData['tanah']['luas_tanah']['tidak sesuai'] ?? '') }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_pembanding[]"
|
||||
class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Luas Bangunan (m²)</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<input type="text" name="luas_tanah_bagunan"
|
||||
class="input number-format"
|
||||
value="{{ $inspectionData['bangunan']['luas_tanah_bagunan']['sesuai'] ?? ($inspectionData['bangunan']['luas_tanah_bagunan']['tidak sesuai'] ?? '') }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="luas_bangunan_pembanding[]"
|
||||
class="input number-format">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Informasi Harga -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Informasi</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Hak atas properti yang dialihkan</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti" class="input"
|
||||
value="{{ $inspectionData['asset']['hak_properti'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="hak_properti_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Penawaran/ Transaksi</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran" class="input"
|
||||
value="{{ $inspectionData['asset']['penawaran'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="penawaran_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Telepon Contact Person</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon" class="input"
|
||||
value="{{ $inspectionData['asset']['telepon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="telepon_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Status Narasumber</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['status_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="status_nara_sumber_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Nama Narasumber</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber" class="input"
|
||||
value="{{ $inspectionData['asset']['nama_nara_sumber'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="nama_nara_sumber_pembanding[]"
|
||||
class="input">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Lokasi -->
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Lokasi</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Koordinat</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat" class="input"
|
||||
placeholder="Latitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lat'] ?? '' }}">
|
||||
<input type="text" name="kordinat_lng" class="input"
|
||||
placeholder="Longitude"
|
||||
value="{{ $inspectionData['asset']['kordinat_lng'] ?? '' }}">
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<input type="text" name="kordinat_lat_pembanding[]" class="input"
|
||||
placeholder="Latitude">
|
||||
<input type="text" name="kordinat_lng_pembanding[]" class="input"
|
||||
placeholder="Longitude">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Alamat</td>
|
||||
<td class="px-4 py-2">
|
||||
@php
|
||||
$statusAlamat = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address =
|
||||
$inspectionData['asset']['alamat'][$statusAlamat]['address'] ??
|
||||
null;
|
||||
@endphp
|
||||
<textarea name="address" class="input py-2" rows="2">{{ $address }}</textarea>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<textarea name="address_pembanding[]" class="input py-2" rows="2"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Provinsi</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code" name="province_code" class="input w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$address =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'province_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Select Province</option>
|
||||
@foreach ($provinces as $province)
|
||||
@php
|
||||
$statusKey = isset(
|
||||
$inspectionData['asset']['alamat']['sesuai'],
|
||||
)
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedProvince =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'province_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
|
||||
<option value="{{ $province->code }}"
|
||||
{{ $selectedProvince == $province->code ? 'selected' : '' }}>
|
||||
{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="province_code_pembanding" name="province_code_pembanding[]"
|
||||
onchange="handleProvinceChange(this)" class="input w-full">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach ($provinces as $province)
|
||||
<option value="{{ $province->code }}">{{ $province->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kabupaten/Kota</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code" name="city_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedCity =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'city_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
@if (isset($selectedCity))
|
||||
@foreach ($cities as $city)
|
||||
<option value="{{ $city->code }}"
|
||||
{{ $selectedCity == $city->code ? 'selected' : '' }}>
|
||||
{{ $city->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="city_code_pembanding" name="city_code_pembanding[]"
|
||||
onchange="handleCityChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kota/Kabupaten</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Kecamatan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="district_code" name="district_code" class="select w-full">
|
||||
@php
|
||||
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDisrict =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'district_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDisrict))
|
||||
@foreach ($districts as $district)
|
||||
<option value="{{ $district->code }}"
|
||||
{{ $selectedDisrict == $district->code ? 'selected' : '' }}>
|
||||
{{ $district->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
|
||||
<select id="district_code_pembanding" name="district_code_pembanding[]"
|
||||
onchange="handleDistrictChange(this)" class="input w-full">
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Desa/Kelurahan</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code" name="village_code" class="select w-full">
|
||||
@php
|
||||
$statusKey = isset($inspectionData['asset']['alamat']['sesuai'])
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
$selectedDesa =
|
||||
$inspectionData['asset']['alamat'][$statusKey][
|
||||
'village_code'
|
||||
] ?? null;
|
||||
@endphp
|
||||
<option value="">Pilih Kecamatan</option>
|
||||
@if (isset($selectedDesa))
|
||||
@foreach ($villages as $village)
|
||||
<option value="{{ $village->code }}"
|
||||
{{ $selectedDesa == $village->code ? 'selected' : '' }}>
|
||||
{{ $village->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<select id="village_code_pembanding" name="village_code_pembanding[]"
|
||||
class="input w-full">
|
||||
<option value="">Pilih Desa/Kelurahan</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="bg-gray-100">
|
||||
<td colspan="3" class="px-4 py-2 font-semibold">Harga Per Meter</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga" class="input currency-format"
|
||||
value="{{ $inspectionData['asset']['harga'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_pembanding[]"
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon" class=" currency"
|
||||
value="{{ $inspectionData['asset']['diskon'] ?? '' }}">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td class=" px-4 py-2">
|
||||
<div class="input">
|
||||
<input type="text" name="diskon_pembanding[]"
|
||||
class="currency">
|
||||
<span class="btn btn-icon">
|
||||
<i class="ki-outline ki-percentage"></i>
|
||||
</i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td class="px-4 py-2">Total</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total" class="input currency"
|
||||
value="{{ $inspectionData['asset']['total'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="total_pembanding[]"
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2">Harga Setelah Diskon</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon" class="input currency-format" readonly
|
||||
value="{{ $inspectionData['asset']['harga_diskon'] ?? '' }}">
|
||||
</td>
|
||||
<td class="px-4 py-2">
|
||||
<input type="text" name="harga_diskon_pembanding[]" readonly
|
||||
class="input currency-format">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -65,24 +65,6 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Hadap Mata Angin</label>
|
||||
<div class="mt-2">
|
||||
@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
|
||||
<input type="hidden" name="hadap_mata_angin_sesuai" class="input"
|
||||
value="{{ $hadap_mata_angin }}">
|
||||
<p class="text-2sm text-gray-700">{{ $hadap_mata_angin }} m<sup>2</sup></p>
|
||||
@endforeach
|
||||
@endif
|
||||
<div class="flex-wrap items-stretch">
|
||||
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
||||
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user