penambahan lampiran foto dokumen dan paparan di so dan ganti unit di jenis jaminan ruko rukan

This commit is contained in:
majid
2025-01-14 09:50:25 +07:00
parent 090bb618b1
commit 76c1a74c3a
18 changed files with 768 additions and 490 deletions

View File

@@ -44,15 +44,15 @@ class PenilaiController extends Controller
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
*/ */
public function lampiran(Request $request, $id) public function lampiran(Request $request)
{ {
$permohonanId = $request->query('permohonanId'); $permohonanId = $request->query('permohonanId');
$documentId = $request->query('documentId'); $documentId = $request->query('documentId');
$jaminanId = $request->query('jaminanId'); $jaminanId = $request->query('jaminanId');
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId); $permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
$inpeksi = Inspeksi::where('permohonan_id', $id)->where('dokument_id', $documentId)->first(); $inpeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
$formFoto = null; $formFoto = null;
if ($inpeksi) { if ($inpeksi) {
@@ -280,6 +280,7 @@ class PenilaiController extends Controller
$jaminanId = $request->query('jaminanId'); $jaminanId = $request->query('jaminanId');
$provinces = Province::all(); $provinces = Province::all();
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId); $permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
$noLpRAP = $this->generateNoLaporan($permohonan, $documentId, 'rap');
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first(); $inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
Penilai::updateOrCreate( Penilai::updateOrCreate(
[ [
@@ -302,7 +303,7 @@ class PenilaiController extends Controller
$rap = json_decode($resume->rap, true); $rap = json_decode($resume->rap, true);
} }
return view('lpj::penilai.components.rap-penilai', compact('permohonan', 'rap', 'provinces', 'forminspeksi')); return view('lpj::penilai.components.rap-penilai', compact('permohonan', 'rap', 'provinces', 'forminspeksi', 'noLpRAP'));
} }
@@ -756,6 +757,60 @@ class PenilaiController extends Controller
} }
} }
public function storeRap(Request $request){
DB::beginTransaction();
try {
$formRequest = new FormSurveyorRequest();
$formRequest->setContainer(app());
$formRequest->initialize(
$request->all(),
$request->query->all(),
$request->attributes->all(),
$request->cookies->all(),
$request->files->all(),
$request->server->all(),
$request->getContent()
);
$validated = $formRequest->validateResolved();
$result = $this->surveyorController->store($formRequest);
$data =[
'kepada' => $request->input('kepada'),
'dari' => $request->input('dari'),
'nomor_rap' => $request->input('nomor_rap'),
'tanggal' => $request->input('tanggal'),
'perihal' => $request->input('perihal')
];
Penilai::updateOrCreate(
[
'permohonan_id' => $request->permohonanId,
'dokument_id' => $request->documentId,
'inspeksi_id' => $request->inspeksiId,
],
[
'rap' => json_encode($data),
]
);
DB::commit();
return response()->json([
'success' => true,
'message' => 'Berhasil menyimpan LPJ',
'data' => $result
], 200);
} catch (\Throwable $e) {
DB::rollBack();
return response()->json([
'success' => false,
'message' => 'Terjadi kesalahan saat menyimpan LPJ',
'error' => $e->getMessage(),
'trace' => $e->getTraceAsString()
], 500);
}
}
public function print_out(Request $request) public function print_out(Request $request)
@@ -794,6 +849,7 @@ class PenilaiController extends Controller
$lpjData = json_decode($lpj->lpj, true); $lpjData = json_decode($lpj->lpj, true);
$memo = json_decode($lpj->memo, true); $memo = json_decode($lpj->memo, true);
$resumeData = json_decode($lpj->resume, true); $resumeData = json_decode($lpj->resume, true);
$rap = json_decode($lpj->rap, true);
} }
$inputAddress = $forminspeksi['asset']['alamat']['sesuai'] ?? $forminspeksi['asset']['alamat']['tidak sesuai']; $inputAddress = $forminspeksi['asset']['alamat']['sesuai'] ?? $forminspeksi['asset']['alamat']['tidak sesuai'];
@@ -824,7 +880,8 @@ class PenilaiController extends Controller
'nomorLaporan', 'nomorLaporan',
'memo', 'memo',
'resumeData', 'resumeData',
'tanggalLaporan' 'tanggalLaporan',
'rap'
)); ));
$pdf->setPaper('A4', 'portrait'); $pdf->setPaper('A4', 'portrait');
@@ -845,7 +902,8 @@ class PenilaiController extends Controller
'nomorLaporan', 'nomorLaporan',
'memo', 'memo',
'resumeData', 'resumeData',
'tanggalLaporan' 'tanggalLaporan',
'rap'
)); ));
// return $pdf; // return $pdf;

View File

@@ -2763,7 +2763,7 @@ class SurveyorController extends Controller
'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, 'sensor_camera_recorder_input' => $data['sensor_camera_recorder_input'] ?? null,
'lcd' => $data['lcd'] ?? null, 'lcd' => $data['lcd'] ?? null,
'lcd_innput' => $data['lcd_innput'] ?? null, 'lcd_input' => $data['lcd_input'] ?? null,
'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null, 'sabuk_keselamatan' => $data['sabuk_keselamatan'] ?? null,
'sabuk_keselamatan_input' => $data['sabuk_keselamatan_input'] ?? null, 'sabuk_keselamatan_input' => $data['sabuk_keselamatan_input'] ?? null,
'airbag' => $data['airbag'] ?? null, 'airbag' => $data['airbag'] ?? null,

View File

