Merge remote-tracking branch 'composer/feature/senior-officer' into staging

This commit is contained in:
Daeng Deni Mardaeni
2024-12-31 17:14:43 +07:00

View File

@@ -7,7 +7,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $item['path']);
$imagePath = storage_path('app/public/' . $item['path']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
@@ -25,7 +25,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $item['foto_rute_lainnya']);
$imagePath = storage_path('app/public/' . $item['foto_rute_lainnya']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_rute_lainnya'])))
@@ -36,26 +36,37 @@
@endif
@if (isset($formFoto['object_jaminan']))
@if (!empty($formFoto['object_jaminan']))
@foreach ($formFoto['object_jaminan'] as $item)
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $item['name_objek'] }}
</h2>
@php
$nameObjek = trim($item['name_objek'] ?? '');
$fotoObjek = trim($item['foto_objek'] ?? '');
$imagePath = storage_path('app/public/' . $fotoObjek);
@endphp
@php
$imagePath = storage_path('app/public/' . $item['foto_objek']);
@endphp
@if (!empty($nameObjek) || !empty($fotoObjek))
<div class="border photo-item">
@if (!empty($nameObjek))
<h2 class="text-gray-600 font-semibold text-xl">
{{ $nameObjek }}
</h2>
@endif
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_objek'])))
<img src="{{ $imagePath }}" alt="{{ $item['foto_objek'] }}" class="photo-image">
@endif
</div>
@if ($statusLpj || (!empty($fotoObjek) && file_exists($imagePath)))
<img src="{{ $imagePath }}" alt="{{ $nameObjek ?: 'Objek Foto' }}" class="photo-image">
@else
<p class="text-gray-500 italic">Foto tidak tersedia</p>
@endif
</div>
@endif
@endforeach
@else
<p class="text-gray-500 text-center italic">Tidak ada objek jaminan yang ditemukan</p>
@endif
@if (isset($formFoto['foto_lantai_unit'] ))
@if (isset($formFoto['foto_lantai_unit']))
@foreach ($formFoto['foto_lantai_unit'] as $index => $floorPhotos)
@foreach ($floorPhotos as $index => $item)
<div class="border photo-item">
@@ -64,7 +75,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $item['path']);
$imagePath = storage_path('app/public/' . $item['path']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
@@ -83,7 +94,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $item['path']);
$imagePath = storage_path('app/public/' . $item['path']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
@@ -100,7 +111,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $formFoto['foto_basement']);
$imagePath = storage_path('app/public/' . $formFoto['foto_basement']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_basement'])))
@@ -116,7 +127,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $formFoto['foto_gerbang']);
$imagePath = storage_path('app/public/' . $formFoto['foto_gerbang']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_gerbang'])))
@@ -132,7 +143,7 @@
</h2>
@php
$imagePath = storage_path('app/public/' . $formFoto['pendamping']);
$imagePath = storage_path('app/public/' . $formFoto['pendamping']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['pendamping'])))