2025-09-02 16:48:56 +02:00
|
|
|
@php
|
|
|
|
|
$type = isset($type) && $type ? $type : "link";
|
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
|
|
@if($type === "link")
|
2025-11-21 17:45:37 +01:00
|
|
|
<a class="{{ isset($class) ? $class : 'engagements__btn'}} btn"
|
|
|
|
|
href="{{ $url }}"
|
|
|
|
|
title="{{ $title }}"
|
|
|
|
|
@if(isset($target)) target="{{ $target }}" @endif
|
|
|
|
|
@if(isset($download) and $download) download @endif
|
|
|
|
|
>
|
|
|
|
|
{!! $title !!}
|
|
|
|
|
<i class="btn__icon {{ $buttonIcon }}"></i>
|
|
|
|
|
</a>
|
2025-09-02 16:48:56 +02:00
|
|
|
@else
|
2025-11-21 17:45:37 +01:00
|
|
|
<button class="{{ isset($class) ? $class : 'engagements__btn'}} btn"
|
|
|
|
|
title="{{ $title }}" data-target="{{ isset($dataTarget) ? $dataTarget : ''}}"
|
|
|
|
|
>
|
|
|
|
|
{!! $title !!}
|
|
|
|
|
<i class="btn__icon {{ $buttonIcon }}"></i>
|
|
|
|
|
</button>
|
2025-09-02 16:48:56 +02:00
|
|
|
@endif
|