@php $columns = $section['parameters']['columns'] ?? []; $backgroundColor = $section['parameters']['background_color'] ?? '#f8f9fa'; $count = count($columns); $colClass = ($count == 1) ? 'col-md-12' : 'col-md-6'; $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
@foreach($columns as $column)
@if(!empty($column['subtitle']))

{{ $column['subtitle'] }}

@endif @if(!empty($column['title']))

{{ $column['title'] }}

@endif
{!! $renderText($column['text'] ?? '') !!}
@endforeach