{{-- resources/views/components/sidebar-link.blade.php Usage: …svg… Dashboard --}} @props(['active' => false]) @php $base = 'flex items-center gap-3 px-3 py-2 rounded-lg text-[13.5px] font-medium transition-colors'; $classes = $active ? $base . ' bg-indigo-50 text-indigo-700' : $base . ' text-gray-600 hover:bg-gray-50 hover:text-gray-900'; @endphp merge(['class' => $classes]) }}> @isset($icon) {{ $icon }} @endisset {{ $slot }}