<!-- resources/views/components/sidebar/sublink.blade.php -->

<a href="{{ $href ?? '#' }}" class="flex items-center px-6 py-2 mt-4 text-gray-700 rounded mx-2 {{ $active ?? '' }}">
    <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="{{ $icon ?? '' }}" />
    </svg>
    <span class="mx-3">{{ $slot }}</span>
</a>
