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