fix(penilai/surveyor): perbaikkan activity, form inspeksi, print out inspeksi dan laporan, ganti nama detail penilai ke detail penilaian
This commit is contained in:
@@ -392,7 +392,7 @@ class ActivityController extends Controller
|
|||||||
$q->where('user_id', $id);
|
$q->where('user_id', $id);
|
||||||
})
|
})
|
||||||
->whereHas('permohonan', function ($q) {
|
->whereHas('permohonan', function ($q) {
|
||||||
$q->whereIn('status', ['assign', 'proses-laporan', 'done', 'proses-survey', 'request-reschedule', 'reschedule', 'rejected-reschedule', 'approved-reschedule', 'revisi-laporan', 'survey']);
|
$q->whereNotIn('status', ['done']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -297,7 +297,6 @@ class PenilaiController extends Controller
|
|||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('penilai.show', ['id' => $id])->with('success', 'diperbarui ke status paparan dan dikirim ke So untuk proses lebih lanjut.');
|
->route('penilai.show', ['id' => $id])->with('success', 'diperbarui ke status paparan dan dikirim ke So untuk proses lebih lanjut.');
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return redirect()->route('penilai.show', ['id' => $id])->with('error', 'Terjadi kesalahan saat memproses permohonan.');
|
return redirect()->route('penilai.show', ['id' => $id])->with('error', 'Terjadi kesalahan saat memproses permohonan.');
|
||||||
}
|
}
|
||||||
@@ -772,7 +771,6 @@ class PenilaiController extends Controller
|
|||||||
'success' => true,
|
'success' => true,
|
||||||
'message' => 'Berhasil Megirim reported ke so'
|
'message' => 'Berhasil Megirim reported ke so'
|
||||||
], 200);
|
], 200);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'success' => false,
|
'success' => false,
|
||||||
@@ -1039,7 +1037,6 @@ class PenilaiController extends Controller
|
|||||||
'trace' => $e->getTraceAsString()
|
'trace' => $e->getTraceAsString()
|
||||||
], 500);
|
], 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function storeCallReport(Request $request)
|
public function storeCallReport(Request $request)
|
||||||
@@ -1235,12 +1232,10 @@ class PenilaiController extends Controller
|
|||||||
$pdf->setPaper('A4', 'portrait');
|
$pdf->setPaper('A4', 'portrait');
|
||||||
return $pdf->download('Laporan_' . $tipeLaporan . '_' . $permohonan->debiture->name . '_' . $cleanNomorLaporan . '_data.pdf');
|
return $pdf->download('Laporan_' . $tipeLaporan . '_' . $permohonan->debiture->name . '_' . $cleanNomorLaporan . '_data.pdf');
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Log::error('PDF generation failed: ' . $e->getMessage());
|
Log::error('PDF generation failed: ' . $e->getMessage());
|
||||||
return response()->json(['error' => 'Failed to generate PDF. Please check the log for details.' . $e->getMessage()], 500);
|
return response()->json(['error' => 'Failed to generate PDF. Please check the log for details.' . $e->getMessage()], 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getViewLaporan($tipe)
|
private function getViewLaporan($tipe)
|
||||||
@@ -1609,6 +1604,4 @@ class PenilaiController extends Controller
|
|||||||
'message' => 'Berhasil Revisi Ke surveyor',
|
'message' => 'Berhasil Revisi Ke surveyor',
|
||||||
], 200);
|
], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,8 +20,13 @@
|
|||||||
|
|
||||||
@foreach ($informasi as $key)
|
@foreach ($informasi as $key)
|
||||||
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
||||||
<p> - {{ ucfirst(str_replace('_', ' ', $key)) }}:
|
@php
|
||||||
{{ $forminspeksi['fakta'][$key] }}</p>
|
$displayKey = ucfirst(str_replace('_', ' ', $key));
|
||||||
|
if (strlen($key) == 3) {
|
||||||
|
$displayKey = strtoupper($key);
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<p> - {{ $displayKey }}: {{ $forminspeksi['fakta'][$key] }}</p>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,11 @@
|
|||||||
<td>Tusuk Sate</td>
|
<td>Tusuk Sate</td>
|
||||||
<td>:</td>
|
<td>:</td>
|
||||||
<td>
|
<td>
|
||||||
{{ isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate'] == 'yes' ? 'Ya' : 'Tidak' }}
|
{{ isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate']['Ya'] ? 'Ya' : 'Tidak' }}
|
||||||
|
@if (isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate']['Ya'])
|
||||||
|
{{ isset($forminspeksi['tanah']['tusuk_sate_ya']) ? ' (' . $forminspeksi['tanah']['tusuk_sate_ya'] . ')' : '' }}
|
||||||
|
@endif
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -908,8 +908,13 @@
|
|||||||
|
|
||||||
@foreach ($informasi as $key)
|
@foreach ($informasi as $key)
|
||||||
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
||||||
<p> - {{ ucfirst(str_replace('_', ' ', $key)) }}:
|
@php
|
||||||
{{ $forminspeksi['fakta'][$key] }}</p>
|
$displayKey = ucfirst(str_replace('_', ' ', $key));
|
||||||
|
if (strlen($key) == 3) {
|
||||||
|
$displayKey = strtoupper($key);
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<p> - {{ $displayKey }}: {{ $forminspeksi['fakta'][$key] }}</p>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
|||||||
@@ -415,7 +415,7 @@
|
|||||||
YANG BERLAKU, APABILA LEWAT MAKA HARUS DILAKUKAN ORDER ULANG SESUAI PROSEDUR YANG
|
YANG BERLAKU, APABILA LEWAT MAKA HARUS DILAKUKAN ORDER ULANG SESUAI PROSEDUR YANG
|
||||||
BERLAKU
|
BERLAKU
|
||||||
</li>
|
</li>
|
||||||
<li>Apabila sudah melewati 6 bulan, maka harus penilaian ulang kembali
|
<li class="uppercase">Apabila sudah melewati 6 bulan, maka harus penilaian ulang kembali
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div class="card border border-agi-100 pb-2.5">
|
<div class="card border border-agi-100 pb-2.5">
|
||||||
<div class="card-header bg-agi-50" id="basic_settings">
|
<div class="card-header bg-agi-50" id="basic_settings">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
Detail Penilai
|
Detail Penilaian
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<a href="{{ route('penilai.index') }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i>
|
<a href="{{ route('penilai.index') }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i>
|
||||||
|
|||||||
@@ -329,10 +329,10 @@
|
|||||||
).then((result) => {
|
).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
const requestData = isPaparanSO ? {
|
const requestData = isPaparanSO ? {
|
||||||
message: result.value.keterangan,
|
message: result.value.message,
|
||||||
tanggalPaparan: result.value.tanggalPaparan
|
tanggalPaparan: result.value.tanggalPaparan
|
||||||
} : {
|
} : {
|
||||||
message: result.value.keterangan
|
message: result.value.message
|
||||||
};
|
};
|
||||||
|
|
||||||
handleAjaxRequest(
|
handleAjaxRequest(
|
||||||
|
|||||||
@@ -339,7 +339,7 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<select id="hub_cadeb_tidak_sesuai" class="input w-full" name="hub_cadeb_tidak_sesuai"
|
<select id="hub_cadeb_tidak_sesuai" class="input w-full" name="hub_cadeb_tidak_sesuai"
|
||||||
style="{{ old('hub_cadeb_tidak_sesuai', $selectedData) ? '' : 'display: none;' }}">
|
style="{{ $statusKey != 'sesuai' ? '' : 'display: none;' }}">
|
||||||
<option value="">Select Hubungan Cadeb</option>
|
<option value="">Select Hubungan Cadeb</option>
|
||||||
@if (isset($basicData['hubCadeb']))
|
@if (isset($basicData['hubCadeb']))
|
||||||
@foreach ($basicData['hubCadeb'] as $item)
|
@foreach ($basicData['hubCadeb'] as $item)
|
||||||
@@ -403,7 +403,7 @@
|
|||||||
<input id="hub_penghuni_tidak_sesuai" class="input" name="hub_penghuni_tidak_sesuai"
|
<input id="hub_penghuni_tidak_sesuai" class="input" name="hub_penghuni_tidak_sesuai"
|
||||||
placeholder="Masukkan Hubungan penghuni jaminan"
|
placeholder="Masukkan Hubungan penghuni jaminan"
|
||||||
value="{{ old('hub_penghuni_tidak_sesuai', isset($selectedData) ? $selectedData : '') }}"
|
value="{{ old('hub_penghuni_tidak_sesuai', isset($selectedData) ? $selectedData : '') }}"
|
||||||
style="{{ old('hub_penghuni_tidak_sesuai', $selectedData ?? false) ? '' : 'display: none;' }}">
|
style="{{ $statusKey != 'sesuai' ? '' : 'display: none;' }}">
|
||||||
</div>
|
</div>
|
||||||
<em id="error-hub_cadeb_penghuni" class="alert text-danger text-sm"></em>
|
<em id="error-hub_cadeb_penghuni" class="alert text-danger text-sm"></em>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -91,6 +91,8 @@
|
|||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script src="https://cdn.jsdelivr.net/npm/signature_pad@4.1.7/dist/signature_pad.umd.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/signature_pad@4.1.7/dist/signature_pad.umd.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
const datas = @json($forminspeksi);
|
||||||
|
console.log(datas);
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const signaturePads = {};
|
const signaturePads = {};
|
||||||
const types = ['penilai', 'cabang', 'debitur', 'kjjp'];
|
const types = ['penilai', 'cabang', 'debitur', 'kjjp'];
|
||||||
@@ -343,8 +345,6 @@
|
|||||||
showLoadingSwal('Mengirim data ke server...');
|
showLoadingSwal('Mengirim data ke server...');
|
||||||
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()));
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ route('surveyor.store') }}',
|
url: '{{ route('surveyor.store') }}',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
@@ -364,8 +364,8 @@
|
|||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (response.isConfirmed) {
|
if (response.isConfirmed) {
|
||||||
window.location.href =
|
// window.location.href =
|
||||||
'{{ route('surveyor.show', ['id' => $permohonan->id]) }}';
|
// '{{ route('surveyor.show', ['id' => $permohonan->id]) }}';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -389,8 +389,6 @@
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let errors = xhr.responseJSON?.errors;
|
let errors = xhr.responseJSON?.errors;
|
||||||
$('.alert').text('');
|
$('.alert').text('');
|
||||||
if (errors) {
|
if (errors) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
: 'sesuai';
|
: 'sesuai';
|
||||||
$luasBangunan = $forminspeksi['bangunan']['luas_tanah_bagunan'][$cekLuasBangunan] ?? null;
|
$luasBangunan = $forminspeksi['bangunan']['luas_tanah_bagunan'][$cekLuasBangunan] ?? null;
|
||||||
@endphp
|
@endphp
|
||||||
<td width="25%"><strong>Luas Tanah Bangunan</strong></td>
|
<td width="25%"><strong>Luas Bangunan (IMB)</strong></td>
|
||||||
<td>{{ $luasBangunan }}</td>
|
<td>{{ $luasBangunan }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
{{ isset($forminspeksi['bangunan']['jenis_bangunan']) && in_array($item->name, $forminspeksi['bangunan']['jenis_bangunan']) ? 'checked' : '' }}>
|
{{ isset($forminspeksi['bangunan']['jenis_bangunan']) && in_array($item->name, $forminspeksi['bangunan']['jenis_bangunan']) ? 'checked' : '' }}>
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
@@ -80,6 +81,18 @@
|
|||||||
<input type="checkbox" name="sifat_bangunan[]" value="{{ $item->name }}"
|
<input type="checkbox" name="sifat_bangunan[]" value="{{ $item->name }}"
|
||||||
{{ isset($forminspeksi['bangunan']['sifat_bangunan']) && in_array($item->name, $forminspeksi['bangunan']['sifat_bangunan']) ? 'checked' : '' }}>
|
{{ isset($forminspeksi['bangunan']['sifat_bangunan']) && in_array($item->name, $forminspeksi['bangunan']['sifat_bangunan']) ? 'checked' : '' }}>
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
|
|
||||||
|
@if (isset($forminspeksi['bangunan']['sifat_bangunan']) &&
|
||||||
|
in_array($item->name, $forminspeksi['bangunan']['sifat_bangunan']))
|
||||||
|
@php
|
||||||
|
$inputValues = isset($forminspeksi['bangunan']['sifat_bangunan_input'][$index])
|
||||||
|
? $forminspeksi['bangunan']['sifat_bangunan_input'][$index]
|
||||||
|
: null;
|
||||||
|
@endphp
|
||||||
|
@if ($inputValues)
|
||||||
|
<span class="label-checkbox"> - {{ $inputValues }}</span>
|
||||||
|
@endif
|
||||||
|
@endif
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
@@ -90,7 +103,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@if (isset($forminspeksi['bangunan']['spesifikasi_bangunan']) && count($forminspeksi['bangunan']['spesifikasi_bangunan']) > 0)
|
@if (isset($forminspeksi['bangunan']['spesifikasi_bangunan']) &&
|
||||||
|
count($forminspeksi['bangunan']['spesifikasi_bangunan']) > 0)
|
||||||
@foreach ($forminspeksi['bangunan']['spesifikasi_bangunan'] as $bangunanIndex => $bangunan)
|
@foreach ($forminspeksi['bangunan']['spesifikasi_bangunan'] as $bangunanIndex => $bangunan)
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><strong>Spesifikasi Bangunan {{ $bangunanIndex + 1 }}</strong></td>
|
<td colspan="2"><strong>Spesifikasi Bangunan {{ $bangunanIndex + 1 }}</strong></td>
|
||||||
@@ -109,14 +123,20 @@
|
|||||||
@php
|
@php
|
||||||
$selectedValues = [];
|
$selectedValues = [];
|
||||||
if (isset($bangunan['spek_kategori_bangunan'][$spesifikasi->name])) {
|
if (isset($bangunan['spek_kategori_bangunan'][$spesifikasi->name])) {
|
||||||
$selectedValues = array_values($bangunan['spek_kategori_bangunan'][$spesifikasi->name]);
|
$selectedValues = array_values(
|
||||||
|
$bangunan['spek_kategori_bangunan'][$spesifikasi->name],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
$lainnyaValue = $bangunan['spek_kategori_bangunan'][$spesifikasi->name]['lainnya'] ?? '';
|
$lainnyaValue =
|
||||||
|
$bangunan['spek_kategori_bangunan'][$spesifikasi->name][
|
||||||
|
'lainnya'
|
||||||
|
] ?? '';
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<td class="checkbox-item">
|
<td class="checkbox-item">
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
<input type="checkbox" class="checkbox-lainnya" style="margin-right: 3px;"
|
<input type="checkbox" class="checkbox-lainnya"
|
||||||
|
style="margin-right: 3px;"
|
||||||
name="spesifikasi_bangunan[{{ $bangunanIndex }}][{{ $spesifikasi->name }}][]"
|
name="spesifikasi_bangunan[{{ $bangunanIndex }}][{{ $spesifikasi->name }}][]"
|
||||||
value="{{ $kategori->name }}"
|
value="{{ $kategori->name }}"
|
||||||
@if (in_array($kategori->name, $selectedValues)) checked @endif>
|
@if (in_array($kategori->name, $selectedValues)) checked @endif>
|
||||||
|
|||||||
@@ -129,8 +129,13 @@
|
|||||||
|
|
||||||
@foreach ($informasi as $key)
|
@foreach ($informasi as $key)
|
||||||
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
@if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-')
|
||||||
<p> - {{ ucfirst(str_replace('_', ' ', $key)) }}:
|
@php
|
||||||
{{ $forminspeksi['fakta'][$key] }}</p>
|
$displayKey = ucfirst(str_replace('_', ' ', $key));
|
||||||
|
if (strlen($key) == 3) {
|
||||||
|
$displayKey = strtoupper($key);
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<p> - {{ $displayKey }}: {{ $forminspeksi['fakta'][$key] }}</p>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -13,23 +13,23 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="25%">Jarak Jalan Utama</td>
|
<td width="25%">Jarak Jalan Utama</td>
|
||||||
<td>{{ $forminspeksi['lingkungan']['jarak_jalan_utama'] ?? 'Tidak Diketahui' }}</td>
|
<td>{{ $forminspeksi['lingkungan']['jarak_jalan_utama'] ?? '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Jalan Lingkungan</td>
|
<td>Jalan Lingkungan</td>
|
||||||
<td>{{ $forminspeksi['lingkungan']['jarak_jalan_utama'] ?? 'Tidak Diketahui' }}</td>
|
<td>{{ $forminspeksi['lingkungan']['jalan_linkungan'] ?? '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Jarak CBD Point</td>
|
<td>Jarak CBD Point</td>
|
||||||
<td>{{ $forminspeksi['lingkungan']['jarak_cbd_point'] ?? 'Tidak Diketahui' }}</td>
|
<td>{{ $forminspeksi['lingkungan']['jarak_cbd_point'] ?? '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Nama CBD Point</td>
|
<td>Nama CBD Point</td>
|
||||||
<td>{{ $forminspeksi['lingkungan']['nama_cbd_point'] ?? 'Tidak Diketahui' }}</td>
|
<td>{{ $forminspeksi['lingkungan']['nama_cbd_point'] ?? '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Lebar Perkerasan Jalan</td>
|
<td>Lebar Perkerasan Jalan</td>
|
||||||
<td>{{ $forminspeksi['lingkungan']['lebar_perkerasan_jalan'] ?? 'Tidak Diketahui' }}</td>
|
<td>{{ $forminspeksi['lingkungan']['lebar_perkerasan_jalan'] ?? '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: top;"><strong>Sarana Pelengkap</strong></td>
|
<td style="vertical-align: top;"><strong>Sarana Pelengkap</strong></td>
|
||||||
@@ -191,6 +191,55 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align: top;"><strong>Dekat Makam</strong></td>
|
||||||
|
<td>
|
||||||
|
<div class="checkbox-item">
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="radio" name="disekitar_lokasi" value="ya"
|
||||||
|
{{ ($forminspeksi['lingkungan']['dekat_makam'] ?? '') == 'ya' ? 'checked' : '' }}>
|
||||||
|
Ya
|
||||||
|
@if (($forminspeksi['lingkungan']['dekat_makam'] ?? '') == 'ya')
|
||||||
|
- Nama Makam:
|
||||||
|
{{ $forminspeksi['lingkungan']['nama_makam'] ?? '' }}
|
||||||
|
, Jarak Makam:
|
||||||
|
{{ $forminspeksi['lingkungan']['jarak_makam'] ?? '' }}
|
||||||
|
@endif
|
||||||
|
</label>
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="radio" name="disekitar_lokasi" value="tidak"
|
||||||
|
{{ ($forminspeksi['lingkungan']['dekat_makam'] ?? '') == 'tidak' ? 'checked' : '' }}>
|
||||||
|
Tidak
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align: top;"><strong>Dekat TPS</strong></td>
|
||||||
|
<td>
|
||||||
|
<div class="checkbox-item">
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="radio" name="disekitar_lokasi" value="ya"
|
||||||
|
{{ ($forminspeksi['lingkungan']['dekat_tps'] ?? '') == 'ya' ? 'checked' : '' }}>
|
||||||
|
Ya
|
||||||
|
@if (($forminspeksi['lingkungan']['dekat_tps'] ?? '') == 'ya')
|
||||||
|
- Nama TPS:
|
||||||
|
{{ $forminspeksi['lingkungan']['nama_tps'] ?? '' }}
|
||||||
|
, Jarak TPS:
|
||||||
|
{{ $forminspeksi['lingkungan']['jarak_tps'] ?? '' }}
|
||||||
|
@endif
|
||||||
|
</label>
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="radio" name="disekitar_lokasi" value="tidak"
|
||||||
|
{{ ($forminspeksi['lingkungan']['dekat_tps'] ?? '') == 'tidak' ? 'checked' : '' }}>
|
||||||
|
Tidak
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: top;"><strong>Merupakan Daerah</strong></td>
|
<td style="vertical-align: top;"><strong>Merupakan Daerah</strong></td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -193,6 +193,12 @@
|
|||||||
.page-break {
|
.page-break {
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-break {
|
||||||
|
page-break-inside: avoid;
|
||||||
|
page-break-before: auto;
|
||||||
|
page-break-after: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -308,7 +314,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Nama Debiture/ Wakil Debiture</strong></td>
|
<td><strong>Nama Debiture/ Wakil Debiture</strong></td>
|
||||||
<td>{{ $permohonan->debiture->name ?? '' }}</td>
|
<td>{{ $permohonan->debiture->name ?? '' }}
|
||||||
|
@if (isset($forminspeksi['asset']['debitur_perwakilan']) && !empty($forminspeksi['asset']['debitur_perwakilan']))
|
||||||
|
@foreach ($forminspeksi['asset']['debitur_perwakilan'] as $key => $item)
|
||||||
|
/ {{ $item }}
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td><strong>Kunjungan Tanggal</strong></td>
|
<td><strong>Kunjungan Tanggal</strong></td>
|
||||||
<td>{{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) }}</td>
|
<td>{{ formatTanggalIndonesia($permohonan->penilaian->tanggal_kunjungan) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -556,10 +568,12 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@if (strtolower($permohonan->tujuanPenilaian->name) == 'rap')
|
@if (strtolower($permohonan->tujuanPenilaian->name) == 'rap')
|
||||||
@include('lpj::surveyor.components.print-out.rap')
|
@include('lpj::surveyor.components.print-out.rap')
|
||||||
@else
|
@else
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td style="text-align: center; border: 1px solid #000;">
|
<td style="text-align: center; border: 1px solid #000;">
|
||||||
E
|
E
|
||||||
</td>
|
</td>
|
||||||
@@ -600,7 +614,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endIf
|
@endIf
|
||||||
|
</div>
|
||||||
{{-- <tr>
|
{{-- <tr>
|
||||||
<td style="text-align: center; border: 1px solid #000;">
|
<td style="text-align: center; border: 1px solid #000;">
|
||||||
G
|
G
|
||||||
|
|||||||
@@ -123,13 +123,16 @@
|
|||||||
<td><strong>Tusuk Sate</strong></td>
|
<td><strong>Tusuk Sate</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="tusuk_sate" value="yes"
|
<input type="radio" name="tusuk_sate" value="Ya"
|
||||||
{{ isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate'] == 'yes' ? 'Ya' : 'Tidak' }}
|
{{ isset($forminspeksi['tanah']['tusuk_sate']['Ya']) && $forminspeksi['tanah']['tusuk_sate']['Ya'] ? 'checked' : '' }}>
|
||||||
Ya
|
Ya
|
||||||
|
@if (isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate']['Ya'])
|
||||||
|
{{ isset($forminspeksi['tanah']['tusuk_sate']['Ya']) ? ' (' . $forminspeksi['tanah']['tusuk_sate']['Ya'] . ')' : '' }}
|
||||||
|
@endif
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="tusuk_sate" value="no"
|
<input type="radio" name="tusuk_sate" value="Tidak"
|
||||||
{{isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate'] == 'no' ? 'checked' : '' }}>
|
{{isset($forminspeksi['tanah']['tusuk_sate']['Tidak']) && $forminspeksi['tanah']['tusuk_sate']['Tidak'] ? 'checked' : '' }}>
|
||||||
Tidak
|
Tidak
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -85,10 +85,9 @@
|
|||||||
<!-- Select dropdown untuk "Tidak Sesuai" -->
|
<!-- Select dropdown untuk "Tidak Sesuai" -->
|
||||||
<div id="hadap_mata_angin_tidak_sesuai" class="flex items-baseline gap-2"
|
<div id="hadap_mata_angin_tidak_sesuai" class="flex items-baseline gap-2"
|
||||||
style="{{ old('hadap_mata_angin', isset($forminspeksi['tanah']['hadap_mata_angin']['tidak sesuai'])) ? '' : 'display: none;' }}">
|
style="{{ old('hadap_mata_angin', isset($forminspeksi['tanah']['hadap_mata_angin']['tidak sesuai'])) ? '' : 'display: none;' }}">
|
||||||
<select
|
<select class="input w-full
|
||||||
class="input w-full
|
id="
|
||||||
id=" hadap_mata_angin_tidak_sesuai"
|
hadap_mata_angin_tidak_sesuai" name="hadap_mata_angin_tidak_sesuai">
|
||||||
name="hadap_mata_angin_tidak_sesuai">
|
|
||||||
@php
|
@php
|
||||||
$statusKey = isset($forminspeksi['tanah']['hadap_mata_angin']['sesuai'])
|
$statusKey = isset($forminspeksi['tanah']['hadap_mata_angin']['sesuai'])
|
||||||
? 'sesuai'
|
? 'sesuai'
|
||||||
@@ -273,13 +272,24 @@
|
|||||||
<div class="flex-wrap items-stretch">
|
<div class="flex-wrap items-stretch">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
<input type="radio" class="radio" name="tusuk_sate" value="yes"
|
<input onclick="toggleFieldVisibility('tusuk_sate', 'tusuk_sate_ya', ['Ya'])"
|
||||||
{{ old('tusuk_sate') == 'yes' || (isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate'] == 'yes') ? 'checked' : '' }}>
|
type="radio" class="radio" name="tusuk_sate" value="Ya"
|
||||||
|
{{ old('tusuk_sate') == 'Ya' || (isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate']['Ya']) ? 'checked' : '' }}>
|
||||||
<span class="ml-2">Ya</span>
|
<span class="ml-2">Ya</span>
|
||||||
|
|
||||||
|
@php
|
||||||
|
$statusKey = isset($forminspeksi['tanah']['tusuk_sate']['Ya']) ? 'Ya' : 'Tidak';
|
||||||
|
$selectedData = $forminspeksi['tanah']['tusuk_sate'][$statusKey] ?? null;
|
||||||
|
@endphp
|
||||||
|
<input id="tusuk_sate_ya" class="input" name="tusuk_sate_ya"
|
||||||
|
placeholder="Masukkan Tusuk Sate..."
|
||||||
|
value="{{ old('tusuk_sate_ya', isset($selectedData) ? $selectedData : '') }}"
|
||||||
|
style="{{ $statusKey == 'Ya' ? '' : 'display: none;' }}">
|
||||||
</label>
|
</label>
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
<input type="radio" class="radio" name="tusuk_sate" value="no"
|
<input onclick="toggleFieldVisibility('tusuk_sate', 'tusuk_sate_ya', ['Ya'])"
|
||||||
{{ old('tusuk_sate') == 'no' || (isset($forminspeksi['tanah']['tusuk_sate']) && $forminspeksi['tanah']['tusuk_sate'] == 'no') ? 'checked' : '' }}>
|
type="radio" class="radio" name="tusuk_sate" value="Tidak"
|
||||||
|
{{ old('tusuk_sate') == 'Tidak' || (isset($forminspeksi['tanah']['tusuk_sate']['Tidak']) && $forminspeksi['tanah']['tusuk_sate']['Tidak']) ? 'checked' : '' }}>
|
||||||
<span class="ml-2">Tidak</span>
|
<span class="ml-2">Tidak</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -600,7 +600,7 @@
|
|||||||
|
|
||||||
Breadcrumbs::for('penilai.show', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('penilai.show', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('penilai');
|
$trail->parent('penilai');
|
||||||
$trail->push('Detail Penilai');
|
$trail->push('Detail Penilaian');
|
||||||
});
|
});
|
||||||
|
|
||||||
Breadcrumbs::for('penilai.edit', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('penilai.edit', function (BreadcrumbTrail $trail) {
|
||||||
|
|||||||
Reference in New Issue
Block a user