@php $locale = $locale ?? app()->getLocale(); // Field-name compatibility: pages built with the Classic theme can still // render through Golden views. Read the Golden field first, then fall // back to the Classic equivalent so existing data is honoured. $eyebrow = $data['eyebrow'][$locale] ?? $data['subheading'][$locale] ?? ''; $heading = $data['heading'][$locale] ?? ''; $description = $data['description'][$locale] ?? ''; $portrait = $data['portrait_image'] ?? $data['main_image'] ?? null; $buttonText = $data['button_text'][$locale] ?? ''; $buttonUrl = $data['button_url'] ?? '#'; $statValue = $data['stat_value'] ?? ''; $statLabel = $data['stat_label'][$locale] ?? ''; $statIcon = $data['stat_icon'] ?? 'fa-solid fa-users'; $renderedHeading = preg_replace_callback('/__(.+?)__/u', function ($m) { return ''.e($m[1]).''; }, e($heading)); @endphp
@if($portrait)
@else
@endif
@if($statValue)
{{ $statValue }}
{{ $statLabel }}
@endif
@if($eyebrow)
{{ $eyebrow }}
@endif @if($heading)

{!! $renderedHeading !!}

@endif @if($description)

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

@endif
@foreach($repeatedContents as $repeatedContent) @php $rc = $repeatedContent->content_data ?? []; // Honour Golden field names first, then fall back to Classic. $pillarIcon = $rc['pillar_icon_class'] ?? $rc['about_icon_class'] ?? 'fa-solid fa-shield-halved'; $pillarTitle = $rc['pillar_title'][$locale] ?? $rc['about_title'][$locale] ?? ''; $pillarText = $rc['pillar_text'][$locale] ?? $rc['about_text'][$locale] ?? ''; @endphp @if($pillarTitle || $pillarText)

{{ $pillarTitle }}

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

@endif @endforeach
@if($buttonText) {{ $buttonText }} @endif