@if($progress->total() === 0)
{{-- EMPTY STATE --}}
🏗️
Data progress pembangunan belum tersedia.
@else
{{-- PERIOD TABS --}}
@foreach($progress->items() as $i => $period)
@php $periodKey = str_replace([' ', '/'], '_', $period['period']); @endphp
@endforeach
{{-- PANELS --}}
@foreach($progress->items() as $i => $period)
@php
$periodKey = str_replace([' ', '/'], '_', $period['period']);
$photos = $period['images'];
@endphp
{{-- Period Label --}}
Periode
{{ $period['period'] }}
{{ count($photos) }} Foto
@if(count($photos) === 0)
Belum ada foto untuk periode ini.
@else
@foreach($photos as $idx => $imgPath)
@php
$imgUrl = (str_starts_with($imgPath, 'img/') || str_starts_with($imgPath, '/img/') || str_starts_with($imgPath, 'http') || str_starts_with($imgPath, 'storage/') || str_starts_with($imgPath, '/storage/'))
? $imgPath
: 'storage/' . $imgPath;
@endphp
Lihat Foto
@endforeach
@endif
@endforeach
{{-- PAGINATION --}}
@if($progress->lastPage() > 1)
@endif
@endif