@php $tag = $attributes['type'] && $attributes['type'] == 'link' ? 'a' : 'button'; $classes = 'button font-semibold py-2 text-left text-sm transition '; $classes .= $attributes['color'] ? $attributes['color'] : 'text-blue-500'; $classes .= $attributes['hoverColor'] ? ' hover:' . $attributes['hoverColor'] : ' hover:text-blue-600'; @endphp <{{ $tag }} {{ $attributes->merge(['class' => $classes]) }}> {{ $attributes['label'] ?? trans('Button label') }}