@php $blockType = data_get($reduction, 'block_type.value'); $position = data_get($reduction, 'position.value'); $ctaUrl = data_get($reduction, 'cta_url.value'); $ctaLabel = data_get($reduction, 'cta_label.value'); $articleId = data_get($reduction, 'article_id.value'); $reductionNews = $articleId ? \App\Models\News::find($articleId) : null; $visibility = data_get($reduction, 'visibility.value', true); @endphp

{{ $title }}

{!! clean($text) !!}
@if ($visibility)
@include('fo.partials.block.reduction-card', [ 'news' => $reductionNews, 'ctaUrl' => $ctaUrl ?? null, 'ctaLabel' => $ctaLabel ?? null, 'position' => $position, 'blockType' => $blockType, ])
@endif