@@ -280,10 +280,16 @@ class FormSurveyorRequest extends FormRequest
'nama_jalan' => 'required', 'nama_jalan' => 'required',
'perumahan_gang' => 'required', 'perumahan_gang' => 'required',
'blok_nomor' => 'required', 'blok_nomor' => 'required',
'desa_kelurahan' => 'required',
'kecamatan' => 'required', 'village_code' => 'nullable|string',
'kota_madya' => 'required', 'district_code' => 'nullable|string',
'provinsi' => 'required', 'city_code' => 'nullable|string',
'province_code' => 'nullable|string',
'masa_stnk' => 'required',
'masa_pajak' => 'required',
'kendaraan.*' => 'required',
'kendaraan_input.*' => 'nullable',
'kondisi' => 'required', 'kondisi' => 'required',
'nomor_polisi' => 'required', 'nomor_polisi' => 'required',
'nomor_polis_tidak_sesuai' => 'nullable', 'nomor_polis_tidak_sesuai' => 'nullable',
@@ -297,26 +303,47 @@ class FormSurveyorRequest extends FormRequest
'nomor_mesin_tidak_sesuai' => 'nullable', 'nomor_mesin_tidak_sesuai' => 'nullable',
'posisi_kilometer' => 'required', 'posisi_kilometer' => 'required',
'transmisi' => 'required', 'transmisi' => 'required',
'transmisi_input' => 'nullable',
'mesin_panel_instrument.*' => 'required', 'mesin_panel_instrument.*' => 'required',
'mesin_panel_instrument_input.*' => 'nullable',
'fungsi_mesin_panel_instrument.*' => 'required', 'fungsi_mesin_panel_instrument.*' => 'required',
'fungsi_mesin_panel_instrument_input.*' => 'nullable',
'interior.*' => 'required', 'interior.*' => 'required',
'interior_input.*' => 'nullable',
'jumlah_pintu.*' => 'required', 'jumlah_pintu.*' => 'required',
'jumlah_pintu_input.*' => 'nullable',
'rangka_karoseri.*' => 'required', 'rangka_karoseri.*' => 'required',
'rangka_karoseri_input.*' => 'nullable',
'ban.*' => 'required', 'ban.*' => 'required',
'ban_input.*' => 'nullable',
'velg.*' => 'required', 'velg.*' => 'required',
'velg_input.*' => 'nullable',
'bamper_depan.*' => 'required', 'bamper_depan.*' => 'required',
'bamper_depan_input.*' => 'nullable',
'bamper_belakang.*' => 'required', 'bamper_belakang.*' => 'required',
'bamper_belakang_input.*' => 'nullable',
'lampu_depan.*' => 'required', 'lampu_depan.*' => 'required',
'lampu_depan_input.*' => 'nullable',
'lampu_belakang.*' => 'required', 'lampu_belakang.*' => 'required',
'lampu_belakang_input.*' => 'nullable',
'kaca_kendaraan.*' => 'required', 'kaca_kendaraan.*' => 'required',
'kaca_kendaraan_input.*' => 'nullable',
'air_conditioner.*' => 'required', 'air_conditioner.*' => 'required',
'air_conditioner_input.*' => 'nullable',
'tape_radio_cd.*' => 'required', 'tape_radio_cd.*' => 'required',
'tape_radio_cd_input.*' => 'nullable',
'sensor_parkir.*' => 'required', 'sensor_parkir.*' => 'required',
'sensor_parkir_input.*' => 'nullable',
'sensor_camera_recorder.*' => 'required', 'sensor_camera_recorder.*' => 'required',
'sensor_camera_recorder_input.*' => 'nullable',
'lcd.*' => 'required', 'lcd.*' => 'required',
'lcd_input.*' => 'nullable',
'sabuk_keselamatan.*' => 'required', 'sabuk_keselamatan.*' => 'required',
'sabuk_keselamatan_input.*' => 'nullable',
'airbag.*' => 'required', 'airbag.*' => 'required',
'airbag_input.*' => 'nullable',
'asuransi.*' => 'required', 'asuransi.*' => 'required',
'asuransi_input.*' => 'nullable',
'perusahaan_asuransi' => 'required', 'perusahaan_asuransi' => 'required',
'tahun_berakhir' => 'required', 'tahun_berakhir' => 'required',
'fakta_positif.*' => 'nullable', 'fakta_positif.*' => 'nullable',

View File

@@ -23,6 +23,7 @@ class Penilai extends Model
'lpj', 'lpj',
'type', 'type',
'memo', 'memo',
'rap',
'type_penilai' 'type_penilai'
]; ];

View File

@@ -14,7 +14,7 @@
<i class="ki-filled ki-exit-left"></i> Back <i class="ki-filled ki-exit-left"></i> Back
</a> </a>
@else @else
<a href="{{ route($backLink) }}" class="btn btn-xs btn-info"> <a href="{{ route($backLink, $queryParams ?? []) }}" 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>
@endif @endif

View File

