@foreach([1, 2, 3, 4] as $i)
@php
$statValue = $page->{'completed_stat_'.$i.'_value'} ?? '';
$statLabel = $page->{'completed_stat_'.$i.'_label'} ?? '';
$isPercent = str_contains((string) $statLabel, 'Rate') || str_contains((string) $statValue, '%');
$countValue = rtrim((string) $statValue, '%');
@endphp
@if($statValue !== '' && $statLabel !== '')
{{ $countValue }}@if($isPercent || str_contains((string) $statLabel, 'Rate'))%@else+@endif
{{ $statLabel }}
@endif
@endforeach
{{ $page->completed_portfolio_kicker ?? 'PORTFOLIO' }}
{{ $page->completed_portfolio_title ?? 'Featured Completed Projects' }}
@forelse($projects as $project)
@php
$botm = 'botm'.((($loop->iteration - 1) % 3) + 1);
$showUrl = route('projects.completed.show', $project->slug);
@endphp
 ?: asset('assets/com-project.jpg') }})
@if($project->delivered_year)
{{ $project->delivered_year }}
@endif
{{ $project->title }}
{{ $project->location }}
@if($project->specs_line || $project->handover_note)
@if($project->specs_line)
{{ $project->specs_line }}
@endif
@if($project->handover_note)
{{ $project->handover_note }}
@endif
@endif
@if($project->testimonial || $project->rating_image)
@if($project->rating_image || $project->testimonial)
@endif
@if($project->testimonial)
{{ $project->testimonial }}
@endif
@endif
@empty
No completed projects listed yet.
@endforelse