@php $locale = $locale ?? app()->getLocale(); // Field-name compatibility (Classic → Golden fallbacks). $eyebrow = $data['eyebrow'][$locale] ?? $data['subheading'][$locale] ?? ''; $heading = $data['heading'][$locale] ?? $data['offer_title'][$locale] ?? ''; $description = $data['description'][$locale] ?? ''; $buttonText = $data['button_text'][$locale] ?? ''; $buttonUrl = $data['button_url'] ?? '#'; $renderedHeading = preg_replace_callback('/__(.+?)__/u', function ($m) { return ''.e($m[1]).''; }, e($heading)); @endphp
@if($eyebrow)
{{ $eyebrow }}
@endif @if($heading)

{!! $renderedHeading !!}

@endif @if($description)

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

@endif @if($buttonText) {{ $buttonText }} @endif
@foreach($repeatedContents as $repeatedContent) @php $rc = $repeatedContent->content_data ?? []; $num = $rc['counter_number'] ?? '0'; $prefix = $rc['counter_prefix'] ?? ''; $suffix = $rc['counter_suffix'] ?? ''; $dec = (int)(($rc['counter_decimals'] ?? 0)); @endphp
{!! $prefix !!}0
{{ $rc['counter_title'][$locale] ?? '' }}
@endforeach