@php $title = $data['title'] ?? ''; $subtitle = $data['subtitle'] ?? ''; $text = $data['text'] ?? ''; $buttonText = $data['button_text'] ?? ''; $buttonLink = $data['button_link'] ?? ''; $items = $data['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(!empty($subtitle)) {{ $subtitle }} @endif {{ $title }} {!! $renderText($text) !!} @if(!empty($buttonText) && !empty($buttonLink)) {{ $buttonText }} @endif @if(count($items) > 3) @endif @foreach($items as $item) @if(($item['symbol_type'] ?? 'icon') == 'icon') @elseif(!empty($item['image_url'])) @endif {{ $item['title'] }} @endforeach @section('other-scripts') @append
{{ $buttonText }}