@props(['active'])

@php
$classes = ($active ?? false)
            ? 'block w-full border-l-4 border-blue-500 bg-blue-50 py-2 pe-4 ps-3 text-start text-base font-medium text-blue-700 transition duration-150 ease-in-out focus:border-blue-700 focus:bg-blue-100 focus:text-blue-800 focus:outline-none dark:bg-blue-950/40 dark:text-blue-200 dark:focus:bg-blue-950/60'
            : 'block w-full border-l-4 border-transparent py-2 pe-4 ps-3 text-start text-base font-medium text-slate-600 transition duration-150 ease-in-out hover:border-blue-200 hover:bg-blue-50 hover:text-blue-700 focus:border-blue-300 focus:bg-blue-50 focus:text-blue-700 focus:outline-none dark:text-slate-300 dark:hover:border-blue-800 dark:hover:bg-blue-950/40 dark:hover:text-blue-200 dark:focus:bg-blue-950/40';
@endphp

<a {{ $attributes->merge(['class' => $classes]) }}>
    {{ $slot }}
</a>
