@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 @section('other-scripts') @append