fix: update dokumentId and fix save penilai rap
This commit is contained in:
@@ -82,7 +82,7 @@ class PenilaiController extends Controller
|
|||||||
public function sederhana(Request $request, $id)
|
public function sederhana(Request $request, $id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$documentId = $request->query('dokument');
|
$documentId = $request->query('documentId');
|
||||||
$jaminanId = $request->query('jaminanId');
|
$jaminanId = $request->query('jaminanId');
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
||||||
$basicData = $this->surveyorController->getCommonData();
|
$basicData = $this->surveyorController->getCommonData();
|
||||||
@@ -148,7 +148,7 @@ class PenilaiController extends Controller
|
|||||||
public function standar(Request $request, $id)
|
public function standar(Request $request, $id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$documentId = $request->query('dokument');
|
$documentId = $request->query('documentId');
|
||||||
$jaminanId = $request->query('jaminanId');
|
$jaminanId = $request->query('jaminanId');
|
||||||
|
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($id, $documentId, $jaminanId);
|
||||||
@@ -401,7 +401,7 @@ class PenilaiController extends Controller
|
|||||||
{
|
{
|
||||||
|
|
||||||
$permohonanId = $request->query('permohonanId');
|
$permohonanId = $request->query('permohonanId');
|
||||||
$documentId = $request->query('dokument');
|
$documentId = $request->query('documentId');
|
||||||
$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);
|
||||||
@@ -1153,20 +1153,9 @@ class PenilaiController extends Controller
|
|||||||
{
|
{
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
try {
|
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();
|
$validatedData = $request->all();
|
||||||
$result = $this->surveyorController->store($formRequest);
|
$result = $this->inspeksiService->storeInspeksi($validatedData, $request->input('type'), $request);
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'kepada' => $request->input('kepada'),
|
'kepada' => $request->input('kepada'),
|
||||||
@@ -1431,7 +1420,7 @@ class PenilaiController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// pengunaan request query by id permohonan, dokument, jaminan , inspeksi
|
// pengunaan request query by id permohonan, documentId, jaminan , inspeksi
|
||||||
protected function getRequestQueryId(Request $request)
|
protected function getRequestQueryId(Request $request)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -1556,11 +1556,11 @@ class SurveyorController extends Controller
|
|||||||
{
|
{
|
||||||
|
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'dokument' => 'required',
|
'documentId' => 'required',
|
||||||
'jenis_jaminan' => 'required'
|
'jenis_jaminan' => 'required'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$dokumentId = $validated['dokument'];
|
$dokumentId = $validated['documentId'];
|
||||||
$jaminanId = $validated['jenis_jaminan'];
|
$jaminanId = $validated['jenis_jaminan'];
|
||||||
|
|
||||||
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
||||||
@@ -1644,11 +1644,11 @@ class SurveyorController extends Controller
|
|||||||
public function denah(Request $request, $id)
|
public function denah(Request $request, $id)
|
||||||
{
|
{
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'dokument' => 'required',
|
'documentId' => 'required',
|
||||||
'jenis_jaminan' => 'required'
|
'jenis_jaminan' => 'required'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$dokumentId = $validated['dokument'];
|
$dokumentId = $validated['documentId'];
|
||||||
$jaminanId = $validated['jenis_jaminan'];
|
$jaminanId = $validated['jenis_jaminan'];
|
||||||
|
|
||||||
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
||||||
@@ -1672,11 +1672,11 @@ class SurveyorController extends Controller
|
|||||||
public function foto(Request $request, $id)
|
public function foto(Request $request, $id)
|
||||||
{
|
{
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'dokument' => 'required',
|
'documentId' => 'required',
|
||||||
'jenis_jaminan' => 'required'
|
'jenis_jaminan' => 'required'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$dokumentId = $validated['dokument'];
|
$dokumentId = $validated['documentId'];
|
||||||
$jaminanId = $validated['jenis_jaminan'];
|
$jaminanId = $validated['jenis_jaminan'];
|
||||||
$fotoObjekJaminan = FotoObjekJaminan::all();
|
$fotoObjekJaminan = FotoObjekJaminan::all();
|
||||||
|
|
||||||
@@ -1707,11 +1707,11 @@ class SurveyorController extends Controller
|
|||||||
// Ambil data permohonan dengan eager loading
|
// Ambil data permohonan dengan eager loading
|
||||||
|
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'dokument' => 'required',
|
'documentId' => 'required',
|
||||||
'jenis_jaminan' => 'required'
|
'jenis_jaminan' => 'required'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$dokumentId = $validated['dokument'];
|
$dokumentId = $validated['documentId'];
|
||||||
$jaminanId = $validated['jenis_jaminan'];
|
$jaminanId = $validated['jenis_jaminan'];
|
||||||
|
|
||||||
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
$permohonan = $this->getPermohonanJaminanId($id, $dokumentId, $jaminanId);
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class SaveFormInspesksiService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($hasFactaData) {
|
if ($hasFactaData) {
|
||||||
$rules = array_merge($rules, $this->getFactData($data, $request));
|
$rules = array_merge($rules, $this->getFactData($data, $request, $inspeksi));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
@include('lpj::assetsku.includenya')
|
@include('lpj::assetsku.includenya')
|
||||||
<form id="form-lpj" method="post" class="w-full grid gap-5">
|
<form id="form-lpj" method="post" class="w-full grid gap-5">
|
||||||
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
||||||
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
<input type="hidden" name="dokument_id" value="{{ request('documentId') }}">
|
||||||
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
||||||
<input type="hidden" id="lpj-data" value="{{ json_encode($lpjData ?? []) }}" />
|
<input type="hidden" id="lpj-data" value="{{ json_encode($lpjData ?? []) }}" />
|
||||||
@include('lpj::component.form-penilai')
|
@include('lpj::component.form-penilai')
|
||||||
@@ -52,15 +52,15 @@
|
|||||||
@endif
|
@endif
|
||||||
@if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal', 'administrator']))
|
@if (Auth::user()->hasAnyRole(['senior-officer', 'EO Appraisal', 'DD Appraisal', 'administrator']))
|
||||||
<a class="btn btn-info"
|
<a class="btn btn-info"
|
||||||
href="{{ route('penilai.lampiran') }}?permohonanId={{ $permohonan->id }}&documentId={{ request('dokument') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
href="{{ route('penilai.lampiran') }}?permohonanId={{ $permohonan->id }}&documentId={{ request('documentId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
||||||
Lampiran Foto dan Dokumen
|
Lampiran Foto dan Dokumen
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('dokument'), 'jenis_jaminan_id' => request('jaminanId')]) }}" class="btn btn-light"
|
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jaminanId')]) }}" class="btn btn-light"
|
||||||
>
|
>
|
||||||
<i class="ki-filled ki-printer"></i> Cetak Hasil Inspeksi
|
<i class="ki-filled ki-printer"></i> Cetak Hasil Inspeksi
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('dokument') }}', {{ request('jaminanId') }}, 0)">
|
onclick="checkLaporan('{{ $permohonan->id }}', '{{ request('documentId') }}', {{ request('jaminanId') }}, 0)">
|
||||||
<i class="ki-filled ki-printer"></i> Cetak Laporan
|
<i class="ki-filled ki-printer"></i> Cetak Laporan
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -14,14 +14,16 @@
|
|||||||
<input type="hidden" name="action" value="rap">
|
<input type="hidden" name="action" value="rap">
|
||||||
<input type="hidden" name="type" value="rap">
|
<input type="hidden" name="type" value="rap">
|
||||||
@include('lpj::assetsku.includenya')
|
@include('lpj::assetsku.includenya')
|
||||||
@include('lpj::surveyor.components.header')
|
|
||||||
@include('lpj::surveyor.components.rap')
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header bg-agi-50">
|
<div class="card-header bg-agi-50">
|
||||||
<h3 class="card-title uppercase">
|
<h3 class="card-title uppercase">
|
||||||
RAP
|
RAP
|
||||||
</h3>
|
</h3>
|
||||||
|
<a href="{{ route('penilai.show', $permohonan->id) }}" class="btn btn-xs btn-info">
|
||||||
|
<i class="ki-filled ki-exit-left"></i> Back
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body grid gap-5">
|
<div class="card-body 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">
|
||||||
@@ -64,11 +66,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@include('lpj::surveyor.components.header')
|
||||||
|
@include('lpj::surveyor.components.rap')
|
||||||
<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">
|
||||||
@if (Auth::user()->hasAnyRole(['senior-officer', 'surveyor', 'administrator']))
|
@if (Auth::user()->hasAnyRole(['senior-officer', 'surveyor', 'administrator']))
|
||||||
<button type="button" class="btn btn-primary" id="saveButton" onclick="submitData()" {{ $permohonan->status == 'proses-paparan' || $permohonan->status == 'proses-laporan' && Auth::user()->hasAnyRole(['surveyor']) ? 'disabled' : '' }}>
|
<button type="button" class="btn btn-primary" id="saveButton" onclick="submitData()"
|
||||||
|
{{ $permohonan->status == 'proses-paparan' || ($permohonan->status == 'proses-laporan' && Auth::user()->hasAnyRole(['surveyor'])) ? 'disabled' : '' }}>
|
||||||
<i class="ki-filled ki-save-2"></i>
|
<i class="ki-filled ki-save-2"></i>
|
||||||
<span id="saveButtonText" >Save</span>
|
<span id="saveButtonText">Save</span>
|
||||||
<div class="spinner-border spinner-border-sm text-light" role="status" style="display: none;"
|
<div class="spinner-border spinner-border-sm text-light" role="status" style="display: none;"
|
||||||
id="saveButtonSpinner">
|
id="saveButtonSpinner">
|
||||||
|
|
||||||
@@ -80,8 +85,8 @@
|
|||||||
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
href="{{ route('penilai.lampiran') }}?permohonanId={{ request('permohonanId') }}&documentId={{ request('documentId') }}&jaminanId={{ request('jaminanId') }}&statusLpj=1">
|
||||||
Lampiran Foto dan Dokumen
|
Lampiran Foto dan Dokumen
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jaminanId')]) }}" class="btn btn-light"
|
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jaminanId')]) }}"
|
||||||
>
|
class="btn btn-light">
|
||||||
<i class="ki-filled ki-printer"></i> Cetak Hasil Inspeksi
|
<i class="ki-filled ki-printer"></i> Cetak Hasil Inspeksi
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
|
|||||||
@@ -493,11 +493,11 @@
|
|||||||
if (data.status === 'standar') {
|
if (data.status === 'standar') {
|
||||||
showLoadingSwal('Tunggu ...');
|
showLoadingSwal('Tunggu ...');
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.standar', $permohonan->id) }}?dokument=${documentId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.standar', $permohonan->id) }}?documentId=${documentId}&jaminanId=${jaminanId}`;
|
||||||
} else if (data.status === 'sederhana') {
|
} else if (data.status === 'sederhana') {
|
||||||
showLoadingSwal('Tunggu ...');
|
showLoadingSwal('Tunggu ...');
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.sederhana', $permohonan->id) }}?dokument=${documentId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.sederhana', $permohonan->id) }}?documentId=${documentId}&jaminanId=${jaminanId}`;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (fasilitasKredit.toUpperCase() === 'KPR KERJASAMA') {
|
if (fasilitasKredit.toUpperCase() === 'KPR KERJASAMA') {
|
||||||
@@ -556,10 +556,10 @@
|
|||||||
if (data.success) {
|
if (data.success) {
|
||||||
if (type === 'standar') {
|
if (type === 'standar') {
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.standar', $permohonan->id) }}?dokument=${documentId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.standar', $permohonan->id) }}?documentId=${documentId}&jaminanId=${jaminanId}`;
|
||||||
} else if (type === 'sederhana') {
|
} else if (type === 'sederhana') {
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.sederhana', $permohonan->id) }}?dokument=${documentId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.sederhana', $permohonan->id) }}?documentId=${documentId}&jaminanId=${jaminanId}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -640,7 +640,7 @@
|
|||||||
function rap(permohonanId, documentId, jaminanId) {
|
function rap(permohonanId, documentId, jaminanId) {
|
||||||
showLoadingSwal('Tunggu ...');
|
showLoadingSwal('Tunggu ...');
|
||||||
window.location.href =
|
window.location.href =
|
||||||
`{{ route('penilai.rap') }}?permohonanId=${permohonanId}&dokument=${documentId}&jaminanId=${jaminanId}`;
|
`{{ route('penilai.rap') }}?permohonanId=${permohonanId}&documentId=${documentId}&jaminanId=${jaminanId}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
'url' =>
|
'url' =>
|
||||||
route('surveyor.inspeksi', [
|
route('surveyor.inspeksi', [
|
||||||
'id' => $permohonan->id,
|
'id' => $permohonan->id,
|
||||||
]) . "?dokument={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
]) . "?documentId={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
||||||
'show' => true,
|
'show' => true,
|
||||||
'icon' => !empty($currentInspeksi['data_form']),
|
'icon' => !empty($currentInspeksi['data_form']),
|
||||||
],
|
],
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
'url' =>
|
'url' =>
|
||||||
route('surveyor.denah', [
|
route('surveyor.denah', [
|
||||||
'id' => $permohonan->id,
|
'id' => $permohonan->id,
|
||||||
]) . "?dokument={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
]) . "?documentId={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
||||||
'show' => true,
|
'show' => true,
|
||||||
'icon' => !empty($currentInspeksi['denah_form']),
|
'icon' => !empty($currentInspeksi['denah_form']),
|
||||||
];
|
];
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
'url' =>
|
'url' =>
|
||||||
route('surveyor.foto', [
|
route('surveyor.foto', [
|
||||||
'id' => $permohonan->id,
|
'id' => $permohonan->id,
|
||||||
]) . "?dokument={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
]) . "?documentId={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
||||||
'show' => true,
|
'show' => true,
|
||||||
'icon' => !empty($currentInspeksi['foto_form']),
|
'icon' => !empty($currentInspeksi['foto_form']),
|
||||||
],
|
],
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
'url' =>
|
'url' =>
|
||||||
route('surveyor.data-pembanding', [
|
route('surveyor.data-pembanding', [
|
||||||
'id' => $permohonan->id,
|
'id' => $permohonan->id,
|
||||||
]) . "?dokument={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
]) . "?documentId={$jaminanId}&jenis_jaminan={$dokumen->jenisJaminan->id}",
|
||||||
'show' => true,
|
'show' => true,
|
||||||
'icon' => !empty($currentInspeksi['data_pembanding']),
|
'icon' => !empty($currentInspeksi['data_pembanding']),
|
||||||
],
|
],
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
<a href="{{ route('surveyor.inspeksi', ['id' => $permohonan->id]) .
|
<a href="{{ route('surveyor.inspeksi', ['id' => $permohonan->id]) .
|
||||||
'?' .
|
'?' .
|
||||||
http_build_query([
|
http_build_query([
|
||||||
'dokument' => $jaminanId,
|
'documentId' => $jaminanId,
|
||||||
'jenis_jaminan' => $dokumen->jenisJaminan->id,
|
'jenis_jaminan' => $dokumen->jenisJaminan->id,
|
||||||
]) }}"
|
]) }}"
|
||||||
class="flex items-center justify-between border border-gray-200 rounded-xl gap-2 px-4 py-4 btn-outline {{ !empty($currentInspeksi['data_form']) ? 'btn-success' : 'btn-primary' }} hover:btn-light">
|
class="flex items-center justify-between border border-gray-200 rounded-xl gap-2 px-4 py-4 btn-outline {{ !empty($currentInspeksi['data_form']) ? 'btn-success' : 'btn-primary' }} hover:btn-light">
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<a href="{{ route('surveyor.foto', ['id' => $permohonan->id]) .
|
<a href="{{ route('surveyor.foto', ['id' => $permohonan->id]) .
|
||||||
'?' .
|
'?' .
|
||||||
http_build_query([
|
http_build_query([
|
||||||
'dokument' => $jaminanId,
|
'documentId' => $jaminanId,
|
||||||
'jenis_jaminan' => $dokumen->jenisJaminan->id,
|
'jenis_jaminan' => $dokumen->jenisJaminan->id,
|
||||||
]) }}"
|
]) }}"
|
||||||
class="flex items-center justify-between border border-gray-200 rounded-xl gap-2 px-4 py-4 btn-outline {{ !empty($currentInspeksi['foto_form']) ? 'btn-success' : 'btn-primary' }} hover:btn-light">
|
class="flex items-center justify-between border border-gray-200 rounded-xl gap-2 px-4 py-4 btn-outline {{ !empty($currentInspeksi['foto_form']) ? 'btn-success' : 'btn-primary' }} hover:btn-light">
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
||||||
|
|
||||||
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
<input type="hidden" name="dokument_id" value="{{ request('documentId') }}">
|
||||||
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
|
|
||||||
<form id="formFoto" method="POST" class="grid gap-5" enctype="multipart/form-data">
|
<form id="formFoto" method="POST" class="grid gap-5" enctype="multipart/form-data">
|
||||||
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
<input type="hidden" name="permohonan_id" value="{{ $permohonan->id }}">
|
||||||
<input type="hidden" name="dokument_id" value="{{ request('dokument') }}">
|
<input type="hidden" name="dokument_id" value="{{ request('documentId') }}">
|
||||||
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
<input type="hidden" name="nomor_registrasi" value="{{ $permohonan->nomor_registrasi }}">
|
||||||
|
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@
|
|||||||
|
|
||||||
params: {
|
params: {
|
||||||
permohonan_id: {{ $permohonan->id ?? 0 }},
|
permohonan_id: {{ $permohonan->id ?? 0 }},
|
||||||
dokument_id: '{{ request('dokument') ?? '' }}',
|
dokument_id: '{{ request('documentId') ?? '' }}',
|
||||||
param_name: paramName,
|
param_name: paramName,
|
||||||
nomor_registrasi: '{{ $permohonan->nomor_registrasi ?? '' }}',
|
nomor_registrasi: '{{ $permohonan->nomor_registrasi ?? '' }}',
|
||||||
},
|
},
|
||||||
@@ -531,7 +531,7 @@
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {
|
data: {
|
||||||
permohonan_id: {{ $permohonan->id ?? 0 }},
|
permohonan_id: {{ $permohonan->id ?? 0 }},
|
||||||
dokument_id: '{{ request('dokument') ?? '' }}',
|
dokument_id: '{{ request('documentId') ?? '' }}',
|
||||||
param_name: paramName
|
param_name: paramName
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
@@ -881,7 +881,7 @@
|
|||||||
data: {
|
data: {
|
||||||
path: response.path,
|
path: response.path,
|
||||||
permohonan_id: {{ $permohonan->id ?? 0 }},
|
permohonan_id: {{ $permohonan->id ?? 0 }},
|
||||||
dokument_id: '{{ request('dokument') ?? '' }}',
|
dokument_id: '{{ request('documentId') ?? '' }}',
|
||||||
param_name: response.param_name
|
param_name: response.param_name
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
@@ -916,7 +916,7 @@
|
|||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
permohonan_id: {{ $permohonan->id }},
|
permohonan_id: {{ $permohonan->id }},
|
||||||
dokument_id: '{{ request('dokument') ?? '' }}',
|
dokument_id: '{{ request('documentId') ?? '' }}',
|
||||||
name: $('#editDataName').val(),
|
name: $('#editDataName').val(),
|
||||||
description: $('#editDataDescription').val(),
|
description: $('#editDataDescription').val(),
|
||||||
category: $('#editDataCategory').val(),
|
category: $('#editDataCategory').val(),
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
// Buat FormData untuk mengirim file
|
// Buat FormData untuk mengirim file
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
||||||
const dokument = "{{ request('dokument') }}";
|
const dokument = "{{ request('documentId') }}";
|
||||||
const permohonan = "{{ $permohonan->id }}";
|
const permohonan = "{{ $permohonan->id }}";
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
formData.append('dokument_id', dokument);
|
formData.append('dokument_id', dokument);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<i class="ki-filled ki-save-2"></i>
|
<i class="ki-filled ki-save-2"></i>
|
||||||
<span id="saveButtonText">Simpan</span>
|
<span id="saveButtonText">Simpan</span>
|
||||||
</button>
|
</button>
|
||||||
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('dokument'), 'jenis_jaminan_id' => request('jenis_jaminan')]) }}"
|
<a href="{{ route('surveyor.print_out_inspeksi', ['permohonan_id' => $permohonan->id, 'dokument_id' => request('documentId'), 'jenis_jaminan_id' => request('jenis_jaminan')]) }}"
|
||||||
class="btn btn-info" id="saveButton">
|
class="btn btn-info" id="saveButton">
|
||||||
<i class="ki-filled ki-printer"></i>
|
<i class="ki-filled ki-printer"></i>
|
||||||
<span>Cetak Form Inspeksi</span>
|
<span>Cetak Form Inspeksi</span>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<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">
|
||||||
@if (Request::is('penilai/show-data-pembanding/*/edit') && request()->has('dokument') && request()->has('jenis_jaminan'))
|
@if (Request::is('penilai/show-data-pembanding/*/edit') && request()->has('documentId') && request()->has('jenis_jaminan'))
|
||||||
<a href="{{ url()->previous() }}" 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>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<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">
|
||||||
@if (Request::is('penilai/show-data-pembanding/*/edit') && request()->has('dokument') && request()->has('jenis_jaminan'))
|
@if (Request::is('penilai/show-data-pembanding/*/edit') && request()->has('documentId') && request()->has('jenis_jaminan'))
|
||||||
<a href="{{ url()->previous() }}" 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user