36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
@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
|
|
<section id="commitments-duo-title-text" class="position-relative">
|
|
<div class="line-border-large bg-{{ $background_color }} pb-5">
|
|
<div
|
|
class="container d-flex flex-column flex-md-row justify-content-center justify-content-evenly align-items-start pt-5 pb-4">
|
|
<div class="row justify-content-evenly align-items-start">
|
|
<div class="col-12 col-md-6 pe-5">
|
|
<h2 class="m-md-0 pe-md-5">{{ $title }}</h2>
|
|
</div>
|
|
<div class="col-12 col-md-6">
|
|
<p class="card-text">{!! $text !!}</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
@if ($visibility)
|
|
<div class="container">
|
|
@include('fo.partials.block.reduction-card', [
|
|
'news' => $reductionNews,
|
|
'ctaUrl' => $ctaUrl ?? null,
|
|
'ctaLabel' => $ctaLabel ?? null,
|
|
'position' => $position,
|
|
'blockType' => $blockType,
|
|
])
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</section>
|