@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
@if (isset($picto) && !empty($picto)) {{ $picto_alt }} @endif
@if (isset($video_id) && !empty($video_id) && \App\Rules\IsValidVimeoId::validates($video_id)) @elseif (isset($video_id) && !empty($video_id) && \App\Rules\IsValidYoutubeId::validates($video_id)) @elseif (isset($picture) && !empty($picture)) {{ $picture_alt }} @endif
@if (isset($card_title) && !empty($card_title))
{{ $card_picto_alt }}

{{ $card_sustitle }}

{{ $card_title }}

{{ $card_subtitle }}

{{ $card_text }}

@endif

{{ $title }}

{!! $text !!}

@foreach ($collection as $item)
{{ $item->picture_alt }}
@if (isset($item->sustitle) && !empty($item->sustitle))

{{ $item->sustitle }}

@endif

{{ $item->title }}

@if (isset($item->description) && !empty($item->description))

{{ $item->description }}

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