<ul class="nav">
<li class="nav-item<?php if ($page == '') echo ' active';?>"><a href="<?php echo BASE_URL_ADMIN;?>" class="nav-link"><i class="material-icons">dashboard</i><p><?php echo $jkl['m'];?></p></a></li>
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'support') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('support');?>" class="nav-link"><i class="material-icons">healing</i><p><?php echo $jkl["hd"];?></p></a></li>
<?php } if (jak_get_access("leads", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'leads') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('leads');?>" class="nav-link"><i class="material-icons">sms</i><p><?php echo $jkl["m1"];?></p></a></li>
<?php } if (jak_get_access("off_all", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'contacts') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('contacts');?>" class="nav-link"><i class="material-icons">insert_comment</i><p><?php echo $jkl["m22"];?></p></a></li>
<?php } ?>
<li class="nav-item">
  <a class="nav-link" data-toggle="collapse" href="#contentSection">
      <i class="material-icons">ballot</i>
        <p> <?php echo $jkl['m32'];?>
          <b class="caret"></b>
        </p>
    </a>
<div class="collapse<?php if (in_array($page, array('blog', 'faq', 'answers'))) echo ' show';?>" id="contentSection">
  <ul class="nav">
  <?php if (jak_get_access("blog", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
  <li class="nav-item<?php if ($page == 'blog') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('blog');?>" class="nav-link"><i class="material-icons">description</i><p><?php echo $jkl["hd13"];?></p></a></li>
  <?php } if (jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
  <li class="nav-item<?php if ($page == 'faq') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('faq');?>" class="nav-link"><i class="material-icons">help</i><p><?php echo $jkl["hd1"];?></p></a></li>
  <?php } if (jak_get_access("answers", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
  <li class="nav-item<?php if ($page == 'answers' && $page1 == 'cms') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms');?>" class="nav-link"><i class="material-icons">article</i><p><?php echo $jkl["hd126"];?></p></a></li>
  <li class="nav-item<?php if ($page == 'answers' && $page1 != 'cms') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('answers');?>" class="nav-link"><i class="material-icons">assignment</i><p><?php echo $jkl["m20"];?></p></a></li>
  <?php } ?>
  </ul>
</div>
</li>
<li class="nav-item">
  <a class="nav-link" data-toggle="collapse" href="#componentsSection">
      <i class="material-icons">apps</i>
        <p> <?php echo $jkl['m33'];?>
          <b class="caret"></b>
        </p>
    </a>
<div class="collapse<?php if (in_array($page, array('files', 'response', 'proactive', 'bot', 'departments', 'buttons', 'customfield', 'blacklist', 'groupchats', 'widget'))) echo ' show';?>" id="componentsSection">
  <ul class="nav">
    <?php if (jak_get_access("files", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'files') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('files');?>" class="nav-link"><i class="material-icons">archive</i><p><?php echo $jkl["m2"];?></p></a></li>
    <?php } if (jak_get_access("responses", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'response') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('response');?>" class="nav-link"><i class="material-icons">reply</i><p><?php echo $jkl["m3"];?></p></a></li>
    <?php } if (jak_get_access("proactive", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'proactive') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('proactive');?>" class="nav-link"><i class="material-icons">cast</i><p><?php echo $jkl["m18"];?></p></a></li>
    <?php } if (jak_get_access("proactive", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'bot') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('bot');?>" class="nav-link"><i class="material-icons">mood</i><p><?php echo $jkl["m23"];?></p></a></li>
    <?php } if (jak_get_access("departments", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'departments') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('departments');?>" class="nav-link"><i class="material-icons">list_alt</i><p><?php echo $jkl["m9"];?></p></a></li>
    <?php } if (JAK_MAIN_OP){?>
    <li class="nav-item<?php if ($page == 'buttons') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('buttons');?>" class="nav-link"><i class="material-icons">web</i><p><?php echo $jkl["g71"];?></p></a></li>
    <li class="nav-item<?php if ($page == 'customfield') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'ticketstatus');?>" class="nav-link"><i class="material-icons">check_box</i><p><?php echo $jkl["hd148"];?></p></a></li>
    <?php } if (jak_get_access("blacklist", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'blacklist') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('blacklist');?>" class="nav-link"><i class="material-icons">traffic</i><p><?php echo $jkl["m27"];?></p></a></li>
    <?php } if (jak_get_access("groupchats", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'groupchats') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('groupchats');?>" class="nav-link"><i class="material-icons">group</i><p><?php echo $jkl["m29"];?></p></a></li>
    <?php } if (jak_get_access("widget", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'widget') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="nav-link"><i class="material-icons">widgets</i><p><?php echo $jkl["m26"];?></p></a></li>
    <?php } ?>
  </ul>
</div>
</li>
<li class="nav-item">
  <a class="nav-link" data-toggle="collapse" href="#statSection">
      <i class="material-icons">pie_chart</i>
        <p> <?php echo $jkl['m10'];?>
          <b class="caret"></b>
        </p>
    </a>
<div class="collapse<?php if (in_array($page, array('uonline', 'statistics', 'logs', 'chats'))) echo ' show';?>" id="statSection">
  <ul class="nav">
    <li class="nav-item<?php if ($page == 'uonline') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('uonline');?>" class="nav-link"><i class="material-icons">supervised_user_circle</i><p><?php echo $jkl["g122"];?></p></a></li>
    <?php if (jak_get_access("statistic", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'statistics') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('statistics');?>" class="nav-link"><i class="material-icons">bubble_chart</i><p><?php echo $jkl["m10"];?></p></a></li>
    <?php } if (jak_get_access("logs", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'logs') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('logs');?>" class="nav-link"><i class="material-icons">assignment_turned_in</i><p><?php echo $jkl["m6"];?></p></a></li>
    <?php } if (jak_get_access("ochat", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
    <li class="nav-item<?php if ($page == 'chats') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('chats');?>" class="nav-link"><i class="material-icons">forum</i><p><?php echo $jkl["u41"];?></p></a></li>
    <?php } ?>
  </ul>
</div>
</li>
<li class="nav-item<?php if ($page == 'users') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('users');?>" class="nav-link"><i class="material-icons">person</i><p><?php echo $jkl["m4"];?></p></a></li>
<?php if (jak_get_access("settings", $jakuser->getVar("permissions"), JAK_MAIN_OP) || jak_get_access("blocklist", $jakuser->getVar("permissions"), JAK_MAIN_OP)){;?>
<li class="nav-item<?php if ($page == 'settings') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('settings');?>" class="nav-link"><i class="material-icons">settings</i><p><?php echo $jkl["m5"];?></p></a></li>
<?php } if (jak_get_access("billing", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'billing') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('billing');?>" class="nav-link"><i class="material-icons">monetization_on</i><p><?php echo $jkl["hd22"];?></p></a></li>
<?php } if (JAK_SUPERADMINACCESS){?>
<li class="nav-item<?php if ($page == 'maintenance') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('maintenance');?>" class="nav-link"><i class="material-icons">build</i><p><?php echo $jkl["m19"];?></p></a></li>
<?php } ?>
</ul>
