@php $reduction ??= null; $blockType = $reduction?->block_type->value; $position = $reduction?->position->value; $ctaUrl = $reduction?->cta_url->value ?? null; $ctaLabel = $reduction?->cta_label->value ?? null; $articleId = $reduction?->article_id->value ?? null; $reductionNews = $articleId ? \App\Models\News::find($articleId) : null; $visibility = $reduction?->visibility->value ?? false; @endphp
{!! clean($text) !!}
@if ($visibility)
@include('fo.partials.block.reduction-card', [ 'news' => $reductionNews, 'ctaUrl' => $ctaUrl ?? null, 'ctaLabel' => $ctaLabel ?? null, 'position' => $position, 'blockType' => $blockType, ])
@endif