File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/resources/views/site/components/button.blade.php
@php
$buttonTagName = isset($isButton) && $isButton ? 'button' : 'a';
$buttonType = isset($buttonType) ? $buttonType . '-button' : 'button';
$useTargetBlank = isset($buttonLink) && \Str::startsWith($buttonLink, ['http://', 'https://']);
$useTargetBlank = isset($forceUseTargetBlank) && $forceUseTargetBlank;
$buttonInternalLink = isset($buttonLink) && \Str::startsWith($buttonLink, ['#']);
$buttonProperties = isset($buttonProperties) ? $buttonProperties : null;
@endphp
<{{ $buttonTagName }} class="c-{{$buttonType}} @modifiers('c-$buttonType') {{ $buttonClasses ?? '' }} @if($buttonInternalLink) js-scroll-to-target @endif" @if($buttonTagName === 'a') href="{{ $buttonLink ?? '#buttonLink' }}" @if($useTargetBlank) target="_blank" @endif @endif @if($buttonProperties) {{$buttonProperties}} @endif>
@if($buttonType != 'icon-button')
<span class="c-{{$buttonType}}__text">{{ $buttonText ?? 'buttonText' }}</span>
@endif
@if(isset($buttonIcon) && !empty($buttonIcon))
<i class="c-{{$buttonType}}__icon">
<svg width="{{ $buttonIconWidth ?? 7 }}" height="{{ $buttonIconHeight ?? 10 }}">
<use href="/img/icon-{{ $buttonIcon }}.svg#{{ $buttonIcon }}"></use>
</svg>
</i>
@endif
</{{ $buttonTagName }}>