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

{!! $renderedHeading !!}

@endif
@foreach($repeatedContents as $repeatedContent) @php $rc = $repeatedContent->content_data ?? []; $photo = !empty($rc['team_image']) ? asset($rc['team_image']) : ''; $linkedin = $rc['linkedin_url'] ?? null; $twitter = $rc['twitter_url'] ?? null; $facebook = $rc['facebook_url'] ?? null; $email = $rc['email'] ?? null; @endphp

{{ $rc['name'][$locale] ?? '' }}

{{ $rc['designation'][$locale] ?? '' }}
@if($linkedin)@endif @if($twitter)@endif @if($facebook)@endif @if($email)@endif
@endforeach