<div>
    @can('view tickets')
        @auth
            <flux:navlist.item
                icon="chat-bubble-left-right"
                :current="request()->routeIs('view_tickets')"
                :href="route('view_tickets')"
                badge="{{ $openTicketsCount > 0 ? $openTicketsCount : '' }}"
                badge-color="{{ $this->badgeColor }}"
                wire:navigate>
                {{ __('Tickets') }}
            </flux:navlist.item>
        @else
            <flux:navlist.item icon="chat-bubble-left-right" :current="request()->routeIs('view_tickets')" :href="route('view_tickets')" wire:navigate>
                {{ __('Tickets') }}
            </flux:navlist.item>
        @endauth
    @endcan
</div>
