fix: 🐛 images not displaying and error triggered when a button was missing from the config

This commit is contained in:
Corentin Huet 2025-12-10 09:43:06 +01:00 • committed by K Muller
parent 9fb35de40c
commit 9bdab89777

View file

@ -30,7 +30,7 @@
'bottom' => true,
],
]" />
<img src="{{ $block['image_block'] }}" alt="{{ $block['string_alt'] }}">
<img src="{{ asset($block['image_block']) }}" alt="{{ $block['string_alt'] }}">
</div>
</div>
<div class="textblock__info textblock__block">
@ -44,13 +44,15 @@
@endforeach
</div>
</div>
<x-front.sections.accordeon.accordeon :accordion='$job["list_accordion"]' />
<div class="videos__btn-wrap">
<x-front.cta title="{{ $job['list_cta'][0]['string_text'] }}" class="videos__btn"
target="_blank"
url="{{ $job['list_cta'][0]['url_link'] }}"
buttonIcon="btn__icon_arrow-right" />
</div>
<x-front.sections.accordion.accordion :accordion='$job["list_accordion"]' />
@if (!empty($job['list_cta']))
<div class="videos__btn-wrap">
<x-front.cta title="{{ $job['list_cta'][0]['string_text'] }}" class="videos__btn"
target="_blank"
url="{{ $job['list_cta'][0]['url_link'] }}"
buttonIcon="btn__icon_arrow-right" />
</div>
@endif
</div>
</div>
@endforeach