@php $model = isset($model) ? $model : ''; $id = isset($id) ? $id : ''; $slug = isset($slug) ? $slug : ''; $record = null; $moduleLabel = strtoupper((string) $model); $title = 'Conteúdo relacionado'; $summary = ''; $href = '#'; try { $record = \Illuminate\Support\Facades\DB::table('v2_public_search_index') ->where('entity_id', (string) $id) ->whereRaw('LOWER(module) = ?', [mb_strtolower((string) $model)]) ->first(); if ($record) { $title = $record->title ?: $title; $summary = $record->summary_fragment ?: ''; $moduleLabel = strtoupper((string) $record->module); $slug = $record->slug ?: $slug; $href = \V2\Services\ContentRichEditor\Parser\Nodes\ContentRichLinkRenderer::urlFor($model, $slug, $id); } } catch (\Exception $e) { \Log::warning('[ContentRichEditor] Falha ao carregar iframe-summary', ['error' => $e->getMessage()]); } @endphp
{{ $moduleLabel }}

{{ $title }}

@if($summary)

{{ \Illuminate\Support\Str::limit($summary, 180) }}

@endif Acessar conteúdo