- |
+ |
| Nama Debitur |
@@ -1053,28 +1053,29 @@
@php
$fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
+ if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
+ unset($fotoTypes[$key]);
+ array_unshift($fotoTypes, 'foto_tempat');
+ }
@endphp
-
+
@if (isset($forminspeksi))
- @forelse ($fotoTypes as $type)
-
- @php
+ @forelse ($fotoTypes as $type)
+
+ @php
+ $imagePath = $forminspeksi[$type] ?? null;
+ @endphp
- $imagePath = storage_path('app/public/' . $forminspeksi[$type]);
- @endphp
-
- @if ($statusLpj || file_exists(storage_path('app/public/' . $imagePath)))
- 
- @endif
- {{ Str::title(str_replace('_', ' ', $type)) }}
-
-
- @empty
- Tidak ada tipe foto yang tersedia
- @endforelse
+ @if ($imagePath && file_exists(storage_path('app/public/' . $imagePath)))
+  }})
@endif
+ {{ Str::title(str_replace('_', ' ', $type)) }}
+ @empty
+ Tidak ada tipe foto yang tersedia
+ @endforelse
+ @endif
|
diff --git a/resources/views/penilai/components/print-out-standard.blade.php b/resources/views/penilai/components/print-out-standard.blade.php
index 356f3d7..ffd18e2 100644
--- a/resources/views/penilai/components/print-out-standard.blade.php
+++ b/resources/views/penilai/components/print-out-standard.blade.php
@@ -498,34 +498,47 @@
@php
-
- $cekHub =
- isset($forminspeksi['asset']['hub_cadeb']) &&
- $forminspeksi['asset']['hub_cadeb'] === 'sesuai'
- ? 'sesuai'
- : 'tidak sesuai';
-
+ $cekHub = isset($forminspeksi['asset']['hub_cadeb']) && $forminspeksi['asset']['hub_cadeb'] === 'sesuai'
+ ? 'sesuai'
+ : 'tidak sesuai';
+
$hubCadeb = isset($forminspeksi['asset']['hub_cadeb'][$cekHub])
- ? $forminspeksi['asset']['hub_cadeb']['tidak sesuai']
- : $forminspeksi['asset']['hub_cadeb']['sesuai'];
+ ? $forminspeksi['asset']['hub_cadeb'][$cekHub]
+ : null;
@endphp
- | Hubungan Pemilik Jaminan dengan Debitur |
+ Hubungan Pemilik Jaminan dengan Debitur |
@if (isset($basicData['hubCadeb']))
@endif
|
+
@php
@@ -823,68 +836,49 @@
@if (isset($basicData['spekKategoriBangunan']))
- @foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
-
- | {{ $spesifikasi->name }} |
-
-
- @if (isset($basicData['spekBangunan']))
- @foreach ($basicData['spekBangunan'] as $kategori)
- @if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
- @if ($loop->iteration % 3 == 1 && $loop->iteration > 1)
-
-
+ @foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
+
+ | {{ $spesifikasi->name }} |
+
+
- |
-
- @endforeach
- @endif
+
+
+ @endforeach
+@endif
+
-
- | Sarana Pelengkap |
-
- @if (isset($basicData['saranaPelengkap']))
-
- @endif
+
@if (isset($forminspeksi['bangunan']['sarana_pelengkap_input']))
@@ -899,7 +893,7 @@
|
- @elseif ($kategori === 'apartemen-kantor')
+ @elseif ($kategori === 'apartemen-kantor')
-
@@ -1425,45 +1417,10 @@
|
-
+
-
-
-
- PETA LOKASI
-
-
-
-
- @php
- $fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
- if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
- unset($fotoTypes[$key]);
- array_unshift($fotoTypes, 'foto_tempat');
- }
- @endphp
-
- @if (isset($forminspeksi))
- @forelse ($fotoTypes as $type)
-
- @php
- $imagePath = $forminspeksi[$type] ?? null;
- @endphp
-
- @if ($imagePath && file_exists(storage_path('app/public/' . $imagePath)))
-  }})
- @endif
- {{ Str::title(str_replace('_', ' ', $type)) }}
-
- @empty
- Tidak ada tipe foto yang tersedia
- @endforelse
- @endif
-
- |
-
-
+
|