diff --git a/app/Http/Controllers/SurveyorController.php b/app/Http/Controllers/SurveyorController.php
index b8c2d97..69c3653 100644
--- a/app/Http/Controllers/SurveyorController.php
+++ b/app/Http/Controllers/SurveyorController.php
@@ -1472,8 +1472,8 @@ class SurveyorController extends Controller
'dokument_id' => 'required',
'name_foto_objek' => 'nullable|string',
'nomor_registrasi' => 'required|string',
- 'foto_objek' => 'nullable|image|max:'.$maxSize,
- 'foto_objek_pembanding.*' => 'nullable|image|max:'.$maxSize,
+ 'foto_objek' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
+ 'foto_objek_pembanding.*' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
]);
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT', 'MESIN'];
diff --git a/resources/views/penilai/components/print-out-call-report.blade.php b/resources/views/penilai/components/print-out-call-report.blade.php
index 4d806e3..439ffb9 100644
--- a/resources/views/penilai/components/print-out-call-report.blade.php
+++ b/resources/views/penilai/components/print-out-call-report.blade.php
@@ -138,7 +138,7 @@
@foreach (json_decode($detail->details) as $key => $value)
@if (!is_null($value) && $value !== '')
|
- {{ ucwords(str_replace('_', ' ', $key)) ?? '' }}
+ {{formatLabel($key)}}
|
: |
@@ -570,9 +570,9 @@
PETA
-
+
@php
- $fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
+ $fotoTypes = ['upload_gs','foto_sentuh_tanahku','foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
// Memindahkan foto_tempat ke depan jika ada
if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
unset($fotoTypes[$key]);
@@ -607,9 +607,8 @@
+
-
-
diff --git a/resources/views/penilai/components/print-out-sederhana.blade.php b/resources/views/penilai/components/print-out-sederhana.blade.php
index 4f69b77..931d77c 100644
--- a/resources/views/penilai/components/print-out-sederhana.blade.php
+++ b/resources/views/penilai/components/print-out-sederhana.blade.php
@@ -197,7 +197,7 @@
@if (!is_null($value) && $value !== '')
|
- {{ ucwords(str_replace('_', ' ', $key)) ?? '' }}
+ {{formatLabel($key)}}
|
: |
@@ -1095,7 +1095,7 @@
@php
- $fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat', 'foto_sentuh_tanahku'];
+ $fotoTypes = ['upload_gs','foto_sentuh_tanahku','foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
// Memindahkan foto_tempat ke depan jika ada
if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
unset($fotoTypes[$key]);
diff --git a/resources/views/penilai/components/print-out-standard.blade.php b/resources/views/penilai/components/print-out-standard.blade.php
index 30a2f34..b480c2d 100644
--- a/resources/views/penilai/components/print-out-standard.blade.php
+++ b/resources/views/penilai/components/print-out-standard.blade.php
@@ -202,7 +202,7 @@
@foreach (json_decode($detail->details) as $key => $value)
@if (!is_null($value) && $value !== '')
|
- {{ ucwords(str_replace('_', ' ', $key)) ?? '' }} |
+ {{formatLabel($key)}}
: |
{{ $value }}
@if ($key == 'luas_bangunan' || $key == 'luas_tanah')
@@ -562,7 +562,7 @@
@php
- $fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat','foto_sentuh_tanahku'];
+ $fotoTypes = ['upload_gs','foto_sentuh_tanahku','foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
// Memindahkan foto_tempat ke depan jika ada
if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
unset($fotoTypes[$key]);
diff --git a/resources/views/penilai/components/print-resume.blade.php b/resources/views/penilai/components/print-resume.blade.php
index 9f08454..1eb9cc0 100644
--- a/resources/views/penilai/components/print-resume.blade.php
+++ b/resources/views/penilai/components/print-resume.blade.php
@@ -109,7 +109,7 @@
@foreach ($details as $key => $value)
@if (!is_null($value) && $value !== '')
- | {{ ucwords(str_replace('_', ' ', $key)) ?? '' }} |
+ {{formatLabel($key)}} |
: |
{{ $value }}
@if ($key == 'luas_bangunan' || $key == 'luas_tanah')
diff --git a/resources/views/penilai/show.blade.php b/resources/views/penilai/show.blade.php
index b6eb0e0..bc12dc9 100644
--- a/resources/views/penilai/show.blade.php
+++ b/resources/views/penilai/show.blade.php
@@ -99,10 +99,15 @@
Status Bayar
-
- {{ str_replace('_', ' ', $permohonan->status_bayar) }}
-
+ @if (strtolower($permohonan->tujuanPenilaian->name) ==
+ 'penilaian ulang')
+ -
+ @else
+
+ {{ str_replace('_', ' ', $permohonan->status_bayar) }}
+
+ @endif
@@ -190,17 +195,16 @@
@if ($permohonan->status == 'revisi-laporan')
-
-
-
-
- {{ $permohonan->keterangan ?? '' }}
-
+
+
+
+
+ {{ $permohonan->keterangan ?? '' }}
+
+
-
-
@endif
@@ -226,7 +230,8 @@
Kertas Kerja
@endif
-
+
Paparan
@@ -295,9 +300,6 @@
@endif
- @endif
-
- {{-- @if ($permohonan->penilaian->jenis_penilaian_id == 2 && $permohonan->tujuanPenilaian->id == 4) --}}
+ @endif
+
+ {{-- @if ($permohonan->penilaian->jenis_penilaian_id == 2 && $permohonan->tujuanPenilaian->id == 4) --}}
+
{{-- @endif --}}
@@ -319,8 +325,8 @@
@if (isset($permohonan->penilai) && isset($permohonan->penilai->kertas_kerja) && $permohonan->penilai->kertas_kerja)
- Lihat Kertas Kerja
- @endif
+ Lihat Kertas Kerja
+ @endif
@@ -610,7 +618,8 @@
confirmButtonText: 'Yes'
}).then((result) => {
if (result.isConfirmed) {
- window.location.href = `/penilai/${permohonanId}/edit?document_id=${documentId}&inspeksi_id=${inspeksiId}&jaminanId=${jaminanId}`;
+ window.location.href =
+ `/penilai/${permohonanId}/edit?document_id=${documentId}&inspeksi_id=${inspeksiId}&jaminanId=${jaminanId}`;
}
});
}
@@ -635,7 +644,7 @@
// window.location.reload();
hideLoadingSwal();
toastrSuccessBuild(response.message);
- }else{
+ } else {
// hideLoadingSwal();
Swal.fire('Perhatian!', response.message, 'warning');
}
@@ -658,52 +667,52 @@
function revisiSurveyor(dataId, debitur, noreg) {
- Swal.fire({
- title: 'Apakah Anda yakin?',
- text: `Untuk melakukan Revisi nomor registrasi ${noreg} atas nama debiture ${debitur} !`,
- icon: 'warning',
- input: 'textarea',
- inputLabel: 'Keterangan',
- inputPlaceholder: 'Masukkan keterangan...',
- inputAttributes: {
- 'aria-label': 'Masukkan keterangan'
+ Swal.fire({
+ title: 'Apakah Anda yakin?',
+ text: `Untuk melakukan Revisi nomor registrasi ${noreg} atas nama debiture ${debitur} !`,
+ icon: 'warning',
+ input: 'textarea',
+ inputLabel: 'Keterangan',
+ inputPlaceholder: 'Masukkan keterangan...',
+ inputAttributes: {
+ 'aria-label': 'Masukkan keterangan'
+ },
+ showCancelButton: true,
+ confirmButtonColor: '#3085d6',
+ cancelButtonColor: '#d33',
+ confirmButtonText: 'Ya, Lanjutkan!',
+ cancelButtonText: 'Batal',
+ }).then((result) => {
+ if (result.isConfirmed) {
+ const userMessage = result.value || '';
+ $.ajaxSetup({
+ headers: {
+ 'X-CSRF-TOKEN': '{{ csrf_token() }}'
},
- showCancelButton: true,
- confirmButtonColor: '#3085d6',
- cancelButtonColor: '#d33',
- confirmButtonText: 'Ya, Lanjutkan!',
- cancelButtonText: 'Batal',
- }).then((result) => {
- if (result.isConfirmed) {
- const userMessage = result.value || '';
- $.ajaxSetup({
- headers: {
- 'X-CSRF-TOKEN': '{{ csrf_token() }}'
- },
- });
- $.ajax({
- url: `/penilai/revisi-surveyor/${dataId}`,
- type: 'PUT',
- data: {
- message: userMessage
- },
- success: (response) => {
- Swal.fire('Berhasil!', response.message , 'success').then(
+ });
+ $.ajax({
+ url: `/penilai/revisi-surveyor/${dataId}`,
+ type: 'PUT',
+ data: {
+ message: userMessage
+ },
+ success: (response) => {
+ Swal.fire('Berhasil!', response.message, 'success').then(
() => {
- window.location.href =
- '{{ route('penilai.index') }}';
- });
- console.log(response);
- },
- error: (error) => {
- console.error('Error:', error);
- Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan Revisi.',
- 'error');
- }
- });
+ window.location.href =
+ '{{ route('penilai.index') }}';
+ });
+ console.log(response);
+ },
+ error: (error) => {
+ console.error('Error:', error);
+ Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan Revisi.',
+ 'error');
}
});
}
+ });
+ }
@include('lpj::surveyor.js.utils')
diff --git a/resources/views/surveyor/components/data-pembanding.blade.php b/resources/views/surveyor/components/data-pembanding.blade.php
index 786d568..cbc47ab 100644
--- a/resources/views/surveyor/components/data-pembanding.blade.php
+++ b/resources/views/surveyor/components/data-pembanding.blade.php
@@ -356,9 +356,30 @@
if (preview) {
preview.id = newImageId;
preview.src = '';
+ preview.accept = ".jpg,.jpeg,.png";
preview.classList.add('hidden');
input.onchange = function() {
- previewImage(this, newImageId);
+ const file = this.files[0];
+ if (file) {
+ const validExtensions = ['image/jpeg', 'image/png', 'image/gif',
+ 'image/webp'
+ ];
+ if (validExtensions.includes(file.type)) {
+ previewImage(this, newImageId);
+ } else {
+ Swal.fire({
+ icon: 'error',
+ title: 'Format Tidak Didukung',
+ text: 'Hanya file gambar dengan format JPG, PNG, GIF, atau WEBP yang diperbolehkan.',
+ position: 'top-end',
+ toast: true,
+ showConfirmButton: false,
+ timer: 3000,
+ timerProgressBar: true
+ });
+ this.value = '';
+ }
+ }
};
}
}
diff --git a/resources/views/surveyor/components/informasi.blade.php b/resources/views/surveyor/components/informasi.blade.php
index 077c4f2..cfd19f4 100644
--- a/resources/views/surveyor/components/informasi.blade.php
+++ b/resources/views/surveyor/components/informasi.blade.php
@@ -115,6 +115,27 @@
@endforeach
@endif
+
+
+
+
+
@@ -75,7 +75,7 @@
|
|
| |