@php // What a record shows is found under the usual names: title or name, summary / story / quote / role, photo, url. $pick = fn (array $item, array $keys) => collect($keys)->map(fn ($key) => $item[$key] ?? null)->first(fn ($value) => is_string($value) && $value !== ''); @endphp
@if (($data['eyebrow'] ?? '') !== '')

{{ $data['eyebrow'] }}

@endif @if (($data['title'] ?? '') !== '')

{{ $data['title'] }}

@endif
@foreach ($items as $item) @php($url = $pick($item, ['url', 'link']))
@if ($photo = $pick($item, ['photo', 'picture', 'image']))@endif

@if ($url){{ $pick($item, ['title', 'name', 'label']) }}@else{{ $pick($item, ['title', 'name', 'label']) }}@endif

@if ($text = $pick($item, ['summary', 'story', 'quote', 'intro', 'role']))

{{ $text }}

@endif
@endforeach
@if (($data['button_label'] ?? '') !== '') @include('manager::blocks.partials.buttons', ['buttons' => [['label' => $data['button_label'], 'url' => $data['button_url'] ?? '', 'style' => 'secondary']]]) @endif