perbaikan konfilk lpj
This commit is contained in:
@@ -48,8 +48,6 @@
|
|||||||
</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">Cab/Direktorat</label>
|
<label class="form-label max-w-56">Cab/Direktorat</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@@ -177,63 +175,6 @@
|
|||||||
value="{{ isset($permohonan->debiture->village) ? $permohonan->debiture->village->name : '' }}">
|
value="{{ isset($permohonan->debiture->village) ? $permohonan->debiture->village->name : '' }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body grid gap-2.5 w-full">
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Jenis Asset</label>
|
|
||||||
@php
|
|
||||||
$statusKey = isset($forminspeksi['asset']['jenis_asset']['sesuai']) ? 'sesuai' : 'tidak sesuai';
|
|
||||||
$selectedValue = $forminspeksi['asset']['jenis_asset'][$statusKey] ?? null;
|
|
||||||
@endphp
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<span>{{ $selectedValue }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
@php
|
|
||||||
$statusKey = isset($forminspeksi['asset']['alamat']['sesuai']) ? 'sesuai' : 'tidak sesuai';
|
|
||||||
$selectedValue = $forminspeksi['asset']['alamat'][$statusKey] ?? null;
|
|
||||||
@endphp
|
|
||||||
<label class="form-label max-w-56">Terletak di</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<span>{{ $selectedValue['address'] ?? '' }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
|
||||||
<label for="province" class="form-label max-w-56">Provinsi</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input type="text" id="province" class="input w-full cursor-not-allowed" readonly
|
|
||||||
value="{{ isset($permohonan->debiture->province) ? $permohonan->debiture->province->name : '' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
|
||||||
<label for="city" class="form-label max-w-56">Kabupaten/Kota</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input type="text" id="city" class="input w-full cursor-not-allowed" readonly
|
|
||||||
value="{{ isset($permohonan->debiture->city) ? $permohonan->debiture->city->name : '' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
|
||||||
<label for="district" class="form-label max-w-56">Kecamatan</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input type="text" id="district" class="input w-full cursor-not-allowed" readonly
|
|
||||||
value="{{ isset($permohonan->debiture->district) ? $permohonan->debiture->district->name : '' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
|
||||||
<label for="village" class="form-label max-w-56">Desa/Kelurahan</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input type="text" id="village" class="input w-full cursor-not-allowed" readonly
|
|
||||||
value="{{ isset($permohonan->debiture->village) ? $permohonan->debiture->village->name : '' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@@ -299,7 +240,8 @@
|
|||||||
<div class="flex w-full lg:w-[30%]">
|
<div class="flex w-full lg:w-[30%]">
|
||||||
@if (in_array(Auth::user()->roles[0]->name, ['administrator', 'pemohon-eo']))
|
@if (in_array(Auth::user()->roles[0]->name, ['administrator', 'pemohon-eo']))
|
||||||
@if (!empty($dokumen_nomor))
|
@if (!empty($dokumen_nomor))
|
||||||
<span class="flex-1 mt-2 text-info">Nomor Dokumen :
|
<span class="flex-1 mt-2 text-info">Nomor
|
||||||
|
Dokumen :
|
||||||
{{ $dokumen_nomor[$index] }}</span>
|
{{ $dokumen_nomor[$index] }}</span>
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ route('debitur.jaminan.download', ['id' => $permohonan->debiture->id, 'dokumen' => $detail->id, 'index' => $index]) }}"
|
<a href="{{ route('debitur.jaminan.download', ['id' => $permohonan->debiture->id, 'dokumen' => $detail->id, 'index' => $index]) }}"
|
||||||
@@ -391,7 +333,8 @@
|
|||||||
<div class="flex w-full lg:w-[30%]">
|
<div class="flex w-full lg:w-[30%]">
|
||||||
@if (in_array(Auth::user()->roles[0]->name, ['administrator', 'pemohon-eo']))
|
@if (in_array(Auth::user()->roles[0]->name, ['administrator', 'pemohon-eo']))
|
||||||
@if (!empty($dokumen_nomor))
|
@if (!empty($dokumen_nomor))
|
||||||
<span class="flex-1 mt-2 text-info">Nomor Dokumen :
|
<span class="flex-1 mt-2 text-info">Nomor
|
||||||
|
Dokumen :
|
||||||
{{ $dokumen_nomor[$index] }}</span>
|
{{ $dokumen_nomor[$index] }}</span>
|
||||||
@endif
|
@endif
|
||||||
<a href="{{ route('debitur.jaminan.download', ['id' => $permohonan->debiture->id, 'dokumen' => $detail->id, 'index' => $index]) }}"
|
<a href="{{ route('debitur.jaminan.download', ['id' => $permohonan->debiture->id, 'dokumen' => $detail->id, 'index' => $index]) }}"
|
||||||
@@ -493,69 +436,83 @@
|
|||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<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="form-label max-w-56">Luas Tanah</label>
|
<label for="province" class="form-label max-w-56">Luas Tanah</label>
|
||||||
<input type="text" class="input w-full" name="luas_tanah" value="{{ old('luas_tanah', $lpjData['luas_tanah'] ?? null) }}">
|
<input type="text" class="input w-full" name="luas_tanah"
|
||||||
|
value="{{ old('luas_tanah', $lpjData['luas_tanah'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_tanah_1" value="{{ old('nilai_tanah_1', $lpjData['nilai_tanah_1'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_tanah_1"
|
||||||
|
value="{{ old('nilai_tanah_1', $lpjData['nilai_tanah_1'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_tanah_2" value="{{ old('nilai_tanah_2', $lpjData['nilai_tanah_2'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_tanah_2"
|
||||||
|
value="{{ old('nilai_tanah_2', $lpjData['nilai_tanah_2'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<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="form-label max-w-56">Luas Bangunan</label>
|
<label for="province" class="form-label max-w-56">Luas Bangunan</label>
|
||||||
<input type="text" class="input w-full" name="luas_bangunan" value="{{ old('luas_bangunan', $lpjData['luas_bangunan'] ?? null) }}">
|
<input type="text" class="input w-full" name="luas_bangunan"
|
||||||
|
value="{{ old('luas_bangunan', $lpjData['luas_bangunan'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_bangunan_1" value="{{ old('nilai_bangunan_1', $lpjData['nilai_bangunan_1'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_bangunan_1"
|
||||||
|
value="{{ old('nilai_bangunan_1', $lpjData['nilai_bangunan_1'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_bangunan_2" value="{{ old('nilai_bangunan_2', $lpjData['nilai_bangunan_2'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_bangunan_2"
|
||||||
|
value="{{ old('nilai_bangunan_2', $lpjData['nilai_bangunan_2'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<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="form-label max-w-56">Sarana Pelengkap</label>
|
<label for="province" class="form-label max-w-56">Sarana Pelengkap</label>
|
||||||
<input type="text" class="input w-full" name="sarana_pelengkap" value="{{ old('sarana_pelengkap', $lpjData['sarana_pelengkap'] ?? null) }}">
|
<input type="text" class="input w-full" name="sarana_pelengkap"
|
||||||
|
value="{{ old('sarana_pelengkap', $lpjData['sarana_pelengkap'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_1" value="{{ old('nilai_sarana_pelengkap_1', $lpjData['nilai_sarana_pelengkap_1'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_1"
|
||||||
|
value="{{ old('nilai_sarana_pelengkap_1', $lpjData['nilai_sarana_pelengkap_1'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_2" value="{{ old('nilai_sarana_pelengkap_2', $lpjData['nilai_sarana_pelengkap_2'] ?? null) }}">
|
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_2"
|
||||||
|
value="{{ old('nilai_sarana_pelengkap_2', $lpjData['nilai_sarana_pelengkap_2'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="total_nilai_pasar_wajar" class="form-label uppercase">TOTAL NILAI LIKUIDASI</label>
|
<label for="total_nilai_pasar_wajar" class="form-label uppercase">TOTAL NILAI
|
||||||
|
LIKUIDASI</label>
|
||||||
<div class="card-body grid gap-2.5 w-full">
|
<div class="card-body grid gap-2.5 w-full">
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<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">
|
||||||
<input type="text" name="likuidasi" class="input w-full" value="{{ old('likuidasi', $lpjData['likuidasi'] ?? null) }}">
|
<input type="text" name="likuidasi" class="input w-full"
|
||||||
|
value="{{ old('likuidasi', $lpjData['likuidasi'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_1" value="{{ old('likuidasi_nilai_1', $lpjData['likuidasi_nilai_1'] ?? null) }}">
|
<input type="text" class="input w-full" name="likuidasi_nilai_1"
|
||||||
|
value="{{ old('likuidasi_nilai_1', $lpjData['likuidasi_nilai_1'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-2.5 w-full">
|
<div class="grid gap-2.5 w-full">
|
||||||
<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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_2" value="{{ old('likuidasi_nilai_2', $lpjData['likuidasi_nilai_2'] ?? null) }}">
|
<input type="text" class="input w-full" name="likuidasi_nilai_2"
|
||||||
|
value="{{ old('likuidasi_nilai_2', $lpjData['likuidasi_nilai_2'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_3" value="{{ old('likuidasi_nilai_3', $lpjData['likuidasi_nilai_3'] ?? null) }}">
|
<input type="text" class="input w-full" name="likuidasi_nilai_3"
|
||||||
|
value="{{ old('likuidasi_nilai_3', $lpjData['likuidasi_nilai_3'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -578,16 +535,19 @@
|
|||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<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="form-label">Luas Bangunan</label>
|
<label for="province" class="form-label">Luas Bangunan</label>
|
||||||
<input type="text" class="input w-full" name="asuransi_luas_bangunan" value="{{ old('asuransi_luas_bangunan', $lpjData['asuransi_luas_bangunan'] ?? null) }}">
|
<input type="text" class="input w-full" name="asuransi_luas_bangunan"
|
||||||
|
value="{{ old('asuransi_luas_bangunan', $lpjData['asuransi_luas_bangunan'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="asuransi_nilai_1" value="{{ old('asuransi_nilai_1', $lpjData['asuransi_nilai_1'] ?? null) }}">
|
<input type="text" class="input w-full" name="asuransi_nilai_1"
|
||||||
|
value="{{ old('asuransi_nilai_1', $lpjData['asuransi_nilai_1'] ?? null) }}">
|
||||||
</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="">Rp</label>
|
<label for="province" class="">Rp</label>
|
||||||
<input type="text" class="input w-full" name="asuransi_nilai_2" value="{{ old('asuransi_nilai_2', $lpjData['asuransi_nilai_2'] ?? null) }}">
|
<input type="text" class="input w-full" name="asuransi_nilai_2"
|
||||||
|
value="{{ old('asuransi_nilai_2', $lpjData['asuransi_nilai_2'] ?? null) }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -597,19 +557,18 @@
|
|||||||
</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="saveLpjSederhanadanStandard()">
|
<button type="button" class="btn btn-success" id="saveButton"
|
||||||
|
onclick="saveLpjSederhanadanStandard()">
|
||||||
<span id="saveButtonText">Save</span>
|
<span id="saveButtonText">Save</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
</div>
|
||||||
|
@endsection
|
||||||
@include('lpj::surveyor.js.utils')
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@include('lpj::surveyor.js.utils')
|
||||||
|
<script type="text/javascript">
|
||||||
function saveLpjSederhanadanStandard() {
|
function saveLpjSederhanadanStandard() {
|
||||||
const form = document.getElementById('form-lpj');
|
const form = document.getElementById('form-lpj');
|
||||||
const formData = new FormData(form);
|
const formData = new FormData(form);
|
||||||
@@ -691,6 +650,5 @@
|
|||||||
console.log(errors);
|
console.log(errors);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
</script>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user