@php $title = $section['parameters']['title'] ?? ''; $subtitle = $section['parameters']['subtitle'] ?? ''; $items = $section['parameters']['items'] ?? []; $renderText = function($text) { if (is_string($text) && (strpos($text, '{"type"') === 0 || strpos($text, '{"content"') === 0)) { return app(\V2\Services\ContentRichEditor\Services\ContentRichEditorRendererService::class)->toHtml($text); } return $text; }; @endphp
@if($title || $subtitle)
@if($subtitle)

{{ $subtitle }}

@endif

{{ $title }}

@endif
@foreach($items as $item)
@if(!empty($item['image_url'])) {{ $item['image_alt'] ?? @else @endif

{{ $item['title'] ?? '' }}

{!! $renderText($item['description'] ?? '') !!}
@if(!empty($item['button_title']) && !empty($item['button_link'])) @endif
@endforeach