@php $headline = $content['headline'] ?? ''; // Prefer the dedicated `testimonials` key (new distinct state path); // fall back to the legacy shared `items` key for sections saved // before the repeater-collision fix / not yet data-migrated. $items = $content['testimonials'] ?? $content['items'] ?? []; @endphp
@if($headline)

{{ $headline }}

@endif
@foreach($items as $item)
@for($i = 0; $i < 5; $i++) @endfor
“{{ $item['quote'] ?? '' }}”
@if(! empty($item['avatar_url'])) {{-- data-hide-on-error consumed by public/js/views/shared/hide-on-error.js (declarative replacement for inline onerror= handler). --}} @else
{{ strtoupper(mb_substr($item['author'] ?? '?', 0, 1)) }}
@endif
{{ $item['author'] ?? '' }}
@if(! empty($item['role']))
{{ $item['role'] }}
@endif
@endforeach