<div>
    @can('view assigned tickets')
        @auth
            <flux:navlist.item
                icon="bookmark-square"
                :current="request()->routeIs('assigned_tickets')"
                :href="route('assigned_tickets')"
                badge="{{ $assignedTicketsCount > 0 ? $assignedTicketsCount : '' }}"
                badge-color="{{ $this->badgeColor }}"
                wire:navigate>
                {{ __('Tickets') }}
            </flux:navlist.item>
        @else
            <flux:navlist.item icon="bookmark-square" :current="request()->routeIs('assigned_tickets')" :href="route('assigned_tickets')" wire:navigate>
                {{ __('Tickets') }}
            </flux:navlist.item>
        @endauth
    @endcan
</div>
