@php $tag = $attributes['type'] && $attributes['type'] == 'link' ? 'a' : 'button'; @endphp <{{ $tag }} {{ $attributes->merge(['class' => 'button bg-primary text-white rounded-lg py-3 px-4 md:py-2 md:px-16 hover:bg-darkprimary text-center font-semibold transition']) }}> {{ $attributes['label'] ?? trans('Button label') }}