@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')
@foreach($data['headers'] ?? [] as $header)@endforeach@foreach($data['rows'] ?? [] as $row)@foreach($row as $cell)@endforeach@endforeach
{{ $header }}
{{ $cell }}
@elseif($type === 'image' && !empty($data['path']))
{{ $data['alt'] ?? '' }}
{{ $data['caption'] ?? '' }}
@endif @endforeach