@if (isset($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi']))

Rute Menuju Lokasi

@if (isset($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi'])) @foreach ($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi'][0] as $index => $item)

{{ $item['name'] ?? 'Rute menuju lokasi - ' . ($index + 1) }}

Gambar {{ $index + 1 }}
@endforeach @endif
@endif @if (isset($formFoto['foto_rute_lainnya']))

Rute Lainnya

@if (isset($formFoto['foto_rute_lainnya'])) @foreach ($formFoto['foto_rute_lainnya'] as $index => $item)

{{ $item['name_rute_lainnya'] ?? 'Rute Lainnya - ' . ($index + 1) }}

Gambar {{ $index + 1 }}
@endforeach @endif
@endif @if (isset($formFoto['foto_gerbang']))

Gerbang

Gerbang

@endif @if (isset($formFoto['foto_lingkungan']['foto_lingkungan']))

Lingkungan

@if (isset($formFoto['foto_lingkungan']['foto_lingkungan'])) @foreach ($formFoto['foto_lingkungan']['foto_lingkungan'][0] as $index => $item)

{{ $item['name'] ?? 'Lingkungan - ' . ($index + 1) }}

Gambar {{ $index + 1 }}
@endforeach @endif
@endif @if (isset($formFoto['object_jaminan']))

Object Jaminan

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

{{ $item['name_objek'] ?? "" }}

@endforeach @endif
@endif @if (isset($formFoto['foto_lantai_unit']))

Lantai

@if (isset($formFoto['foto_lantai_unit'])) @foreach ($formFoto['foto_lantai_unit'] as $floorIndex => $floorPhotos)
@foreach ($floorPhotos as $index => $item) @if (is_int($index) && isset($item['name'], $item['path']) && is_string($item['path']))

{{ $item['name'] ?? 'Foto Lantai ' . ($floorIndex + 1) . ' - ' . ($index + 1) }}

Gambar {{ $floorIndex + 1 }}-{{ $index + 1 }}
@endif @endforeach
@endforeach @endif
@endif @if (isset($formFoto['foto_basement']))

Basement

Basemnt

@endif @if (isset($formFoto['foto_lantai_lainnya']))

Lantai Lainnya

@if (isset($formFoto['foto_lantai_lainnya'])) @foreach ($formFoto['foto_lantai_lainnya'] as $index => $item)

{{ $item['name_lantai_lainnya'] ?? 'Lantai - ' . ($index + 1) }}

Gambar {{ $index + 1 }}
@endforeach @endif
@endif @if (isset($formFoto['pendamping']))

Pendamping

Pendamping

@endif @php $fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat']; if (($key = array_search('foto_tempat', $fotoTypes)) !== false) { unset($fotoTypes[$key]); array_unshift($fotoTypes, 'foto_tempat'); } $adaFoto = false; if (isset($forminspeksi)) { foreach ($fotoTypes as $type) { $imagePath = $forminspeksi[$type] ?? null; if ($imagePath && file_exists(storage_path('app/public/' . $imagePath))) { $adaFoto = true; break; } } } @endphp @if ($adaFoto)

Peta

@if (isset($forminspeksi)) @forelse ($fotoTypes as $type)
@php $imagePath = $forminspeksi[$type] ?? null; @endphp @if ($imagePath && file_exists(storage_path('app/public/' . $imagePath))) {{ $type }} @endif

{{ Str::title(str_replace('_', ' ', $type)) }}

@empty

Tidak ada tipe foto yang tersedia

@endforelse @endif
@endif