@props(['active', 'icon']) @php $classes = ($active ?? false) ? 'flex items-center gap-3 px-4 py-2.5 rounded-xl bg-sidebar-active text-white font-medium transition-all duration-200' : 'flex items-center gap-3 px-4 py-2.5 rounded-xl text-sidebar-text hover:bg-sidebar-hover hover:text-white transition-all duration-200 group'; $iconSvg = match($icon) { 'home' => '', 'office-building' => '', 'door-open' => '', 'users' => '', 'document-text' => '', 'cash' => '', 'chat-alt' => '', 'chart-pie' => '', 'cog' => '', 'check-circle' => '', 'bell' => '', default => '' }; @endphp merge(['class' => $classes]) }}> {!! $iconSvg !!} {{ $slot }}