@if (isset($formFoto['rute_menuju_lokasi'])) @foreach ($formFoto['rute_menuju_lokasi'] as $item)

{{ $item['name_rute'] . ' ' . $loop->index + 1 }}

@php $imagePath = $statusLpj ? asset('storage/' . $item['foto_rute']) : storage_path('app/public/' . $item['foto_rute']); @endphp @if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_rute']))) {{ $item['foto_rute'] }} @endif
@endforeach @endif @if (isset($formFoto['object_jaminan'])) @foreach ($formFoto['object_jaminan'] as $item)

{{ $item['name_objek'] }}

@php $imagePath = $statusLpj ? asset('storage/' . $item['foto_objek']) : storage_path('app/public/' . $item['foto_objek']); @endphp @if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_objek']))) {{ $item['foto_objek'] }} @endif
@endforeach @endif @if (isset($formFoto['foto_basement']))

Basement

@php $imagePath = $statusLpj ? asset('storage/' . $formFoto['foto_basement']) : storage_path('app/public/' . $formFoto['foto_basement']); @endphp @if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_basement']))) {{ $formFoto['foto_basement'] }} @endif
@endif @if (isset($formFoto['foto_gerbang']))

Gerbang

@php $imagePath = $statusLpj ? asset('storage/' . $formFoto['foto_gerbang']) : storage_path('app/public/' . $formFoto['foto_gerbang']); @endphp @if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_gerbang']))) {{ $formFoto['foto_gerbang'] }} @endif
@endif @if (isset($formFoto['pendamping']))

Pendamping

@php $imagePath = $statusLpj ? asset('storage/' . $formFoto['pendamping']) : storage_path('app/public/' . $formFoto['pendamping']); @endphp @if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['pendamping']))) {{ $formFoto['pendamping'] }} @endif
@endif