@php $steps = $section['parameters']['steps'] ?? []; $title = $section['parameters']['title'] ?? 'Como Participar'; $subtitle = $section['parameters']['subtitle'] ?? ''; $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($steps as $index => $step)
@if(!empty($step['image_url'])) {{ $step['image_alt'] ?? @else @endif

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

{!! $renderText($step['description'] ?? '') !!}
@if(!$loop->last) @endif
@endforeach