@@ -541,6 +541,7 @@
@if ($dokumen->jenisJaminan) @if ($dokumen->jenisJaminan)
@php @php
$formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true); $formKategori = json_decode($dokumen->jenisJaminan->form_kategori, true);
$jenisAset = $dokumen->jenisJaminan->name;
@endphp @endphp
@if (isset($formKategori) && $formKategori) @if (isset($formKategori) && $formKategori)
@php @php
@@ -593,6 +594,11 @@
'pesawat' => 'Luas Pesawat', 'pesawat' => 'Luas Pesawat',
'kapal' => 'Luas Kapal', 'kapal' => 'Luas Kapal',
]; ];
if (strcasecmp($jenisAset, 'RUKO/RUKAN') === 0) {
$labelNilai['bangunan'] = 'Luas Unit';
unset($labelNilai['tanah']);
}
@endphp @endphp
@foreach ($kategoriUnik as $item) @foreach ($kategoriUnik as $item)
@@ -640,8 +646,8 @@
<label for="province" class="input"> <label for="province" class="input">
<i class="">Rp <i class="">Rp
</i> </i>
<input type="text" class=" w-full currency-format" <input type="text" class=" w-full currency-format" id="total_nilai_pasar_wajar"
id="total_nilai_pasar_wajar" name="total_nilai_pasar_wajar" name="total_nilai_pasar_wajar"
value="{{ old('total_nilai_pasar_wajar', $lpjData['total_nilai_pasar_wajar'] ?? null) }}"> value="{{ old('total_nilai_pasar_wajar', $lpjData['total_nilai_pasar_wajar'] ?? null) }}">
</label> </label>
</div> </div>
@@ -656,6 +662,8 @@
Tambah NPW </button> Tambah NPW </button>
</div> </div>
<div> <div>
<label for="total_nilai_pasar_wajar" class="form-label uppercase">TOTAL NILAI <label for="total_nilai_pasar_wajar" class="form-label uppercase">TOTAL NILAI
LIKUIDASI</label> LIKUIDASI</label>
@@ -693,6 +701,41 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
<label class="form-label lg:form-label max-w-56 ">Catatan yang Perlu Diperhatikan
</label>
<div class="w-full">
<div id="keterangan_penilai-container" class="flex items-baseline flex-wrap gap-2.5 w-full">
@if (!empty($lpjData['keterangan_penilai']) && is_array($lpjData['keterangan_penilai']))
@foreach ($lpjData['keterangan_penilai'] as $index => $item)
<div class="keterangan_penilai flex items-center gap-2 mt-2 textarea-group w-full">
<textarea name="keterangan_penilai[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3">{{ old("keterangan_penilai.$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_penilai flex items-center gap-2 mt-2 textarea-group w-full">
<textarea name="keterangan_penilai[]" class="textarea mt-2" placeholder="Masukkan catatan penting" rows="3"></textarea>
<button class="btn btn-danger btn-sm remove-btn" type="button"
style="display: none;">
<i class="ki-outline ki-trash"></i>
</button>
<em id="error-keterangan_penilai" class="alert text-danger text-sm"></em>
</div>
@endif
</div>
<button type="button"
onclick="addClonableItem('keterangan_penilai-container', 'keterangan_penilai')"
class="btn btn-primary btn-sm mt-5 ">
<i class="ki-outline ki-plus"></i>
</button>
</div>
</div>
</div> </div>
</div> </div>
@@ -770,20 +813,29 @@
oninput="calculateTotal()"> oninput="calculateTotal()">
</div> </div>
<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" class="">X</label>
<label class="input">
<i class="">Rp
</i>
<input type="text" <input type="text"
id="nilai_npw_${npwCounter}_1" id="nilai_npw_${npwCounter}_1"
class="input w-full currency-format" class=" w-full currency-format"
name="nilai_npw_${npwCounter}_1" name="nilai_npw_${npwCounter}_1"
placeholder="Harga per meter" placeholder="Harga per meter"
oninput="calculateTotal()"> oninput="calculateTotal()">
</label>
</div> </div>
<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 class="input">
<i class="">Rp
</i>
<input type="text" <input type="text"
id="nilai_npw_${npwCounter}_2" id="nilai_npw_${npwCounter}_2"
class="input w-full currency-format" class="input w-full currency-format"
name="nilai_npw_${npwCounter}_2" name="nilai_npw_${npwCounter}_2"
placeholder="Total Nilai" placeholder="Total Nilai"
readonly> readonly>
</label>
<button type="button" class="btn btn-danger remove-npw"> <button type="button" class="btn btn-danger remove-npw">
<i class="ki-filled ki-minus"></i> <i class="ki-filled ki-minus"></i>
</button> </button>
@@ -841,22 +893,31 @@
<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" class="">X</label>
<label class="input">
<i class="">Rp
</i>
<input type="text" <input type="text"
id="nilai_npw_${npwCounter}_1" id="nilai_npw_${npwCounter}_1"
class="input w-full currency-format" class=" w-full currency-format"
name="nilai_npw_${npwCounter}_1" name="nilai_npw_${npwCounter}_1"
placeholder="Harga per meter" placeholder="Harga per meter"
value="${npw.nilai_1 || ''}" value="${npw.nilai_1 || ''}"
oninput="calculateTotal()"> oninput="calculateTotal()">
</label>
</div> </div>
<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 class="input">
<i class="">Rp
</i>
<input type="text" <input type="text"
id="nilai_npw_${npwCounter}_2" id="nilai_npw_${npwCounter}_2"
class="input w-full currency-format" class=" w-full currency-format"
name="nilai_npw_${npwCounter}_2" name="nilai_npw_${npwCounter}_2"
placeholder="Total Nilai" placeholder="Total Nilai"
value="${npw.nilai_2 || ''}" value="${npw.nilai_2 || ''}"
readonly> readonly>
</label>
<div> <div>
<button type="button" class="btn btn-danger remove-npw h-full"> <button type="button" class="btn btn-danger remove-npw h-full">
<i class="ki-filled ki-minus"></i> <i class="ki-filled ki-minus"></i>
@@ -1023,3 +1084,4 @@
}); });
} }
</script> </script>
@include('lpj::surveyor.js.utils')

View File

@@ -15,7 +15,15 @@
<button type="button" class="btn btn-success" id="saveButton" onclick="saveLpjSederhanadanStandard()"> <button type="button" class="btn btn-success" id="saveButton" onclick="saveLpjSederhanadanStandard()">
<span id="saveButtonText">Save</span> <span id="saveButtonText">Save</span>
</button> </button>
@if (Auth::user()->hasAnyRole(['senior-officer'])) @if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal']))
<a class="btn btn-info"
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
LAMPIRAN FOTO DAN DOKUMEN
</a>
<a class="btn btn-secondary"
href="{{ route('penilai.paparan') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
PAPARAN
</a>
<a class="btn btn-primary" <a class="btn btn-primary"
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )"> onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )">
<i class="ki-filled ki-printer"></i> Print <i class="ki-filled ki-printer"></i> Print

View File

