<?php
    if(!isset($menu_home) || ($menu_home=="")) $menu_home="";
  if(!isset($menu) || ($menu=="")) $menu="";
  if(!isset($submenu) || ($submenu=="")) $submenu="";
?>

<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">

          <!-- COMPTABILITE -->
          <?php if($user->hasRole("ADMINISTRATEUR") 
            || $user->can("GLI_VISU")
            || $user->can("PLA_VISU")
            ): ?>
            <li class="nav-item <?php echo ($menu=='comptabilite')?'menu-is-opening menu-open':''; ?>">
              <a href="#" class="nav-link  <?php echo ($menu=='comptabilite')?'active':''; ?>">
                <p>COMPTABILITE<i class="fas fa-angle-left right"></i></p>
              </a>

              <ul class="nav nav-treeview">
                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("EMP_VISU")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('tiers/employeurs'); ?>" class="nav-link  <?php echo ($submenu=='employeurs')?'active':''; ?>">
                      <i class="nav-icon fa fa-industry"></i>
                      <p>Cotisants</p>
                    </a>
                  </li>
                <?php endif; ?>

                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("GLI_VISU")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('grand_livre'); ?>" class="nav-link  <?php echo ($submenu=='grand_livre')?'active':''; ?>">
                      <i class="nav-icon fa fa-book-open"></i>
                      <p>Grand Livre</p>
                    </a>
                  </li>

                  <li class="nav-item">
                    <a href="<?php echo url('balance'); ?>" class="nav-link  <?php echo ($submenu=='balance')?'active':''; ?>">
                      <i class="nav-icon fa fa-scale-balanced"></i>
                      <p>Balance</p>
                    </a>
                  </li>
                <?php endif; ?>


                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("GLI_TRA")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('transferts'); ?>" class="nav-link  <?php echo ($submenu=='transferts')?'active':''; ?>">
                      <i class="nav-icon fa fa-arrow-up-from-bracket"></i>
                      <p>Transferts</p>
                    </a>
                  </li>
                <?php endif; ?>
<!--
                <?php if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")): ?>
                <li class="nav-item">
                <a href="<?php echo url('suivi_comptable'); ?>" class="nav-link  <?php echo ($submenu=='suivi_comptable')?'active':''; ?>">
                  <i class="nav-icon fa fa-file-invoice-dollar"></i>
                  <p>Suivi</p>
                </a>
                </li>
                <?php endif; ?>
-->
              </ul>
          </li>

                    <div class="dropdown-divider"></div>

          <li class="nav-item <?php echo ($menu=='configuration')?'menu-is-opening menu-open':''; ?>">
            <a href="#" class="nav-link  <?php echo ($menu=='configuration')?'active':''; ?>">
              <p>CONFIGURATION<i class="fas fa-angle-left right"></i></p>
            </a>

              <ul class="nav nav-treeview">
                <?php if($user->hasRole("ADMINISTRATEUR")|| $user->canPermissionName("JOU_VISU")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('journaux'); ?>" class="nav-link  <?php echo ($submenu=='journaux')?'active':''; ?>">
                      <i class="nav-icon fa fa-newspaper"></i>
                      <p>Journaux</p>
                    </a>
                  </li>
                <?php endif; ?>

                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("PLA_VISU")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('plan_comptable'); ?>" class="nav-link  <?php echo ($submenu=='plan_comptable')?'active':''; ?>">
                      <i class="nav-icon fa fa-book"></i>
                      <p>Plan comptable</p>
                    </a>
                  </li>
                <?php endif; ?>

                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("GLI_RAN")): ?>
                  <li class="nav-item">
                    <a href="<?php echo url('ran'); ?>" class="nav-link <?php echo ($submenu=='ran')?'active':''; ?>">
                      <i class="far fa-circle nav-icon text-info"></i>
                      <p>R.A.N.</p>
                    </a>
                  </li>
                <?php endif; ?>
              </ul>
          </li>
          <?php endif; ?>

</ul><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre_new\resources\views/forms/menu_comptabilite.blade.php ENDPATH**/ ?>