@foreach($blocks ?? [] as $block)
@php($type = $block['type'] ?? 'rich_text')
@php($data = $block['data'] ?? $block)
@if($type === 'rich_text')
{!! $data['content'] ?? '' !!}
@elseif($type === 'callout')
@elseif($type === 'highlights') @foreach($data['items'] ?? [] as $item)
{{ $item['title'] ?? '' }}
{{ $item['text'] ?? '' }}
@endforeach
@elseif($type === 'accordion') @foreach($data['items'] ?? [] as $item)
{{ $item['title'] ?? '' }}
{!! $item['content'] ?? '' !!}
@endforeach
@elseif($type === 'table')
@elseif($type === 'image' && !empty($data['path']))
{{ $data['caption'] ?? '' }}
@endif
@endforeach