File: D:/HostingSpaces/SBogers54/csbinstallatietechniek.nl/resources/views/components/button.blade.php
@php
$buttonType = isset($type) ? $type . '-button' : 'button';
$tagName = isset($isButton) && $isButton ? 'button' : 'a';
$externalLink = isset($buttonLink) && \Str::startsWith($buttonLink, ['http://', 'https://']);
@endphp
<{{ $tagName }} class="c-{{$buttonType}} @modifiers('c-$buttonType') {{ $buttonClasses ?? '' }}" @if($tagName === 'a') href="{{ $buttonLink ?? '#buttonLink' }}" @if($externalLink) target="_blank" @endif @endif>
<span class="c-{{$buttonType}}__text">{{ $buttonText ?? 'buttonText' }}</span>
<i class="c-{{$buttonType}}__icon">@include('components.icons.arrowheadRight')</i>
</{{ $tagName }}>