<?php if (erLhcoreClassUser::instance()->hasAccessTo('lhgroupchat','use')) : ?>
    <?php if (isset($archive)) : ?>
        <li role="presentation" class="nav-item" ><a id="private-chat-tab-link-<?php echo $chat->id?>" class="nav-link <?php if ($chatTabsOrderDefault == 'private_chat_tab') print ' active';?>" href="#private-chat-tab-<?php echo $chat->id?>" aria-controls="private-chat-tab-<?php echo $chat->id?>" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat','Private chat between operators')?>" role="tab" data-bs-toggle="tab"><i class="whatshot blink-ani d-none text-warning material-icons">whatshot</i><i class="material-icons me-0">group</i></a></li>
    <?php else : ?>
        <li role="presentation" class="nav-item" ><a data-unread="<?php isset($arg) && is_array($arg) && in_array('backgroundid',$arg) ? print 'true': print 'false'?>" id="private-chat-tab-link-<?php echo $chat->id?>" onclick="!$(this).attr('private-loaded') ? $(this).attr('private-loaded',true) && ee.emitEvent('privateChatStart', [<?php echo $chat->id?>]) : null;" class="nav-link <?php if ($chatTabsOrderDefault == 'private_chat_tab') print ' active';?>" href="#private-chat-tab-<?php echo $chat->id?>" aria-controls="private-chat-tab-<?php echo $chat->id?>" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat','Private chat between operators')?>" role="tab" data-bs-toggle="tab"><i class="whatshot blink-ani d-none text-warning material-icons">whatshot</i><i class="material-icons me-0">group</i></a></li>
    <?php endif;?>
<?php endif;?>