155 lines
5.8 KiB
PHP
155 lines
5.8 KiB
PHP
<div>
|
|
@if (isset($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi']))
|
|
@foreach ($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi'][0] as $index => $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name'] . ' ' . $loop->index + 1 }}
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $item['path']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_rute_lainnya']))
|
|
@foreach ($formFoto['foto_rute_lainnya'] as $index => $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name_rute_lainnya'] }}
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $item['foto_rute_lainnya']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_rute_lainnya'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $item['foto_rute_lainnya'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
|
|
@if (!empty($formFoto['object_jaminan']))
|
|
@foreach ($formFoto['object_jaminan'] as $item)
|
|
@php
|
|
$nameObjek = trim($item['name_objek'] ?? '');
|
|
$fotoObjek = trim($item['foto_objek'] ?? '');
|
|
$imagePath = storage_path('app/public/' . $fotoObjek);
|
|
@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 || (!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']))
|
|
@foreach ($formFoto['foto_lantai_unit'] as $index => $floorPhotos)
|
|
@foreach ($floorPhotos as $index => $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name'] ?? 'Foto Lantai ' . $floorNumber . ' - ' . ($index + 1) }}
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $item['path']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endforeach
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_lingkungan']['foto_lingkungan']))
|
|
@foreach ($formFoto['foto_lingkungan']['foto_lingkungan'][0] as $index => $item)
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
{{ $item['name'] . ' ' . $loop->index + 1 }}
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $item['path']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_basement']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Basement
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $formFoto['foto_basement']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_basement'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_basement'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endif
|
|
|
|
@if (isset($formFoto['foto_gerbang']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Gerbang
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $formFoto['foto_gerbang']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_gerbang'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_gerbang'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endif
|
|
|
|
@if (isset($formFoto['pendamping']))
|
|
<div class="border photo-item">
|
|
<h2 class="text-gray-600 font-semibold text-xl">
|
|
Pendamping
|
|
</h2>
|
|
|
|
@php
|
|
$imagePath = storage_path('app/public/' . $formFoto['pendamping']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['pendamping'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $formFoto['pendamping'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|