Informasi Dinas Tata Ruang

@php $fotoTypes = [ 'upload_gs', 'foto_sentuh_tanahku', 'foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat', ]; $customLabels = [ 'upload_gs' => 'Gambar Situasi', 'foto_sentuh_tanahku' => 'Sentuh Tanahku', 'foto_gistaru' => 'Gistaru', 'foto_bhumi' => 'Bhumi', 'foto_argis_region' => 'Blad Tata Ruang ', 'foto_tempat' => 'Peta Lokasi', ]; // Memindahkan foto_tempat ke depan jika ada if (($key = array_search('upload_gs', $fotoTypes)) !== false) { unset($fotoTypes[$key]); array_unshift($fotoTypes, 'upload_gs'); } // Filter fotoTypes untuk memastikan hanya yang memiliki imagePath valid $validPhotoTypes = array_filter($fotoTypes, function ($type) use ($forminspeksi) { return isset($forminspeksi[$type]) && !empty($forminspeksi[$type]) && is_string($forminspeksi[$type]); }); @endphp @foreach ($validPhotoTypes as $type) @php $imagePath = $forminspeksi[$type] ?? null; $imageUrl = is_string($imagePath) ? asset('storage/' . $imagePath) : null; @endphp @if ($imagePath && file_exists(storage_path('app/public/' . $imagePath))) @endif @endforeach
Informasi Dinas Tata Ruang : @php $informasi = [ 'peruntukan', 'kdb', 'kdh', 'gsb', 'max_lantai', 'klb', 'gss', 'pelebaran_jalan', 'nama_petugas', ]; @endphp @foreach ($informasi as $key) @if (isset($forminspeksi['fakta'][$key]) && $forminspeksi['fakta'][$key] !== '-') @php $displayKey = ucfirst(str_replace('_', ' ', $key)); if (strlen($key) == 3) { $displayKey = strtoupper($key); } @endphp

- {{ $displayKey }}: {{ $forminspeksi['fakta'][$key] }}

@endif @endforeach
{{ $customLabels[$type] ?? '' }} {{ $imageUrl }}
Catatan yang Perlu Diperhatikan : @foreach ($forminspeksi['fakta']['keterangan'] ?? [] as $informasi)

{!! nl2br(e($informasi)) !!}

@endforeach