@php $style = $data['style'] ?? 'related'; $items = array_values(array_filter($data['items'] ?? [], fn ($i) => filled($i['title'] ?? null))); $action = ($data['action_text'] ?? '') ?: 'Learn more →'; $linkUrl = filled($data['link_text'] ?? null) ? $href($data['link_url'] ?? null, '#') : null; @endphp @if(count($items) || $preview)
@include('builder.partials.head', ['centered' => false, 'linkUrl' => $linkUrl, 'linkText' => $data['link_text'] ?? null]) @if(! count($items))

Add items to show related cards.

@elseif($style === 'chips') @elseif($style === 'related') @else
$style === 'cards'])> @foreach($items as $item) $style === 'stories'])> @if(filled($item['label'] ?? null))

{{ $item['label'] }}

@endif

{{ $item['title'] }}

@if(filled($item['text'] ?? null))

{{ $item['text'] }}

@endif {{ $action }}
@endforeach
@endif
@endif