@props([ 'href' => null, 'disabled' => false, 'leftClass' => 'w-11 h-11 rounded-[14px] bg-secondary flex items-center justify-center shrink-0', 'right' => null, 'showChevron' => true, ]) @php $tag = ($href && ! $disabled) ? 'a' : 'button'; $base = 'w-full apple-card flex flex-row items-center gap-3.5 px-4 py-[14px] text-left active:scale-[0.98] transition-transform duration-150'; $attrs = $attributes->merge(['class' => $base]); @endphp @if ($tag === 'a')
{{ $left }}
{{ $slot }}
@if ($showChevron) @endif
@if (isset($right))
{{ $right }}
@endif
@else @endif