144 lines
5.3 KiB
PHP
144 lines
5.3 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 (isset($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
|
|
$imagePath = storage_path('app/public/' . $item['foto_objek']);
|
|
@endphp
|
|
|
|
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_objek'])))
|
|
<img src="{{ $imagePath }}" alt="{{ $item['foto_objek'] }}" class="photo-image">
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@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>
|