@php $title = $section['parameters']['title'] ?? ''; $subtitle = $section['parameters']['subtitle'] ?? ''; $backgroundImageUrl = $section['parameters']['background_image_url'] ?? asset('layouts/lotep/images/Untitled-16.png'); $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 @if($title) {{ $title }} @endif @endif @foreach($items as $item) {{ $item['title'] ?? '' }} {!! $renderText($item['text'] ?? '') !!} @endforeach @section('other-scripts') @append
{{ $subtitle }}