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);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
||||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
$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();
|
$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();
|
$penilai = Penilai::where('permohonan_id', $req['permohonanId'])->where('dokument_id', $req['documentId'])->first();
|
||||||
$provinces = Province::all();
|
$provinces = Province::all();
|
||||||
$basicData = $this->surveyorController->getCommonData();
|
$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;
|
$formFoto = $formPeta = $cities = $districts = $villages = $memo = null;
|
||||||
if ($inspeksi) {
|
if ($inspeksi) {
|
||||||
@@ -236,9 +256,19 @@ class PenilaiController extends Controller
|
|||||||
$provinces = Province::all();
|
$provinces = Province::all();
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
||||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
$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();
|
$resume = Penilai::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||||
|
|
||||||
$lpjData = null;
|
$lpjData = null;
|
||||||
$rap = null;
|
$rap = null;
|
||||||
$forminspeksi= null;
|
$forminspeksi= null;
|
||||||
@@ -468,21 +498,24 @@ class PenilaiController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function saveStatusLpj(Request $request)
|
public function saveStatusLpj(Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
Penilai::updateOrCreate(
|
|
||||||
[
|
|
||||||
'permohonan_id' => $request->permohonan_id,
|
|
||||||
'dokument_id' => $request->document_id,
|
|
||||||
'inspeksi_id' => $request->inspeksi_id,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'type' => $request->type,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
return response()->json(['success' => true]);
|
Penilai::updateOrCreate(
|
||||||
}
|
[
|
||||||
|
'permohonan_id' => $request->permohonan_id,
|
||||||
|
'dokument_id' => $request->document_id,
|
||||||
|
'inspeksi_id' => $request->inspeksi_id,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => $request->type,
|
||||||
|
'type_penilai' => $request->type,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
return response()->json(['success' => true]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function storePenilaian($id)
|
public function storePenilaian($id)
|
||||||
@@ -661,7 +694,7 @@ class PenilaiController extends Controller
|
|||||||
$jaminanId = $request->query('jaminanId');
|
$jaminanId = $request->query('jaminanId');
|
||||||
$permohonanId = $request->query('permohonanId');
|
$permohonanId = $request->query('permohonanId');
|
||||||
$statusLpj = $request->query('statusLpj');
|
$statusLpj = $request->query('statusLpj');
|
||||||
$tipeLaporan = $request->query('tipe');
|
$tipeLaporan = $request->query('type');
|
||||||
|
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId,
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId,
|
||||||
$documentId,
|
$documentId,
|
||||||
@@ -730,8 +763,8 @@ class PenilaiController extends Controller
|
|||||||
$pdf->setPaper('A4', 'portrait');
|
$pdf->setPaper('A4', 'portrait');
|
||||||
return $pdf->stream();
|
return $pdf->stream();
|
||||||
} else {
|
} else {
|
||||||
$pdf = view('lpj::' . $viewLaporan, compact(
|
// $pdf = view('lpj::' . $viewLaporan, compact(
|
||||||
// $pdf = PDF::loadView('lpj::' . $viewLaporan, compact(
|
$pdf = PDF::loadView('lpj::' . $viewLaporan, compact(
|
||||||
'permohonan',
|
'permohonan',
|
||||||
'forminspeksi',
|
'forminspeksi',
|
||||||
'lpjData',
|
'lpjData',
|
||||||
@@ -746,9 +779,8 @@ class PenilaiController extends Controller
|
|||||||
'memo'
|
'memo'
|
||||||
));
|
));
|
||||||
|
|
||||||
return $pdf;
|
$pdf->setPaper('A4', 'portrait');
|
||||||
// $pdf->setPaper('A4', 'portrait');
|
return $pdf->download('Laporan_'. $tipeLaporan . '_' . $permohonan->nomor_registrasi . '_' .$permohonan->debiture->name .'_data.pdf');
|
||||||
// return $pdf->download('laporan.pdf');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@@ -767,7 +799,6 @@ class PenilaiController extends Controller
|
|||||||
'memo' => 'penilai.components.print-memo',
|
'memo' => 'penilai.components.print-memo',
|
||||||
'rap' => 'penilai.components.print-rap'
|
'rap' => 'penilai.components.print-rap'
|
||||||
];
|
];
|
||||||
|
|
||||||
return $viewMap[$tipe] ?? 'penilai.components.print-resume';
|
return $viewMap[$tipe] ?? 'penilai.components.print-resume';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -828,4 +859,29 @@ class PenilaiController extends Controller
|
|||||||
'inspeksiId' => $request->query('inspeksiId')
|
'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\Teams;
|
||||||
use Modules\Lpj\Models\Inspeksi;
|
use Modules\Lpj\Models\Inspeksi;
|
||||||
use Modules\Lpj\Models\Penilai ;
|
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\Usermanagement\Models\User;
|
||||||
use Modules\Lpj\Http\Controllers\SurveyorController;
|
use Modules\Lpj\Http\Controllers\SurveyorController;
|
||||||
// use Modules\Lpj\Http\Controllers\PenilaiController;
|
// use Modules\Lpj\Http\Controllers\PenilaiController;
|
||||||
@@ -630,9 +634,12 @@ class PenilaianController extends Controller
|
|||||||
|
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
||||||
$basicData = $this->surveyorController->getCommonData();
|
$basicData = $this->surveyorController->getCommonData();
|
||||||
|
$provinces = Province::all();
|
||||||
$inspeksi = Inspeksi::where('permohonan_id', $id)->where('dokument_id', $documentId)->first();
|
$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;
|
$forminspeksi = null;
|
||||||
$lpjData = null;
|
$lpjData = null;
|
||||||
@@ -643,8 +650,26 @@ class PenilaianController extends Controller
|
|||||||
if ($lpj) {
|
if ($lpj) {
|
||||||
$lpjData = json_decode($lpj->lpj, true);
|
$lpjData = json_decode($lpj->lpj, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$viewLaporan = $this->getViewLaporan($lpj->type_penilai);
|
||||||
|
|
||||||
return view('lpj::penilaian.laporan-so', compact('permohonan', 'forminspeksi', 'basicData', 'inspeksi', 'lpjData'));
|
if (empty($viewLaporan)) {
|
||||||
|
return redirect()->back()->with('error', 'Laporan belum dibuat');
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('lpj::'. $viewLaporan, compact('permohonan', 'forminspeksi', 'basicData', 'inspeksi', 'lpjData', 'provinces'));
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getViewLaporan($tipe)
|
||||||
|
{
|
||||||
|
$viewMap = [
|
||||||
|
'sederhana' => 'penilai.components.lpj-sederhana-standard',
|
||||||
|
'standard' => 'penilai.components.lpj-sederhana-standard',
|
||||||
|
'resume' => 'penilai.components.resume',
|
||||||
|
'memo' => 'penilai.components.memo',
|
||||||
|
'rap' => 'penilai.components.rap-penilai'
|
||||||
|
];
|
||||||
|
return $viewMap[$tipe] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function storePenilaiLaporan(Request $request)
|
public function storePenilaiLaporan(Request $request)
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ class SurveyorController extends Controller
|
|||||||
|
|
||||||
$rules = [];
|
$rules = [];
|
||||||
$hasAssetDescriptionRules = false;
|
$hasAssetDescriptionRules = false;
|
||||||
$hasFactaDat = false;
|
$hasFactaData = false;
|
||||||
$pisah = array_filter(
|
$pisah = array_filter(
|
||||||
explode(',', $action),
|
explode(',', $action),
|
||||||
function ($act) use ($allowedActions) {
|
function ($act) use ($allowedActions) {
|
||||||
@@ -1398,12 +1398,28 @@ class SurveyorController extends Controller
|
|||||||
$provinceCode = $cekAlamat['province_code'] ?? $provinceCode;
|
$provinceCode = $cekAlamat['province_code'] ?? $provinceCode;
|
||||||
$cityCode = $cekAlamat['city_code'] ?? $cityCode;
|
$cityCode = $cekAlamat['city_code'] ?? $cityCode;
|
||||||
$districtCode = $cekAlamat['district_code'] ?? $districtCode;
|
$districtCode = $cekAlamat['district_code'] ?? $districtCode;
|
||||||
}
|
// Ambil data menggunakan kode yang telah ditentukan
|
||||||
|
|
||||||
// Ambil data menggunakan kode yang telah ditentukan
|
}
|
||||||
$cities = City::where('province_code', $provinceCode)->get();
|
$cities = City::where('province_code', $provinceCode)->get();
|
||||||
$districts = District::where('city_code', $cityCode)->get();
|
$districts = District::where('city_code', $cityCode)->get();
|
||||||
$villages = Village::where('district_code', $districtCode)->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(
|
return view('lpj::surveyor.components.inspeksi', compact(
|
||||||
'permohonan',
|
'permohonan',
|
||||||
'surveyor',
|
'surveyor',
|
||||||
@@ -2440,17 +2456,28 @@ class SurveyorController extends Controller
|
|||||||
|
|
||||||
private function getKapalData($data, $request): array
|
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 [
|
return [
|
||||||
|
|
||||||
'action' => $data['action'] ?? null,
|
'action' => $data['action'] ?? null,
|
||||||
'nama_wakil_debitur' => $data['nama_wakil_debitur'] ?? null,
|
'nama_wakil_debitur' => $data['nama_wakil_debitur'] ?? null,
|
||||||
'hub_calon_debitur' => $data['hub_calon_debitur'] ?? null,
|
'hub_calon_debitur' => $data['hub_calon_debitur'] ?? null,
|
||||||
'dermaga' => $data['dermaga'] ?? null,
|
'dermaga' => $data['dermaga'] ?? null,
|
||||||
'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
|
'nama_jalan' => $data['nama_jalan'] ?? null,
|
||||||
'kecamatan' => $data['kecamatan'] ?? null,
|
'perumahan_gang' => $data['perumahan_gang'] ?? null,
|
||||||
'kota_madya' => $data['kota_madya'] ?? null,
|
'blok_nomor' => $data['blok_nomor'] ?? null,
|
||||||
'provinsi' => $data['provinsi'] ?? null,
|
'bandara' => $data['bandara'] ?? null,
|
||||||
'jenis' => $data['jenis'] ?? null,
|
'alamat' => [
|
||||||
|
'sesuai' => $alamatData
|
||||||
|
],
|
||||||
|
'jenis_kapal' => $data['jenis_kapal'] ?? null,
|
||||||
|
'jenis_kapal_lainnya' => $data['jenis_kapal_lainnya'] ?? null,
|
||||||
'size' => $data['size'] ?? null,
|
'size' => $data['size'] ?? null,
|
||||||
'kondisi' => $data['kondisi'] ?? null,
|
'kondisi' => $data['kondisi'] ?? null,
|
||||||
'klasifikasi' => $data['klasifikasi'] ?? null,
|
'klasifikasi' => $data['klasifikasi'] ?? null,
|
||||||
@@ -2534,6 +2561,13 @@ class SurveyorController extends Controller
|
|||||||
}
|
}
|
||||||
public function getKendaraanData($data, $request): array
|
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 [
|
return [
|
||||||
'action' => $data['action'] ?? null,
|
'action' => $data['action'] ?? null,
|
||||||
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
||||||
@@ -2542,11 +2576,15 @@ class SurveyorController extends Controller
|
|||||||
'nama_jalan' => $data['nama_jalan'] ?? null,
|
'nama_jalan' => $data['nama_jalan'] ?? null,
|
||||||
'perumahan_gang' => $data['perumahan_gang'] ?? null,
|
'perumahan_gang' => $data['perumahan_gang'] ?? null,
|
||||||
'blok_nomor' => $data['blok_nomor'] ?? null,
|
'blok_nomor' => $data['blok_nomor'] ?? null,
|
||||||
'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
|
'alamat' => [
|
||||||
'kecamatan' => $data['kecamatan'] ?? null,
|
'sesuai' => $alamatData
|
||||||
'kota_madya' => $data['kota_madya'] ?? null,
|
],
|
||||||
'provinsi' => $data['provinsi'] ?? null,
|
'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,
|
'kondisi' => $data['kondisi'] ?? null,
|
||||||
|
|
||||||
'nomor_polisi' => $data['nomor_polisi'] ?? null,
|
'nomor_polisi' => $data['nomor_polisi'] ?? null,
|
||||||
'nomor_polis_tidak_sesuai' => $data['nomor_polis_tidak_sesuai'] ?? null,
|
'nomor_polis_tidak_sesuai' => $data['nomor_polis_tidak_sesuai'] ?? null,
|
||||||
'merek' => $data['merek'] ?? null,
|
'merek' => $data['merek'] ?? null,
|
||||||
@@ -2559,30 +2597,50 @@ class SurveyorController extends Controller
|
|||||||
'nomor_mesin_tidak_sesuai' => $data['nomor_mesin_tidak_sesuai'] ?? null,
|
'nomor_mesin_tidak_sesuai' => $data['nomor_mesin_tidak_sesuai'] ?? null,
|
||||||
'posisi_kilometer' => $data['posisi_kilometer'] ?? null,
|
'posisi_kilometer' => $data['posisi_kilometer'] ?? null,
|
||||||
'transmisi' => $data['transmisi'] ?? null,
|
'transmisi' => $data['transmisi'] ?? null,
|
||||||
|
'transmisi_input' => $data['transmisi_input'] ?? null,
|
||||||
|
|
||||||
'mesin_panel_instrument' => $data['mesin_panel_instrument'] ?? 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' => $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' => $data['interior'] ?? null,
|
'interior_input' => $data['interior_input'] ?? null,
|
||||||
|
|
||||||
'jumlah_pintu' => $data['jumlah_pintu'] ?? null,
|
'jumlah_pintu' => $data['jumlah_pintu'] ?? null,
|
||||||
|
'jumlah_pintu_input' => $data['jumlah_pintu_input'] ?? null,
|
||||||
'rangka_karoseri' => $data['rangka_karoseri'] ?? null,
|
'rangka_karoseri' => $data['rangka_karoseri'] ?? null,
|
||||||
|
'rangka_karoseri_input' => $data['rangka_karoseri_input'] ?? null,
|
||||||
'ban' => $data['ban'] ?? null,
|
'ban' => $data['ban'] ?? null,
|
||||||
|
'ban_input' => $data['ban_input'] ?? null,
|
||||||
'velg' => $data['velg'] ?? null,
|
'velg' => $data['velg'] ?? null,
|
||||||
|
'velg_input' => $data['velg_input'] ?? null,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'bamper_depan' => $data['bamper_depan'] ?? null,
|
'bamper_depan' => $data['bamper_depan'] ?? null,
|
||||||
|
'bamper_depan_input' => $data['bamper_depan_input'] ?? null,
|
||||||
'bamper_belakang' => $data['bamper_belakang'] ?? null,
|
'bamper_belakang' => $data['bamper_belakang'] ?? null,
|
||||||
|
'bamper_belakang_input' => $data['bamper_belakang_input'] ?? null,
|
||||||
'lampu_depan' => $data['lampu_depan'] ?? null,
|
'lampu_depan' => $data['lampu_depan'] ?? null,
|
||||||
|
'lampu_depan_input' => $data['lampu_depan_input'] ?? null,
|
||||||
'lampu_belakang' => $data['lampu_belakang'] ?? null,
|
'lampu_belakang' => $data['lampu_belakang'] ?? null,
|
||||||
|
'lampu_belakang_input' => $data['lampu_belakang_input'] ?? null,
|
||||||
'kaca_kendaraan' => $data['kaca_kendaraan'] ?? null,
|
'kaca_kendaraan' => $data['kaca_kendaraan'] ?? null,
|
||||||
|
'kaca_kendaraan_input' => $data['kaca_kendaraan_input'] ?? null,
|
||||||
'air_conditioner' => $data['air_conditioner'] ?? 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' => $data['tape_radio_cd'] ?? null,
|
||||||
|
'tape_radio_cd_input' => $data['tape_radio_cd_input'] ?? null,
|
||||||
'sensor_parkir' => $data['sensor_parkir'] ?? 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' => $data['sensor_camera_recorder'] ?? null,
|
||||||
|
'sensor_camera_recorder_input' => $data['sensor_camera_recorder_input'] ?? null,
|
||||||
'lcd' => $data['lcd'] ?? null,
|
'lcd' => $data['lcd'] ?? null,
|
||||||
|
'lcd_innput' => $data['lcd_innput'] ?? null,
|
||||||
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
|
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
|
||||||
|
'sabuk_keselamatan_input' => $data['sabuk_keselamatan_input'] ?? null,
|
||||||
'airbag' => $data['airbag'] ?? null,
|
'airbag' => $data['airbag'] ?? null,
|
||||||
|
'airbag_input' => $data['airbag_input'] ?? null,
|
||||||
'asuransi' => $data['asuransi'] ?? null,
|
'asuransi' => $data['asuransi'] ?? null,
|
||||||
|
'asuransi_input' => $data['asuransi_input'] ?? null,
|
||||||
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
|
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
|
||||||
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
|
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
|
||||||
|
|
||||||
@@ -2622,6 +2680,13 @@ class SurveyorController extends Controller
|
|||||||
|
|
||||||
public function getAlatBeratData($data, $request): array
|
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 [
|
return [
|
||||||
'action' => $data['action'] ?? null,
|
'action' => $data['action'] ?? null,
|
||||||
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
||||||
@@ -2630,11 +2695,10 @@ class SurveyorController extends Controller
|
|||||||
'dengan_wadeb' => $data['dengan_wadeb'] ?? null,
|
'dengan_wadeb' => $data['dengan_wadeb'] ?? null,
|
||||||
'nama_jalan' => $data['nama_jalan'] ?? null,
|
'nama_jalan' => $data['nama_jalan'] ?? null,
|
||||||
'perumahan_gang' => $data['perumahan_gang'] ?? null,
|
'perumahan_gang' => $data['perumahan_gang'] ?? null,
|
||||||
'blok' => $data['blok'] ?? null,
|
'blok_nomor' => $data['blok_nomor'] ?? null,
|
||||||
'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
|
'alamat' => [
|
||||||
'kecamatan' => $data['kecamatan'] ?? null,
|
'sesuai' => $alamatData
|
||||||
'kota_madya' => $data['kota_madya'] ?? null,
|
],
|
||||||
'provinsi' => $data['provinsi'] ?? null,
|
|
||||||
'jenis_model' => $data['jenis_model'] ?? null,
|
'jenis_model' => $data['jenis_model'] ?? null,
|
||||||
'nomor_lambung' => $data['nomor_lambung'] ?? null,
|
'nomor_lambung' => $data['nomor_lambung'] ?? null,
|
||||||
'model_unit' => $data['model_unit'] ?? null,
|
'model_unit' => $data['model_unit'] ?? null,
|
||||||
@@ -2653,24 +2717,35 @@ class SurveyorController extends Controller
|
|||||||
'overhaul_mesin' => $data['overhaul_mesin'] ?? null,
|
'overhaul_mesin' => $data['overhaul_mesin'] ?? null,
|
||||||
|
|
||||||
'mesin_panel' => $data['mesin_panel'] ?? null,
|
'mesin_panel' => $data['mesin_panel'] ?? null,
|
||||||
|
'mesin_panel_input' => $data['mesin_panel_input'] ?? null,
|
||||||
'fungsi_panel' => $data['fungsi_panel'] ?? null,
|
'fungsi_panel' => $data['fungsi_panel'] ?? null,
|
||||||
|
'fungsi_panel_input' => $data['fungsi_panel_input'] ?? null,
|
||||||
'interior' => $data['interior'] ?? null,
|
'interior' => $data['interior'] ?? null,
|
||||||
|
'interior_input' => $data['interior_input'] ?? null,
|
||||||
'rangka_Karoseri' => $data['rangka_Karoseri'] ?? null,
|
'rangka_Karoseri' => $data['rangka_Karoseri'] ?? null,
|
||||||
|
'rangka_Karoseri_input' => $data['rangka_Karoseri_input'] ?? null,
|
||||||
'ban' => $data['ban'] ?? null,
|
'ban' => $data['ban'] ?? null,
|
||||||
|
'ban_input' => $data['ban_input'] ?? null,
|
||||||
'velg' => $data['velg'] ?? null,
|
'velg' => $data['velg'] ?? null,
|
||||||
|
'velg_input' => $data['velg_input'] ?? null,
|
||||||
'air_conditioner' => $data['air_conditioner'] ?? null,
|
'air_conditioner' => $data['air_conditioner'] ?? null,
|
||||||
|
'air_conditioner_input' => $data['air_conditioner_input'] ?? null,
|
||||||
'aksesoris' => $data['aksesoris'] ?? null,
|
'aksesoris' => $data['aksesoris'] ?? null,
|
||||||
|
'aksesoris_input' => $data['aksesoris_input'] ?? null,
|
||||||
'lcd' => $data['lcd'] ?? null,
|
'lcd' => $data['lcd'] ?? null,
|
||||||
|
'lcd_input' => $data['lcd_input'] ?? null,
|
||||||
'perlengkapan' => $data['perlengkapan'] ?? null,
|
'perlengkapan' => $data['perlengkapan'] ?? null,
|
||||||
|
'perlengkapan_input' => $data['perlengkapan_input'] ?? null,
|
||||||
'asuransi' => $data['asuransi'] ?? null,
|
'asuransi' => $data['asuransi'] ?? null,
|
||||||
|
'asuransi_input' => $data['asuransi_input'] ?? null,
|
||||||
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
|
'perusahaan_asuransi' => $data['perusahaan_asuransi'] ?? null,
|
||||||
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
|
'tahun_berakhir' => $data['tahun_berakhir'] ?? null,
|
||||||
'sensor_kamera' => $data['sensor_kamera'] ?? null,
|
'sensor_kamera' => $data['sensor_kamera'] ?? null,
|
||||||
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
|
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
|
||||||
'air_bag' => $data['air_bag'] ?? null,
|
'air_bag' => $data['air_bag'] ?? null,
|
||||||
|
|
||||||
'faktor_positif' => $data['faktor_positif'] ?? null,
|
'fakta_positif' => $data['fakta_positif'] ?? null,
|
||||||
'faktor_negatif' => $data['faktor_negatif'] ?? null,
|
'fakta_negatif' => $data['fakta_negatif'] ?? null,
|
||||||
'kesimpulan' => $data['kesimpulan'] ?? null,
|
'kesimpulan' => $data['kesimpulan'] ?? null,
|
||||||
'catatan' => $data['catatan'] ?? null,
|
'catatan' => $data['catatan'] ?? null,
|
||||||
];
|
];
|
||||||
@@ -2678,18 +2753,27 @@ class SurveyorController extends Controller
|
|||||||
|
|
||||||
private function getPesawatData($data, $request): array
|
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 [
|
return [
|
||||||
'action' => $data['action'] ?? null,
|
'action' => $data['action'] ?? null,
|
||||||
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
'tanggal_survey' => $data['tanggal_survey'] ?? null,
|
||||||
'nama_wakil' => $data['nama_wakil'] ?? null,
|
'nama_wakil' => $data['nama_wakil'] ?? null,
|
||||||
'hub_calon_debitur' => $data['hub_calon_debitur'] ?? 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,
|
'bandara' => $data['bandara'] ?? null,
|
||||||
'desa_kelurahan' => $data['desa_kelurahan'] ?? null,
|
'alamat' => [
|
||||||
'kecamatan' => $data['kecamatan'] ?? null,
|
'sesuai' => $alamatData
|
||||||
'kota_madya' => $data['kota_madya'] ?? null,
|
],
|
||||||
'provinsi' => $data['provinsi'] ?? null,
|
|
||||||
|
|
||||||
'jenis_pesawat' => $data['jenis_pesawat'] ?? null,
|
'jenis_pesawat' => $data['jenis_pesawat'] ?? null,
|
||||||
|
'jenis_pesawat_lainnya' => $data['jenis_pesawat_lainnya'] ?? null,
|
||||||
|
|
||||||
'size' => $data['size'] ?? null,
|
'size' => $data['size'] ?? null,
|
||||||
'kondisi' => $data['kondisi'] ?? null,
|
'kondisi' => $data['kondisi'] ?? null,
|
||||||
'nama_pesawat' => $data['nama_pesawat'] ?? null,
|
'nama_pesawat' => $data['nama_pesawat'] ?? null,
|
||||||
@@ -2772,8 +2856,9 @@ class SurveyorController extends Controller
|
|||||||
'deskripsi_Interior' => $data['deskripsi_Interior'] ?? null,
|
'deskripsi_Interior' => $data['deskripsi_Interior'] ?? null,
|
||||||
|
|
||||||
// Validasi untuk faktor dan kesimpulan
|
// 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,
|
'kesimpulan' => $data['kesimpulan'] ?? null,
|
||||||
'catatan' => $data['catatan'] ?? null,
|
'catatan' => $data['catatan'] ?? null,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -176,17 +176,23 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'action' => 'required',
|
'action' => 'required',
|
||||||
'nama_wakil_debitur' => 'required',
|
'nama_wakil_debitur' => 'nullable',
|
||||||
'hub_calon_debitur' => 'required',
|
'hub_calon_debitur' => 'required',
|
||||||
'dermaga' => 'required',
|
'dermaga' => 'nullable',
|
||||||
'desa_kelurahan' => 'required',
|
'nama_jalan' => 'required',
|
||||||
'kecamatan' => 'required',
|
'perumahan_gang' => 'required',
|
||||||
'kota_madya' => 'required',
|
'blok_nomor' => 'required',
|
||||||
'provinsi' => 'required',
|
|
||||||
'jenis.*' => 'required',
|
'village_code' => 'nullable|string',
|
||||||
'size.*' => 'required',
|
'district_code' => 'nullable|string',
|
||||||
'kondisi.*' => 'required',
|
'city_code' => 'nullable|string',
|
||||||
'klasifikasi.*' => 'required',
|
'province_code' => 'nullable|string',
|
||||||
|
|
||||||
|
'jenis_kapal' => 'required',
|
||||||
|
'jenis_kapal_lainnya' => 'nullable',
|
||||||
|
'size' => 'required',
|
||||||
|
'kondisi' => 'required',
|
||||||
|
'klasifikasi' => 'required',
|
||||||
|
|
||||||
'nama_kapal' => 'required',
|
'nama_kapal' => 'required',
|
||||||
'pemilik_kapal' => 'required',
|
'pemilik_kapal' => 'required',
|
||||||
@@ -250,10 +256,10 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'kabel_perangkat' => 'required',
|
'kabel_perangkat' => 'required',
|
||||||
'deskripsi_kelistrikan' => 'required',
|
'deskripsi_kelistrikan' => 'required',
|
||||||
|
|
||||||
'kebersihan_dek_luar' => 'required',
|
'kebersihan_dek_luar' => 'nullable',
|
||||||
'tangki_limbah' => 'required',
|
'tangki_limbah' => 'nullable',
|
||||||
'sistem_pengelolaan_limbah' => 'required',
|
'sistem_pengelolaan_limbah' => 'nullable',
|
||||||
'pengelolaan_air_ballast' => 'required',
|
'pengelolaan_air_ballast' => 'nullable',
|
||||||
'deskripsi_kebersihan' => 'required',
|
'deskripsi_kebersihan' => 'required',
|
||||||
|
|
||||||
'fakta_positif.*' => 'nullable',
|
'fakta_positif.*' => 'nullable',
|
||||||
@@ -377,18 +383,30 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'nomor_mesin' => 'nullable',
|
'nomor_mesin' => 'nullable',
|
||||||
'hour_mesters' => 'nullable',
|
'hour_mesters' => 'nullable',
|
||||||
'overhaul_mesin' => 'nullable',
|
'overhaul_mesin' => 'nullable',
|
||||||
|
|
||||||
'mesin_panel.*' => 'nullable',
|
'mesin_panel.*' => 'nullable',
|
||||||
|
'mesin_panel_input.*' => 'nullable',
|
||||||
'fungsi_panel.*' => 'nullable',
|
'fungsi_panel.*' => 'nullable',
|
||||||
|
'fungsi_panel_input.*' => 'nullable',
|
||||||
'interior.*' => 'nullable',
|
'interior.*' => 'nullable',
|
||||||
|
'interior_input.*' => 'nullable',
|
||||||
'rangka_Karoseri.*' => 'nullable',
|
'rangka_Karoseri.*' => 'nullable',
|
||||||
|
'rangka_Karoseri_input.*' => 'nullable',
|
||||||
'ban.*' => 'nullable',
|
'ban.*' => 'nullable',
|
||||||
|
'ban_innput.*' => 'nullable',
|
||||||
'velg.*' => 'nullable',
|
'velg.*' => 'nullable',
|
||||||
|
'velg_input.*' => 'nullable',
|
||||||
'air_conditioner.*' => 'nullable',
|
'air_conditioner.*' => 'nullable',
|
||||||
|
'air_conditioner_input.*' => 'nullable',
|
||||||
'aksesoris.*' => 'nullable',
|
'aksesoris.*' => 'nullable',
|
||||||
|
'aksesoris_input.*' => 'nullable',
|
||||||
'lcd.*' => 'nullable',
|
'lcd.*' => 'nullable',
|
||||||
|
'lcd_innput.*' => 'nullable',
|
||||||
'perlengkapan.*' => 'nullable',
|
'perlengkapan.*' => 'nullable',
|
||||||
|
'perlengkapan_input.*' => 'nullable',
|
||||||
'asuransi.*' => 'nullable',
|
'asuransi.*' => 'nullable',
|
||||||
'perusahaan_asuransi.*' => 'nullable',
|
'asuransi_input.*' => 'nullable',
|
||||||
|
'perusahaan_asuransi' => 'nullable',
|
||||||
'tahun_berakhir.*' => 'nullable',
|
'tahun_berakhir.*' => 'nullable',
|
||||||
'sensor_kamera.*' => 'nullable',
|
'sensor_kamera.*' => 'nullable',
|
||||||
'lcd.*' => 'nullable',
|
'lcd.*' => 'nullable',
|
||||||
@@ -397,10 +415,10 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'asuransi.*' => 'nullable',
|
'asuransi.*' => 'nullable',
|
||||||
'perusahan_asuransi' => 'nullable',
|
'perusahan_asuransi' => 'nullable',
|
||||||
'tahun_berakhir' => 'nullable',
|
'tahun_berakhir' => 'nullable',
|
||||||
'faktor_positif' => 'nullable',
|
'fakta_positif' => 'nullable|array',
|
||||||
'faktor_negatif' => 'nullable',
|
'fakta_negatif' => 'nullable|array',
|
||||||
'kesimpulan' => 'nullable',
|
'kesimpulan' => 'nullable',
|
||||||
'catatan' => 'nullable',
|
'catatan' => 'nullable|array',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,15 +428,19 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'action' => 'required',
|
'action' => 'required',
|
||||||
'nama_wakil' => 'required',
|
'nama_wakil' => 'required|string',
|
||||||
'hub_calon_debitur' => 'required',
|
'hub_calon_debitur' => 'required|string',
|
||||||
'bandara' => 'required',
|
'nama_jalan' => 'required',
|
||||||
'desa_kelurahan' => 'required',
|
'perumahan_gang' => 'required',
|
||||||
'kecamatan' => 'required',
|
'blok_nomor' => 'required',
|
||||||
'kota_madya' => 'required',
|
|
||||||
'provinsi' => 'required',
|
'village_code' => 'nullable|string',
|
||||||
|
'district_code' => 'nullable|string',
|
||||||
|
'city_code' => 'nullable|string',
|
||||||
|
'province_code' => 'nullable|string',
|
||||||
|
|
||||||
'jenis_pesawat' => 'required',
|
'jenis_pesawat' => 'required',
|
||||||
|
'jenis_pesawat_lainnya' => 'nullable',
|
||||||
'size' => 'required',
|
'size' => 'required',
|
||||||
'kondisi' => 'required',
|
'kondisi' => 'required',
|
||||||
'nama_pesawat' => 'required',
|
'nama_pesawat' => 'required',
|
||||||
@@ -459,7 +481,7 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'deskripsi_kabin' => 'required',
|
'deskripsi_kabin' => 'required',
|
||||||
|
|
||||||
|
|
||||||
'badan_pesawat' => 'required',
|
'badan_pesawat' => 'nullable',
|
||||||
'sayap_pesawat' => 'required',
|
'sayap_pesawat' => 'required',
|
||||||
'ekor_pesawat' => 'required',
|
'ekor_pesawat' => 'required',
|
||||||
'landing_gear' => 'required',
|
'landing_gear' => 'required',
|
||||||
@@ -505,12 +527,10 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'sistem_hiburan_kabin' => 'required',
|
'sistem_hiburan_kabin' => 'required',
|
||||||
'deskripsi_Interior' => 'required',
|
'deskripsi_Interior' => 'required',
|
||||||
|
|
||||||
|
'fakta_positif' => 'nullable|array',
|
||||||
|
'fakta_negatif' => 'nullable|array',
|
||||||
'faktor_positif.*' => 'nullable',
|
'kesimpulan' => 'nullable',
|
||||||
'faktor_negatif.*' => 'nullable',
|
'catatan' => 'nullable|array',
|
||||||
'kesimpulan.*' => 'nullable',
|
|
||||||
'catatan.*' => 'nullable',
|
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class Penilai extends Model
|
|||||||
'lpj',
|
'lpj',
|
||||||
'type',
|
'type',
|
||||||
'memo',
|
'memo',
|
||||||
|
'type_penilai'
|
||||||
];
|
];
|
||||||
|
|
||||||
// protected static function newFactory(): PenilaiFactory
|
// 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">
|
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
||||||
@foreach ($jenisLegalitasJaminan as $row)
|
@foreach ($jenisLegalitasJaminan as $row)
|
||||||
<label class="switch">
|
<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
|
<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[]" />
|
value="{{ $row->code }}" name="jenis_legalitas_jaminan_id[]" />
|
||||||
@else
|
@else
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
Memo Antar Kantor
|
Memo Antar Kantor
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex items-center gap-2">
|
<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
|
<i class="ki-filled ki-exit-left"></i> Back
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
Data Jaminan
|
Data Jaminan
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex items-center gap-2">
|
<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
|
<i class="ki-filled ki-exit-left"></i> Back
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -371,7 +371,7 @@
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.status) {
|
if (data.status) {
|
||||||
// Jika status LPJ sudah ada, arahkan langsung ke halaman
|
// Jika status LPJ sudah ada, arahkan langsung ke halaman
|
||||||
if (data.status === 'standar') {
|
if (data.status === 'standard') {
|
||||||
showLoadingSwal('Tunggu ...');
|
showLoadingSwal('Tunggu ...');
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
|
||||||
@@ -394,17 +394,17 @@
|
|||||||
} else {
|
} else {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Pilih Jenis LPJ',
|
title: 'Pilih Jenis LPJ',
|
||||||
text: 'Apakah kamu akan memilih LPJ Standar?',
|
text: 'Apakah kamu akan memilih LPJ Standard?',
|
||||||
icon: 'question',
|
icon: 'question',
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
showDenyButton: true,
|
showDenyButton: true,
|
||||||
confirmButtonText: 'LPJ Standar',
|
confirmButtonText: 'LPJ Standard',
|
||||||
denyButtonText: 'LPJ Sederhana',
|
denyButtonText: 'LPJ Sederhana',
|
||||||
confirmButtonColor: '#3085d6',
|
confirmButtonColor: '#3085d6',
|
||||||
denyButtonColor: '#d33',
|
denyButtonColor: '#d33',
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
saveStatusLpj(permohonanId, documentId, inspeksiId, 'standar', jaminanId);
|
saveStatusLpj(permohonanId, documentId, inspeksiId, 'standard', jaminanId);
|
||||||
} else if (result.isDenied) {
|
} else if (result.isDenied) {
|
||||||
saveStatusLpj(permohonanId, documentId, inspeksiId, 'sederhana', jaminanId);
|
saveStatusLpj(permohonanId, documentId, inspeksiId, 'sederhana', jaminanId);
|
||||||
}
|
}
|
||||||
@@ -427,12 +427,12 @@
|
|||||||
permohonan_id: permohonanId,
|
permohonan_id: permohonanId,
|
||||||
document_id: documentId,
|
document_id: documentId,
|
||||||
inspeksi_id: inspeksiId,
|
inspeksi_id: inspeksiId,
|
||||||
type: type
|
type: type,
|
||||||
}),
|
}),
|
||||||
}).then(response => response.json())
|
}).then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
if (type === 'standar') {
|
if (type === 'standard') {
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.standard', $permohonan->id) }}?documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}`;
|
||||||
} else if (type === 'sederhana') {
|
} else if (type === 'sederhana') {
|
||||||
@@ -557,14 +557,14 @@
|
|||||||
|
|
||||||
function checkLaporan(permohonanId, documentId, inspeksiId, jaminanId) {
|
function checkLaporan(permohonanId, documentId, inspeksiId, jaminanId) {
|
||||||
fetch(
|
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(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.status) {
|
if (data.status) {
|
||||||
// Jika laporan ada, arahkan ke halaman cetak
|
// Jika laporan ada, arahkan ke halaman cetak
|
||||||
window.location.href =
|
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 {
|
} else {
|
||||||
// Jika laporan belum ada, tampilkan pesan peringatan
|
// Jika laporan belum ada, tampilkan pesan peringatan
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
|
|||||||
@@ -3,6 +3,11 @@
|
|||||||
<h3 class="card-title uppercase">
|
<h3 class="card-title uppercase">
|
||||||
Order Penilaian
|
Order Penilaian
|
||||||
</h3>
|
</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>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="grid gap-5 grid-cols-2">
|
<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">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Faktor Positif</label>
|
<label class="form-label max-w-56">Faktor Positif</label>
|
||||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
@if (!empty($forminspeksi['fakta_positif']))
|
||||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
|
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||||
</button>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
|
style="display: none;">
|
||||||
</div>
|
<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"
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
@@ -421,13 +437,26 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||||
<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>
|
@if (!empty($forminspeksi['fakta_negatif']))
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||||
<i class="ki-outline ki-trash"></i>
|
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
</button>
|
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
</div>
|
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"
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
$jaminanId = $dokumen->id;
|
$jaminanId = $dokumen->id;
|
||||||
$currentInspeksi = $inspeksiData[$jaminanId] ?? null;
|
$currentInspeksi = $inspeksiData[$jaminanId] ?? null;
|
||||||
|
|
||||||
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT'];
|
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT', 'MESIN'];
|
||||||
|
|
||||||
$href = [
|
$href = [
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -15,464 +15,17 @@
|
|||||||
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
||||||
<input type="hidden" name="type" value="tanah">
|
<input type="hidden" name="type" value="tanah">
|
||||||
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header bg-agi-50">
|
@include('lpj::surveyor.components.pembanding-kendaraan')
|
||||||
<h3 class="card-title">Data Pembanding</h3>
|
<div class="card-footer">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex justify-end gap-2">
|
||||||
<a href="{{ route('surveyor.show', ['id' => request('pembanding')]) }}"
|
<button type="button" onclick="submitData()" class="btn btn-primary">
|
||||||
class="btn btn-xs btn-info">
|
<i class="ki-duotone ki-save-2 fs-2"></i>
|
||||||
<i class="ki-filled ki-exit-left"></i> Kembali
|
Simpan
|
||||||
</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>
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="card-footer">
|
|
||||||
<div class="flex justify-end gap-2">
|
|
||||||
<button type="button" onclick="submitData()" class="btn btn-primary">
|
|
||||||
<i class="ki-duotone ki-save-2 fs-2"></i>
|
|
||||||
Simpan
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -244,11 +244,14 @@
|
|||||||
|
|
||||||
@php
|
@php
|
||||||
$processedCategories = [];
|
$processedCategories = [];
|
||||||
|
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT','MESIN'];
|
||||||
|
$dokumentName = null;
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@foreach ($permohonan->debiture->documents as $dokumen)
|
@foreach ($permohonan->debiture->documents as $dokumen)
|
||||||
@if ($dokumen->jenisJaminan)
|
@if ($dokumen->jenisJaminan)
|
||||||
@php
|
@php
|
||||||
|
$dokumentName =$dokumen->jenisJaminan->name;
|
||||||
$formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true);
|
$formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true);
|
||||||
@endphp
|
@endphp
|
||||||
@if (isset($formKategori) && $formKategori)
|
@if (isset($formKategori) && $formKategori)
|
||||||
@@ -323,6 +326,7 @@
|
|||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
@if (!in_array(strtoupper($dokumentName), $tanahBangunanTypes))
|
||||||
<div id="lantaiContainer" class="mt-2">
|
<div id="lantaiContainer" class="mt-2">
|
||||||
<!-- Lantai akan dinamis ditambahkan di sini -->
|
<!-- Lantai akan dinamis ditambahkan di sini -->
|
||||||
<div class="lantai-item mb-4" id="lantai-item-1">
|
<div class="lantai-item mb-4" id="lantai-item-1">
|
||||||
@@ -390,6 +394,7 @@
|
|||||||
<i class="ki-outline ki-plus text-2sm"></i>
|
<i class="ki-outline ki-plus text-2sm"></i>
|
||||||
Lainnya
|
Lainnya
|
||||||
</button>
|
</button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -218,33 +218,34 @@
|
|||||||
|
|
||||||
<label class="form-label lg:form-label max-w-56 ">Catatan yang Perlu Diperhatikan
|
<label class="form-label lg:form-label max-w-56 ">Catatan yang Perlu Diperhatikan
|
||||||
</label>
|
</label>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<div id="keterangan-container" class="flex items-baseline flex-wrap gap-2.5 w-full">
|
<div id="keterangan-container" class="flex items-baseline flex-wrap gap-2.5 w-full">
|
||||||
@if (!empty($forminspeksi['fakta']['keterangan']) && is_array($forminspeksi['fakta']['keterangan']))
|
@if (!empty($forminspeksi['fakta']['keterangan']) && is_array($forminspeksi['fakta']['keterangan']))
|
||||||
@foreach ($forminspeksi['fakta']['keterangan'] as $index => $item)
|
@foreach ($forminspeksi['fakta']['keterangan'] as $index => $item)
|
||||||
|
<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">{{ old("keterangan.$index", $item) }}</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="keterangan flex items-center gap-2 mt-2 textarea-group w-full">
|
<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">{{ old("keterangan.$index", $item) }}</textarea>
|
<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"
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
style="display: none;">
|
style="display: none;">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<i class="ki-outline ki-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<em id="error-keterangan" class="alert text-danger text-sm"></em>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endif
|
||||||
@else
|
</div>
|
||||||
<div class="keterangan flex items-center gap-2 mt-2 textarea-group w-full">
|
<button type="button" onclick="addClonableItem('keterangan-container', 'keterangan')"
|
||||||
<textarea name="keterangan[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3"></textarea>
|
class="btn btn-primary btn-sm mt-5 ">
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
<i class="ki-outline ki-plus"></i>
|
||||||
<i class="ki-outline ki-trash"></i>
|
</button>
|
||||||
</button>
|
</div>
|
||||||
<em id="error-keterangan" class="alert text-danger text-sm"></em>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<button type="button" onclick="addClonableItem('keterangan-container', 'keterangan')"
|
|
||||||
class="btn btn-primary btn-sm mt-5 ">
|
|
||||||
<i class="ki-outline ki-plus"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,11 @@
|
|||||||
<h3 class="card-title uppercase">
|
<h3 class="card-title uppercase">
|
||||||
Order Penilaian
|
Order Penilaian
|
||||||
</h3>
|
</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>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="grid gap-5 grid-cols-2">
|
<div class="grid gap-5 grid-cols-2">
|
||||||
@@ -162,8 +167,8 @@
|
|||||||
<label class="form-label max-w-56">Kendaraan</label>
|
<label class="form-label max-w-56">Kendaraan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="flex flex-col items-start gap-4">
|
<div class="flex flex-col items-start gap-4">
|
||||||
@if (isset($jenisKendaraan))
|
@if (isset($basicData['jenisKendaraan']))
|
||||||
@foreach ($jenisKendaraan as $item)
|
@foreach ($basicData['jenisKendaraan'] as $item)
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<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">
|
<label class="form-label max-w-56 gap-2.5" style="width: 500px">
|
||||||
<input class="checkbox" name="kendaraan[]" type="checkbox"
|
<input class="checkbox" name="kendaraan[]" type="checkbox"
|
||||||
@@ -171,9 +176,9 @@
|
|||||||
{{ in_array($item->name, old('kendaraan', $forminspeksi['kendaraan'] ?? [])) ? 'checked' : '' }} />
|
{{ in_array($item->name, old('kendaraan', $forminspeksi['kendaraan'] ?? [])) ? 'checked' : '' }} />
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
</label>
|
</label>
|
||||||
<input type="text" name="sarana_pelengkap_input[]" class="input w-full"
|
<input type="text" name="kendaraan_input[]" class="input w-full"
|
||||||
id="bentukTanahInput" placeholder="Masukkan {{ $item->name }}..."
|
id="kendaraan_input" placeholder="Masukkan {{ $item->name }}..."
|
||||||
value="{{ old('sarana_pelengkap_input.' . $loop->index, $forminspeksi['sarana_pelengkap_input'][$loop->index] ?? '') }}">
|
value="{{ old('kendaraan_input.' . $loop->index, $forminspeksi['kendaraan_input'][$loop->index] ?? '') }}">
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
@@ -400,7 +405,7 @@
|
|||||||
$inputDataJaminan = [
|
$inputDataJaminan = [
|
||||||
[
|
[
|
||||||
'label' => 'Transmisi',
|
'label' => 'Transmisi',
|
||||||
'value' => ['Terawat', 'Cukup Terawat', 'Tidak Terawat'],
|
'value' => ['Otomatis', 'Manual'],
|
||||||
'name' => 'transmisi',
|
'name' => 'transmisi',
|
||||||
'index' => 0,
|
'index' => 0,
|
||||||
],
|
],
|
||||||
@@ -596,13 +601,24 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Faktor Positif</label>
|
<label class="form-label max-w-56">Faktor Positif</label>
|
||||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
@if (!empty($forminspeksi['fakta_positif']))
|
||||||
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
|
@foreach ($forminspeksi['fakta_positif'] as $index => $positif)
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old("fakta_positif.$index", $positif) }}</textarea>
|
||||||
</button>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
|
style="display: none;">
|
||||||
</div>
|
<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"
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
@@ -610,16 +626,30 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Faktor Negatif</label>
|
<label class="form-label max-w-56">Faktor Negatif</label>
|
||||||
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
|
||||||
<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>
|
@if (!empty($forminspeksi['fakta_negatif']))
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
@foreach ($forminspeksi['fakta_negatif'] as $index => $negatif)
|
||||||
<i class="ki-outline ki-trash"></i>
|
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
</button>
|
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old("fakta_negatif.$index", $negatif) }}</textarea>
|
||||||
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
</div>
|
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"
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
@@ -627,62 +657,92 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Analisa makro</label>
|
<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">
|
||||||
<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>
|
|
||||||
<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"
|
@if (!empty($forminspeksi['analisa_makro']))
|
||||||
onclick="addClonableItem('analisa-makro-container', '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">{{ 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>
|
||||||
|
@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>
|
<i class="ki-outline ki-plus"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Kesimpulan</label>
|
<label class="form-label max-w-56">Kesimpulan</label>
|
||||||
<div id="kesimpulan-container" class="flex flex-wrap items-baseline w-full">
|
<div id="kesimpulan-container" class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="kesimpulan flex items-center gap-2 mt-2 textarea-group w-full">
|
@if (!empty($forminspeksi['kesimpulan']))
|
||||||
<textarea class="textarea mt-2" name="kesimpulan[]" rows="3">{{ old('kesimpulan.0', $forminspeksi['kesimpulan'][0] ?? '') }}</textarea>
|
@foreach ($forminspeksi['kesimpulan'] as $index => $negatif)
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
<div class="kesimpulan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<textarea class="textarea mt-2" name="kesimpulan[]" rows="3">{{ old("kesimpulan.$index", $negatif) }}</textarea>
|
||||||
</button>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
<em id="error-kesimpulan" class="alert text-danger text-sm"></em>
|
style="display: none;">
|
||||||
</div>
|
<i class="ki-outline ki-trash"></i>
|
||||||
<button type="button"
|
</button>
|
||||||
onclick="addClonableItem('kesimpulan-container', 'kesimpulan')"
|
</div>
|
||||||
class="btn btn-primary btn-sm mt-5 ">
|
@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;">
|
||||||
|
<i class="ki-outline ki-trash"></i>
|
||||||
|
</button>
|
||||||
|
<em id="error-kesimpulan" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
|
onclick="addClonableItem('kesimpulan-container', 'kesimpulan')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<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">
|
<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">
|
@if (!empty($forminspeksi['catatan']))
|
||||||
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old('catatan.0', $forminspeksi['catatan'][0] ?? '') }}</textarea>
|
@foreach ($forminspeksi['catatan'] as $index => $negatif)
|
||||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
<div class="catatan flex items-center gap-2 mt-2 textarea-group w-full">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old("catatan.$index", $negatif) }}</textarea>
|
||||||
</button>
|
<button class="btn btn-danger btn-sm remove-btn" type="button"
|
||||||
<em id="error-catatan" class="alert text-danger text-sm"></em>
|
style="display: none;">
|
||||||
</div>
|
<i class="ki-outline ki-trash"></i>
|
||||||
<button type="button"
|
</button>
|
||||||
onclick="addClonableItem('catatan-container', 'catatan')"
|
</div>
|
||||||
class="btn btn-primary btn-sm mt-5 ">
|
@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;">
|
||||||
|
<i class="ki-outline ki-trash"></i>
|
||||||
|
</button>
|
||||||
|
<em id="error-catatan" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||||
|
onclick="addClonableItem('catatan-container', 'catatan')">
|
||||||
<i class="ki-outline ki-plus"></i>
|
<i class="ki-outline ki-plus"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,20 +49,14 @@
|
|||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<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>
|
<label for="province_code" class="form-label max-w-56">Provinsi</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select id="province_code" name="province_code" class="input w-full" onchange="getCity(this.value)">
|
<select id="province_code" name="province_code" class="input w-full">
|
||||||
<option value="">Select Province</option>
|
<option value="">Pilih Provinsi</option>
|
||||||
@foreach ($provinces as $province)
|
@foreach ($provinces as $item)
|
||||||
<option value="{{ $province->code }}"
|
<option value="{{ $item->code }}" {{ ($forminspeksi['alamat']['sesuai']['province_code'] ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option>
|
||||||
@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>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,8 +65,13 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<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>
|
<label for="city_code" class="form-label max-w-56">Kota/Kabupaten</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<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>
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,8 +79,13 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<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>
|
<label for="district_code" class="form-label max-w-56">Kecamatan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<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>
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -91,6 +95,11 @@
|
|||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select id="village_code" name="village_code" class="select w-full">
|
<select id="village_code" name="village_code" class="select w-full">
|
||||||
<option value="">Pilih Kelurahan</option>
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
<div class="card border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
<div class="card-body">
|
<div class="card-header bg-agi-50">
|
||||||
<div class="py-4 px-6">
|
<h3 class="card-title uppercase">
|
||||||
<h1 class="text-md font-medium text-gray-900">Order Penilaian</h1>
|
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>
|
||||||
|
<div class="card-body">
|
||||||
<div class="grid gap-5 grid-cols-2">
|
<div class="grid gap-5 grid-cols-2">
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<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 border border-agi-100 bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-header bg-agi-50">
|
||||||
|
<h3 class="card-title uppercase">
|
||||||
|
Identitas Debitur
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="py-4 px-6">
|
|
||||||
<h1 class="text-md font-medium text-gray-900">Identitas Debitur</h1>
|
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
<div class="grid gap-5">
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
@@ -189,3 +198,92 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Hadap Mata Angin</label>
|
<label class="form-label max-w-56">Hadap Mata Angin</label>
|
||||||
<div class="mt-2">
|
<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="flex-wrap items-stretch">
|
||||||
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
<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">
|
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||||
|
|||||||
@@ -463,6 +463,10 @@
|
|||||||
$trail->parent('otorisator');
|
$trail->parent('otorisator');
|
||||||
$trail->push('Otorisator', route('otorisator.pelaporan.index'));
|
$trail->push('Otorisator', route('otorisator.pelaporan.index'));
|
||||||
});
|
});
|
||||||
|
Breadcrumbs::for('otorisator.view-laporan', function (BreadcrumbTrail $trail) {
|
||||||
|
|
||||||
|
$trail->push('Otorisator Pelaporan');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// basic data surveyor
|
// basic data surveyor
|
||||||
|
|||||||
@@ -574,6 +574,7 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
Route::get('paparan', [PenilaiController::class, 'paparan'])->name('paparan');
|
Route::get('paparan', [PenilaiController::class, 'paparan'])->name('paparan');
|
||||||
Route::get('rap', [PenilaiController::class, 'rap'])->name('rap');
|
Route::get('rap', [PenilaiController::class, 'rap'])->name('rap');
|
||||||
Route::get('/check-status-lpj', [PenilaiController::class, 'checkStatusLpj'])->name('check.status.lpj');
|
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('/save-status-lpj', [PenilaiController::class, 'saveStatusLpj'])->name('save.status.lpj');
|
||||||
Route::post('/preoses-laporan/{id}', [PenilaiController::class, 'storePenilaian'])->name('proses.laporan');
|
Route::post('/preoses-laporan/{id}', [PenilaiController::class, 'storePenilaian'])->name('proses.laporan');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user