@@ -24,21 +24,21 @@
<label class="form-label max-w-56">Kepada</label> <label class="form-label max-w-56">Kepada</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="kepada" class="input w-full" placeholder="Masukkan..." <input type="text" name="kepada" class="input w-full" placeholder="Masukkan..."
value=" {{ $memo->kepada ?? "" }}"> value=" {{ $memo->kepada ?? '' }}">
</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">Dari</label> <label class="form-label max-w-56">Dari</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="dari" class="input w-full" placeholder="Masukkan..." <input type="text" name="dari" class="input w-full" placeholder="Masukkan..."
value="{{ $memo->dari ?? "" }}"> value="{{ $memo->dari ?? '' }}">
</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">Nomor Memo</label> <label class="form-label max-w-56">Nomor Memo</label>
<div class="flex flex-wrap items-base line w-full"> <div class="flex flex-wrap items-base line w-full">
<input type="text" name="nomor_memo" class="input w-full" placeholder="Masukkan..." <input type="text" name="nomor_memo" class="input w-full" placeholder="Masukkan..."
value="{{ $noLpmemo ?? "" }}" @readonly(true)> value="{{ $noLpmemo ?? '' }}" @readonly(true)>
</div> </div>
</div> </div>
{{-- 250109828129/ --}} {{-- 250109828129/ --}}
@@ -47,7 +47,7 @@
<label class="form-label max-w-56">Tanggal</label> <label class="form-label max-w-56">Tanggal</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="date" name="tanggal" class="input w-full" placeholder="Masukkan..." <input type="date" name="tanggal" class="input w-full" placeholder="Masukkan..."
value="{{ $memo->tanggal ?? "" }}"> value="{{ $memo->tanggal ?? '' }}">
</div> </div>
</div> </div>
@@ -55,7 +55,7 @@
<label class="form-label max-w-56">Perihal</label> <label class="form-label max-w-56">Perihal</label>
<div class="flex flex-wrap items-base line w-full"> <div class="flex flex-wrap items-base line w-full">
<input type="text" name="perihal" class="input w-full" placeholder="Masukkan..." <input type="text" name="perihal" class="input w-full" placeholder="Masukkan..."
value="{{ $memo->perihal ?? "" }}"> value="{{ $memo->perihal ?? '' }}">
</div> </div>
</div> </div>
</div> </div>
@@ -64,7 +64,8 @@
<div class="card border border-agi-100 w-full bg-white rounded-lg shadow-md "> <div class="card border border-agi-100 w-full bg-white rounded-lg shadow-md ">
<div class="card-header bg-agi-50"> <div class="card-header bg-agi-50">
<h1 class="text-md font-medium text-gray-900 uppercase">Sehubungan dengan permintaan BAGI Cabang <h1 class="text-md font-medium text-gray-900 uppercase">Sehubungan dengan permintaan BAGI Cabang
<b>{{ $permohonan->branch->name }}</b>, untuk dilakukan survey untuk penilaian baru/review, calon debitur/debitur an <b>{{ $permohonan->branch->name }}</b>, untuk dilakukan survey untuk penilaian baru/review, calon
debitur/debitur an
<b>{{ $permohonan->debiture->name }}</b>,dengan deskripsi sebagai berikut : <b>{{ $permohonan->debiture->name }}</b>,dengan deskripsi sebagai berikut :
</h1> </h1>
</div> </div>
@@ -78,7 +79,8 @@
<select id="jenis_asset_tidak_sesuai" class="input w-full" name="jenis_asset_tidak_sesuai"> <select id="jenis_asset_tidak_sesuai" class="input w-full" name="jenis_asset_tidak_sesuai">
<option value="">Select Jenis asset</option> <option value="">Select Jenis asset</option>
@foreach ($basicData['jenisJaminan'] as $item) @foreach ($basicData['jenisJaminan'] as $item)
<option value="{{ $item->name }}" {{ ($memo->jenis_asset_tidak_sesuai ?? '') == $item->name ? 'selected' : '' }}> <option value="{{ $item->name }}"
{{ ($memo->jenis_asset_tidak_sesuai ?? '') == $item->name ? 'selected' : '' }}>
{{ $item->name }} {{ $item->name }}
</option> </option>
@endforeach @endforeach
@@ -92,7 +94,8 @@
<label for="lokasi" class="form-label max-w-56">Lokasi</label> <label for="lokasi" class="form-label max-w-56">Lokasi</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" id="lokasi" name="lokasi" class="input w-full" <input type="text" id="lokasi" name="lokasi" class="input w-full"
placeholder="Masukkan Jl." value="{{ $memo->lokasi->lokasi ?? old('lokasi') }}"> placeholder="Masukkan Jl."
value="{{ $memo->lokasi->lokasi ?? old('lokasi') }}">
</div> </div>
</div> </div>
@@ -102,7 +105,9 @@
<select id="province_code" name="province_code" class="input w-full"> <select id="province_code" name="province_code" class="input w-full">
<option value="">Pilih Provinsi</option> <option value="">Pilih Provinsi</option>
@foreach ($provinces as $item) @foreach ($provinces as $item)
<option value="{{ $item->code }}" {{ ($memo->lokasi->province_code ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option> <option value="{{ $item->code }}"
{{ ($memo->lokasi->province_code ?? '') == $item->code ? 'selected' : '' }}>
{{ $item->name }}</option>
@endforeach @endforeach
</select> </select>
</div> </div>
@@ -115,7 +120,9 @@
<option value="">Pilih Kota/Kabupaten</option> <option value="">Pilih Kota/Kabupaten</option>
@if (isset($cities)) @if (isset($cities))
@foreach ($cities as $item) @foreach ($cities as $item)
<option value="{{ $item->code }}" {{ ($memo->lokasi->city_code?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option> <option value="{{ $item->code }}"
{{ ($memo->lokasi->city_code ?? '') == $item->code ? 'selected' : '' }}>
{{ $item->name }}</option>
@endforeach @endforeach
@endif @endif
</select> </select>
@@ -129,7 +136,9 @@
<option value="">Pilih Kecamatan</option> <option value="">Pilih Kecamatan</option>
@if (isset($districts)) @if (isset($districts))
@foreach ($districts as $item) @foreach ($districts as $item)
<option value="{{ $item->code }}" {{ ($memo->lokasi->district_code?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option> <option value="{{ $item->code }}"
{{ ($memo->lokasi->district_code ?? '') == $item->code ? 'selected' : '' }}>
{{ $item->name }}</option>
@endforeach @endforeach
@endif @endif
</select> </select>
@@ -143,7 +152,9 @@
<option value="">Pilih Kelurahan</option> <option value="">Pilih Kelurahan</option>
@if (isset($villages)) @if (isset($villages))
@foreach ($villages as $item) @foreach ($villages as $item)
<option value="{{ $item->code }}" {{ ($memo->lokasi->village_code ?? '') == $item->code ? 'selected' : '' }}>{{ $item->name }}</option> <option value="{{ $item->code }}"
{{ ($memo->lokasi->village_code ?? '') == $item->code ? 'selected' : '' }}>
{{ $item->name }}</option>
@endforeach @endforeach
@endif @endif
</select> </select>
@@ -154,15 +165,17 @@
<label for="address" class="form-label max-w-56">Address</label> <label for="address" class="form-label max-w-56">Address</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" id="address" name="address" class="input w-full" <input type="text" id="address" name="address" class="input w-full"
placeholder="Masukkan Jl." value="{{ $memo->lokasi->address ?? old('address') }}"> placeholder="Masukkan Jl."
value="{{ $memo->lokasi->address ?? old('address') }}">
</div> </div>
</div> </div>
<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="tanggal_survey" class="form-label max-w-56">Tanggal Survey</label> <label for="tanggal_survey" class="form-label max-w-56">Tanggal Survey</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="date" id="tanggal_survey" name="tanggal_survey" class="input w-full" <input type="date" id="tanggal_survey" name="tanggal_survey"
placeholder="Masukkan Tanggal Survey" value="{{ $memo->tanggal_survey ?? old('tanggal_survey') }}"> class="input w-full" placeholder="Masukkan Tanggal Survey"
value="{{ $memo->tanggal_survey ?? old('tanggal_survey') }}">
</div> </div>
</div> </div>
@@ -170,7 +183,8 @@
<label for="penilai" class="form-label max-w-56">Penilai</label> <label for="penilai" class="form-label max-w-56">Penilai</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" id="penilai" name="penilai" class="input w-full" <input type="text" id="penilai" name="penilai" class="input w-full"
placeholder="Masukkan Penilai" value="{{ $memo->lokasi->penilai ?? old('penilai') }}"> placeholder="Masukkan Penilai"
value="{{ $memo->lokasi->penilai ?? old('penilai') }}">
</div> </div>
</div> </div>
@@ -264,13 +278,21 @@
</div> </div>
</div> </div>
{{-- @include('lpj::penilai.components.foto-lampiran') --}} @include('lpj::penilai.components.foto-lampiran')
<div class="flex card-footer justify-end gap-5"> <div class="flex card-footer justify-end gap-5">
<a class="btn btn-success" onclick="saveMemo()"> <a class="btn btn-success" onclick="saveMemo()">
SAVE SAVE
</a> </a>
@if (Auth::user()->hasAnyRole(['senior-officer'])) @if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal']))
<a class="btn btn-info"
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
LAMPIRAN FOTO DAN DOKUMEN
</a>
<a class="btn btn-secondary"
href="{{ route('penilai.paparan') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
PAPARAN
</a>
<a class="btn btn-primary" <a class="btn btn-primary"
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )"> onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )">
<i class="ki-filled ki-printer"></i> Print <i class="ki-filled ki-printer"></i> Print

View File

@@ -6,11 +6,26 @@
@section('content') @section('content')
@include('lpj::assetsku.includenya') @include('lpj::assetsku.includenya')
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto"> <div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
@if (Auth::user()->hasAnyRole(['senior-officer']))
@include('lpj::component.detail-jaminan', [
'backLink' => 'otorisator.view-laporan',
'queryParams' => [
'permohonanId' => request()->query('permohonanId'),
'documentId' => request()->query('documentId'),
'inspeksiId' => request()->query('inspeksiId'),
'jaminanId' => request()->query('jaminanId'),
'statusLpj' => 1,
],
'title' => 'Paparan dokument',
])
@else
@include('lpj::component.detail-jaminan', [ @include('lpj::component.detail-jaminan', [
'backLink' => 'penilai.show', 'backLink' => 'penilai.show',
'id' => $permohonan->id, 'id' => $permohonan->id,
'title' => 'Paparan dokument', 'title' => 'Paparan dokument',
]) ])
@endif
@include('lpj::penilai.components.foto-lampiran') @include('lpj::penilai.components.foto-lampiran')

View File

@@ -129,29 +129,29 @@
<table style="width: 100%;"> <table style="width: 100%;">
<tr> <tr>
<td style="width: 10%;">Kepada</td> <td style="width: 20%; padding: 2px;">Kepada</td>
<td>:</td> <td style="width: 1%; padding: 2px;">:</td>
<td>{{ $rap['kepada'] ?? '' }}</td> <td style="width: 79%; padding: 2px;">{{ $rap['kepada'] ?? '' }}</td>
</tr> </tr>
<tr> <tr>
<td>Dari</td> <td style="width: 20%; padding: 2px;">Dari</td>
<td>:</td> <td style="width: 1%; padding: 2px;">:</td>
<td>{{ $rap['dari'] ?? '' }}</td> <td style="width: 79%; padding: 2px;">{{ $rap['dari'] ?? '' }}</td>
</tr> </tr>
<tr> <tr>
<td>No</td> <td style="width: 20%; padding: 2px;">No</td>
<td>:</td> <td style="width: 1%; padding: 2px;">:</td>
<td>{{ $rap['nomor_rap'] ?? '' }}</td> <td style="width: 79%; padding: 2px;">{{ $nomorLaporan ?? '-' }}</td>
</tr> </tr>
<tr> <tr>
<td>Tanggal</td> <td style="width: 20%; padding: 2px;">Tanggal</td>
<td>:</td> <td style="width: 1%; padding: 2px;">:</td>
<td>_</td> <td style="width: 79%; padding: 2px;">{{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) }}</td>
</tr> </tr>
<tr> <tr>
<td>Perihal</td> <td style="width: 20%; padding: 2px;">Perihal</td>
<td>:</td> <td style="width: 1%; padding: 2px;">:</td>
<td>{{ $rap['perihal'] ?? '' }}</td> <td style="width: 79%; padding: 2px;">{{ $rap['perihal'] ?? '' }}</td>
</tr> </tr>
</table> </table>

View File

@@ -15,6 +15,54 @@
@include('lpj::assetsku.includenya') @include('lpj::assetsku.includenya')
@include('lpj::surveyor.components.header') @include('lpj::surveyor.components.header')
@include('lpj::surveyor.components.rap') @include('lpj::surveyor.components.rap')
<div class="card">
<div class="card-header bg-agi-50">
<h3 class="card-title uppercase">
RAP
</h3>
</div>
<div class="card-body grid gap-5">
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Kepada</label>
<div class="flex flex-wrap items-baseline w-full">
<input type="text" name="kepada" class="input w-full" placeholder="Masukkan..."
value=" {{ $rap['kepada'] ?? '' }}">
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Dari</label>
<div class="flex flex-wrap items-baseline w-full">
<input type="text" name="dari" class="input w-full" placeholder="Masukkan..."
value="{{ $rap['dari'] ?? '' }}">
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Nomor RAP</label>
<div class="flex flex-wrap items-base line w-full">
<input type="text" name="nomor_rap" class="input w-full" placeholder="Masukkan..."
value="{{ $noLpRAP ?? '' }}" @readonly(true)>
</div>
</div>
{{-- 250109828129/ --}}
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Tanggal</label>
<div class="flex flex-wrap items-baseline w-full">
<input type="date" name="tanggal" class="input w-full" placeholder="Masukkan..."
value="{{ $rap['tanggal'] ?? '' }}">
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Perihal</label>
<div class="flex flex-wrap items-base line w-full">
<input type="text" name="perihal" class="input w-full" placeholder="Masukkan..."
value="{{ $rap['perihal'] ?? '' }}">
</div>
</div>
</div>
</div>
<div class="flex justify-end gap-2" style="margin-right: 20px; margin-top: 20px"> <div class="flex justify-end gap-2" style="margin-right: 20px; margin-top: 20px">
<button type="button" class="btn btn-success" id="saveButton" onclick="submitData()"> <button type="button" class="btn btn-success" id="saveButton" onclick="submitData()">
<span id="saveButtonText">Save</span> <span id="saveButtonText">Save</span>
@@ -23,7 +71,11 @@
</div> </div>
</button> </button>
@if (Auth::user()->hasAnyRole(['senior-officer'])) @if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal']))
<a class="btn btn-info"
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
LAMPIRAN FOTO DAN DOKUMEN
</a>
<a class="btn btn-primary" <a class="btn btn-primary"
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )"> onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )">
<i class="ki-filled ki-printer"></i> Print <i class="ki-filled ki-printer"></i> Print
@@ -35,6 +87,9 @@
@endsection @endsection
@push('scripts') @push('scripts')
<script type="text/javascript"> <script type="text/javascript">
const rap = @json($rap);
console.log('rap', rap)
function updateAlamatFields(status) { function updateAlamatFields(status) {
// Ambil elemen formulir // Ambil elemen formulir
const addressForm = document.getElementById('alamat_form'); const addressForm = document.getElementById('alamat_form');
@@ -162,9 +217,14 @@
const form = document.querySelector('form'); const form = document.querySelector('form');
const formData = new FormData(form); const formData = new FormData(form);
console.log('Form data entries:', Array.from(formData.entries())); console.log('Form data entries:', Array.from(formData.entries()));
const urlParams = new URLSearchParams(window.location.search);
const permohonanId = {{ $permohonan->id }};
const documentId = urlParams.get('documentId');
const inspeksiId = urlParams.get('inspeksiId');
const requestUrl =
`{{ route('penilai.storeRap') }}?permohonanId=${permohonanId}&inspeksiId=${inspeksiId}&documentId=${documentId}`;
$.ajax({ $.ajax({
url: '{{ route('surveyor.store') }}', url: requestUrl,
type: 'POST', type: 'POST',
data: formData, data: formData,
processData: false, processData: false,
@@ -182,7 +242,7 @@
confirmButtonText: 'OK' confirmButtonText: 'OK'
}).then((response) => { }).then((response) => {
if (response.isConfirmed) { if (response.isConfirmed) {
window.location.reload(); // window.location.reload();
} }
}); });
} else { } else {

View File

@@ -337,7 +337,15 @@
<div class="flex card-footer justify-end gap-5"> <div class="flex card-footer justify-end gap-5">
<button type="button" class="btn btn-success" onclick="saveResume()">Save</button> <button type="button" class="btn btn-success" onclick="saveResume()">Save</button>
@if (Auth::user()->hasAnyRole(['senior-officer'])) @if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal']))
<a class="btn btn-info"
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
LAMPIRAN FOTO DAN DOKUMEN
</a>
<a class="btn btn-secondary"
href="{{ route('penilai.paparan') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&inspeksiId={{ request('inspeksiId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
PAPARAN
</a>
<a class="btn btn-primary" <a class="btn btn-primary"
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )"> onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', '{{ request('inspeksiId') }}', {{ request('jaminanId') }}, )">
<i class="ki-filled ki-printer"></i> Print <i class="ki-filled ki-printer"></i> Print
@@ -345,6 +353,7 @@
@endif @endif
</div> </div>
@include('lpj::penilai.components.foto-lampiran')
</div> </div>
</form> </form>

View File

@@ -6,10 +6,28 @@
@section('content') @section('content')
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto"> <div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
@include('lpj::component.detail-jaminan', ['backLink' => 'penilai.show', 'id' => $permohonan->id, 'title' => 'Lampiran foto dan dokument']) @if (Auth::user()->hasAnyRole(['senior-officer']))
@include('lpj::component.detail-jaminan', [
'backLink' => 'otorisator.view-laporan',
'queryParams' => [
'permohonanId' => request()->query('permohonanId'),
'documentId' => request()->query('documentId'),
'inspeksiId' => request()->query('inspeksiId'),
'jaminanId' => request()->query('jaminanId'),
'statusLpj' => 1,
],
'title' => 'Paparan dokument',
])
@else
@include('lpj::component.detail-jaminan', [
'backLink' => 'penilai.show',
'id' => $permohonan->id,
'title' => 'Lampiran foto dan dokument',
])
@endif
@include('lpj::penilai.components.foto-lampiran') @include('lpj::penilai.components.foto-lampiran')
</div> </div>
@endsection @endsection

View File

@@ -93,7 +93,7 @@
</label> </label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<p class="flex w-full text-gray-600 font-medium text-sm"> <p class="flex w-full text-gray-600 font-medium text-sm">
{{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) }}</p> {{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) ?? '' }}</p>
</div> </div>
<label class="form-label max-w-56 "> <label class="form-label max-w-56 ">
Status Bayar Status Bayar
@@ -197,19 +197,20 @@
$jaminanId = $dokumen->id; $jaminanId = $dokumen->id;
$currentInspeksi = $inspeksiData[$jaminanId] ?? null; $currentInspeksi = $inspeksiData[$jaminanId] ?? null;
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT']; $tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'ALAT BERAT'];
@endphp @endphp
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full card-footer mt-2 "> <div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full card-footer mt-2 ">
<div class="flex gap-5"> <div class="flex gap-5">
<a class="btn btn-primary" <a class="btn btn-primary"
href="{{ route('penilai.lampiran', $permohonan->id) }}?documentId={{ $dokumen->id }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $dokumen->jenis_jaminan_id }}"> href="{{ route('penilai.lampiran') }}?permohonanId={{ $permohonan->id }}&documentId={{ $dokumen->id }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $dokumen->jenis_jaminan_id }}">
LAMPIRAN FOTO DAN DOKUMEN LAMPIRAN FOTO DAN DOKUMEN
</a> </a>
@if (strtolower($permohonan->tujuanPenilaian->name) != 'rap')
<a class="btn btn-primary" data-modal-toggle="#modal_2"> <a class="btn btn-primary" data-modal-toggle="#modal_2">
KERTAS KERJA KERTAS KERJA
</a> </a>
@endif
<a class="btn btn-primary" <a class="btn btn-primary"
href="{{ route('penilai.paparan') }}?permohonanId={{ $permohonan->id }}&documentId={{ $dokumen->id }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $dokumen->jenis_jaminan_id }}"> href="{{ route('penilai.paparan') }}?permohonanId={{ $permohonan->id }}&documentId={{ $dokumen->id }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $dokumen->jenis_jaminan_id }}">
PAPARAN PAPARAN
@@ -220,6 +221,7 @@
Pembuatan Laporan Pembuatan Laporan
</button> </button>
{{-- kios tanah bangunan kalo dalam mall ruko --}}
<div class="dropdown-content w-full max-w-56 py-2"> <div class="dropdown-content w-full max-w-56 py-2">
<div class="menu menu-default flex flex-col w-full"> <div class="menu menu-default flex flex-col w-full">
@if (strtolower($permohonan->tujuanPenilaian->name) == 'rap') @if (strtolower($permohonan->tujuanPenilaian->name) == 'rap')
@@ -236,6 +238,9 @@
</a> </a>
</div> </div>
@else @else
{{-- pendapingan kjjp leleang --}}
{{-- memo pendapingan lelang --}}
{{-- existing di --}}
<div class="menu-item"> <div class="menu-item">
<a class="menu-link" <a class="menu-link"
onclick="memo('{{ $permohonan->id }}', '{{ $dokumen->id }}', '{{ $inspeksiId }}', {{ $dokumen->jenis_jaminan_id }})"> onclick="memo('{{ $permohonan->id }}', '{{ $dokumen->id }}', '{{ $inspeksiId }}', {{ $dokumen->jenis_jaminan_id }})">

View File

@@ -21,7 +21,7 @@
</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">Tanggal Survey</label> <label class="form-label max-w-56">Tanggal Dibuat</label>
<div class="flex flex-wrap items-base line w-full"> <div class="flex flex-wrap items-base line w-full">
<p class="text-2sm text-gray-700">{{ $permohonan->created_at->format('d/m/Y') }}</p> <p class="text-2sm text-gray-700">{{ $permohonan->created_at->format('d/m/Y') }}</p>
</div> </div>
@@ -51,7 +51,7 @@
<label class="form-label max-w-56">Tanggal Survey</label> <label class="form-label max-w-56">Tanggal Survey</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="date" name="tanggal_survey" class="input" <input type="date" name="tanggal_survey" class="input"
placeholder="Masukkan Hubungan Calon Debitur"> placeholder="Masukkan Hubungan Calon Debitur" value="{{ $forminspeksi['tanggal_survey'] ?? "" }}">
<em id="error-tanggal_survey" class="alert text-danger text-sm"></em> <em id="error-tanggal_survey" class="alert text-danger text-sm"></em>
</div> </div>
</div> </div>
@@ -83,7 +83,7 @@
<label class="form-label max-w-56">Nama Wakil Debitur</label> <label class="form-label max-w-56">Nama Wakil Debitur</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="nama_wakil" class="input" <input type="text" name="nama_wakil" class="input"
placeholder="Masukkan Hubungan Calon Debitur"> placeholder="Masukkan Hubungan Calon Debitur" value="{{ $forminspeksi['nama_wakil'] ?? '' }}">
<em id="error-nama_wakil" class="alert text-danger text-sm"></em> <em id="error-nama_wakil" class="alert text-danger text-sm"></em>
@@ -93,7 +93,7 @@
<label class="form-label max-w-56">Hubungan Calon Debitur</label> <label class="form-label max-w-56">Hubungan Calon Debitur</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="hub_calon_debitur" class="input" <input type="text" name="hub_calon_debitur" class="input"
placeholder="Masukkan Hubungan Calon Debitur"> placeholder="Masukkan Hubungan Calon Debitur" value="{{$forminspeksi['hub_calon_debitur'] ?? ''}}">
<em id="error-hub_calon_debitur" class="alert text-danger text-sm"></em> <em id="error-hub_calon_debitur" class="alert text-danger text-sm"></em>
@@ -190,7 +190,7 @@
<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">Kondisi</label> <label class="form-label max-w-56">Kondisi</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="kondisi" class="input" placeholder="Masukkan Kondisi"> <input type="text" name="kondisi" class="input" placeholder="Masukkan Kondisi" value="{{ $forminspeksi['kondisi'] ?? '' }}">
<em id="error-kondisi" class="alert text-danger text-sm"></em> <em id="error-kondisi" class="alert text-danger text-sm"></em>
</div> </div>
@@ -395,7 +395,7 @@
<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">Posisi Kilometer</label> <label class="form-label max-w-56">Posisi Kilometer</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="posisi_kilometer" class="input" placeholder="Posisi Kilometer"> <input type="text" name="posisi_kilometer" class="input" placeholder="Posisi Kilometer" value="{{ $forminspeksi['posisi_kilometer'] ?? '' }}">
<em id="error-posisi_kilometer" class="alert text-danger text-sm"></em> <em id="error-posisi_kilometer" class="alert text-danger text-sm"></em>
</div> </div>
@@ -571,7 +571,7 @@
<label class="form-label max-w-56">Perusahaan Asuransi</label> <label class="form-label max-w-56">Perusahaan Asuransi</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="text" name="perusahaan_asuransi" class="input" <input type="text" name="perusahaan_asuransi" class="input"
placeholder="Pesurahaan Asuransi"> placeholder="Pesurahaan Asuransi" value="{{ $forminspeksi['perusahaan_asuransi'] ?? '' }}">
<em class="alert text-danger text-sm"></em> <em class="alert text-danger text-sm"></em>
</div> </div>
@@ -580,7 +580,7 @@
<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">Tahun Berakhir</label> <label class="form-label max-w-56">Tahun Berakhir</label>
<div class="flex flex-wrap items-baseline w-full"> <div class="flex flex-wrap items-baseline w-full">
<input type="date" name="tahun_berakhir" class="input" placeholder="Tahun berakhir"> <input type="date" name="tahun_berakhir" class="input" placeholder="Tahun berakhir" value="{{ $forminspeksi['tahun_berakhir'] ?? "" }}">
<em class="alert text-danger text-sm"></em> <em class="alert text-danger text-sm"></em>
</div> </div>

View File

@@ -1,4 +1,3 @@
<div class="card-header bg-agi-50"> <div class="card-header bg-agi-50">
<h3 class="card-title">Data Pembanding</h3> <h3 class="card-title">Data Pembanding</h3>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
@@ -84,7 +83,8 @@
<td class="px-4 py-2">Warna</td> <td class="px-4 py-2">Warna</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="warna" class="input " value="{{ $inspectionData['warna'] ?? '' }}"> <input type="text" name="warna" class="input "
value="{{ $inspectionData['warna'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="warna_pembanding[]" class="input"> <input type="text" name="warna_pembanding[]" class="input">
@@ -94,7 +94,8 @@
<td class="px-4 py-2">Lokasi</td> <td class="px-4 py-2">Lokasi</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="lokasi" class="input" value="{{ $inspectionData['lokasi'] ?? '' }}"> <input type="text" name="lokasi" class="input"
value="{{ $inspectionData['lokasi'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="lokasi_pembanding[]" class="input"> <input type="text" name="lokasi_pembanding[]" class="input">
@@ -104,7 +105,8 @@
<td class="px-4 py-2">Sumber data</td> <td class="px-4 py-2">Sumber data</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="sumber_data" class="input" value="{{ $inspectionData['sumber_data'] ?? '' }}"> <input type="text" name="sumber_data" class="input"
value="{{ $inspectionData['sumber_data'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="sumber_data_pembanding[]" class="input"> <input type="text" name="sumber_data_pembanding[]" class="input">
@@ -115,8 +117,8 @@
<td class="px-4 py-2">Tahun</td> <td class="px-4 py-2">Tahun</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="tahun" class="input number-format" value="{{ $inspectionData['tahun'] ?? '' }}" <input type="text" name="tahun" class="input number-format"
> value="{{ $inspectionData['tahun'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="tahun_pembanding[]" class="input number-format"> <input type="text" name="tahun_pembanding[]" class="input number-format">
@@ -126,9 +128,8 @@
<tr> <tr>
<td class="px-4 py-2">Transmisi</td> <td class="px-4 py-2">Transmisi</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="transmisi" class="input" <input type="text" name="transmisi" class="input"
value="{{ $inspectionData['transmisi'] ?? '' }}"> value="{{ is_array($inspectionData['transmisi'] ?? '') ? implode(', ', $inspectionData['transmisi']) : $inspectionData['transmisi'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="transmisi_pembanding[]" class="input "> <input type="text" name="transmisi_pembanding[]" class="input ">
@@ -146,8 +147,7 @@
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="tahun_pembuatan" class="input number-format" <input type="text" name="tahun_pembuatan" class="input number-format"
value="{{ $inspectionData['tahun_pembuatan'] ?? '' }}" value="{{ $inspectionData['tahun_pembuatan'] ?? '' }}">
>
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="tahun_pembuatan_pembanding[]" class="input"> <input type="text" name="tahun_pembuatan_pembanding[]" class="input">
@@ -245,8 +245,7 @@
@foreach ($provinces as $province) @foreach ($provinces as $province)
@php @php
$selectedProvince = $selectedProvince = $inspectionData['alamat']['sesuai']['province_code'] ?? null;
$inspectionData['alamat']['sesuai']['province_code'] ?? null;
@endphp @endphp
<option value="{{ $province->code }}" <option value="{{ $province->code }}"
@@ -274,7 +273,6 @@
<select id="city_code" name="city_code" class="select w-full"> <select id="city_code" name="city_code" class="select w-full">
@php @php
$selectedCity = $inspectionData['alamat']['sesuai']['city_code'] ?? null; $selectedCity = $inspectionData['alamat']['sesuai']['city_code'] ?? null;
@endphp @endphp
<option value="">Pilih Kota/Kabupaten</option> <option value="">Pilih Kota/Kabupaten</option>
@@ -302,8 +300,7 @@
<select id="district_code" name="district_code" class="select w-full"> <select id="district_code" name="district_code" class="select w-full">
@php @php
$selectedDisrict = $selectedDisrict = $inspectionData['alamat']['sesuai']['district_code'] ?? null;
$inspectionData['alamat']['sesuai']['district_code'] ?? null;
@endphp @endphp
<option value="">Pilih Kecamatan</option> <option value="">Pilih Kecamatan</option>
@if (isset($selectedDisrict)) @if (isset($selectedDisrict))
@@ -331,8 +328,7 @@
<select id="village_code" name="village_code" class="select w-full"> <select id="village_code" name="village_code" class="select w-full">
@php @php
$selectedDesa = $selectedDesa = $inspectionData['alamat']['sesuai']['village_code'] ?? null;
$inspectionData['alamat']['sesuai']['village_code'] ?? null;
@endphp @endphp
<option value="">Pilih Kecamatan</option> <option value="">Pilih Kecamatan</option>
@if (isset($selectedDesa)) @if (isset($selectedDesa))
@@ -346,8 +342,7 @@
</select> </select>
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<select id="village_code_pembanding" name="village_code_pembanding[]" <select id="village_code_pembanding" name="village_code_pembanding[]" class="input w-full">
class="input w-full">
<option value="">Pilih Desa/Kelurahan</option> <option value="">Pilih Desa/Kelurahan</option>
</select> </select>
</td> </td>
@@ -360,7 +355,7 @@
<tr> <tr>
<td class="px-4 py-2">Harga</td> <td class="px-4 py-2">Harga</td>
<td class="px-4 py-2"> <td class="px-4 py-2">
<input type="text" name="harga" class="input currency-format" <input type="text" name="harga" class="input currency"
value="{{ $inspectionData['harga'] ?? '' }}"> value="{{ $inspectionData['harga'] ?? '' }}">
</td> </td>
<td class="px-4 py-2"> <td class="px-4 py-2">

View File

@@ -103,16 +103,13 @@
}); });
} }
// $('.card-title a').on('click', function(e) {
// e.preventDefault();
// var url = $(this).attr('href');
// $.get(url, function(response) {
// $('.card-body').html(response);
$('.card-title a').on('click', function(e) { // });
e.preventDefault(); // });
var url = $(this).attr('href');
$.get(url, function(response) {
$('.card-body').html(response);
});
});
</script> </script>
@endpush @endpush

