@props([ 'icon' => null, 'label' => null, 'route' => null, 'url' => null, 'href' => null, 'click' => null, ]) @php if ($route) $href = route($route); else if ($url) $href = url($url); $attributes = $attributes->class([ 'nav-link', 'active' => $href == Request::url(), ])->merge([ 'href' => $href, 'wire:click.prevent' => $click, ]); @endphp {{ $label ?? $slot }}