feat: ✨ add button to download a file on commitments > ethics section

This commit is contained in:
Noah Lancien 2026-04-24 10:12:21 +02:00
parent 76bb92dbcc
commit e5670b1660

View file

@ -24,10 +24,16 @@
'image' => [
['url' => $item['image_visual']]
],
'button' => !empty($item['list_button']) ? [
'url' => \App\Models\Document::getAccessModel($item['list_button'][0]['model_document']),
'target' => '_blank',
'title' => $item['list_button'][0]['string_label'],
] : null,
'button_icon' => !empty($item['list_button']) ? 'btn__icon_dl' : null
];
})->toArray();
@endphp
<x-front.text-block
<x-front.text-block
:textBlock="[
'bg' => '0',
'title' => $business['string_title'],