@extends('frontend.layouts.app') @section('title', $page->completed_seo_title ?? ($setting->seo_title ?? 'Ramkamal Developers')) @section('meta-title', $page->completed_seo_title ?? ($setting->seo_title ?? 'Ramkamal Developers')) @section('meta-description', $page->completed_seo_description ?? ($setting->seo_description ?? '')) @php $cmsAsset = function (string $key, string $fallback = '') use ($content) { $path = (string) ($content[$key] ?? $fallback); return asset_image($path) ?: asset($fallback); }; @endphp @section('content')
@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
{{ $project->title }} @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)
rating
@endif @if($project->testimonial)

{{ $project->testimonial }}

@endif
@endif
@empty

No completed projects listed yet.

@endforelse
{{ $page->completed_stayinform_kicker ?? 'INVEST WITH CONFIDENCE' }}

{{ $page->completed_stayinform_title ?? 'Our Track Record Speaks for Itself' }}

{{ $page->completed_stayinform_description ?? '' }}

@endsection @push('scripts') @endpush