View File

@@ -562,7 +562,7 @@ Route::middleware(['auth'])->group(function () {
Route::get('/{id}/show', [PenilaiController::class, 'show'])->name('show'); Route::get('/{id}/show', [PenilaiController::class, 'show'])->name('show');
Route::get('datatables', [PenilaiController::class, 'dataForDatatables'])->name('dataForTables'); Route::get('datatables', [PenilaiController::class, 'dataForDatatables'])->name('dataForTables');
Route::get('lampiran/{id}', [PenilaiController::class, 'lampiran'])->name('lampiran'); Route::get('lampiran', [PenilaiController::class, 'lampiran'])->name('lampiran');
Route::get('export/kertas-kerja', [PenilaiController::class, 'export_kertas_kerja'])->name('export.kertas-kerja'); Route::get('export/kertas-kerja', [PenilaiController::class, 'export_kertas_kerja'])->name('export.kertas-kerja');
Route::get('print-out', [PenilaiController::class, 'print_out'])->name('print-out'); Route::get('print-out', [PenilaiController::class, 'print_out'])->name('print-out');
@@ -581,6 +581,7 @@ Route::middleware(['auth'])->group(function () {
Route::post('storeResume', [PenilaiController::class, 'storeResume'])->name('storeResume'); Route::post('storeResume', [PenilaiController::class, 'storeResume'])->name('storeResume');
Route::post('storeMemo', [PenilaiController::class, 'storeMemo'])->name('storeMemo'); Route::post('storeMemo', [PenilaiController::class, 'storeMemo'])->name('storeMemo');
Route::post('storeRap', [PenilaiController::class, 'storeRap'])->name('storeRap');
Route::post('storeLpjSederhanadanStandard', [PenilaiController::class, 'storeLpjSederhanadanStandard'])->name('storeLpjSederhanadanStandard'); Route::post('storeLpjSederhanadanStandard', [PenilaiController::class, 'storeLpjSederhanadanStandard'])->name('storeLpjSederhanadanStandard');
}); });