    <!-- ---------------------------------- -->
    <!-- Start Vertical Layout Sidebar -->
    <!-- ---------------------------------- -->
    <div class="brand-logo d-flex align-items-center justify-content-between">
      <a href="index" class="text-nowrap logo-img">
        <img src="<?= base_url('assets/images/logos/logo_horizontal.png') ?>" width="150" class="dark-logo" alt="Logo-Dark" />
        <img src="<?= base_url('assets/images/logos/logo_horizontal.png') ?>" width="150" class="light-logo" alt="Logo-light" />
      </a>
      <a href="javascript:void(0)" class="sidebartoggler ms-auto text-decoration-none fs-5 d-block d-xl-none">
        <i class="ti ti-x"></i>
      </a>
    </div>

    <nav class="sidebar-nav scroll-sidebar" data-simplebar>
      <ul id="sidebarnav">
        <!-- ---------------------------------- -->
        <!-- Home -->
        <!-- ---------------------------------- -->
        <li class="nav-small-cap">
          <i class="ti ti-dots nav-small-cap-icon fs-4"></i>
          <span class="hide-menu">Enlaces</span>
        </li>
        <!-- ---------------------------------- -->
        <!-- Dashboard -->
        <!-- ---------------------------------- -->
        <li class="sidebar-item">
          <a class="sidebar-link <?= ($currentPath === '') ? 'active' : '' ?>" href="/" aria-expanded="false">
            <span>
              <i class="ti ti-home"></i>
            </span>
            <span class="hide-menu">Inicio</span>
          </a>
        </li>

        <?php 
          if (permiso('Administración','Visualizar administración',false)) {
           ?>
        <li class="nav-small-cap">
          <i class="ti ti-dots nav-small-cap-icon fs-4"></i>
          <span class="hide-menu">Administración</span>
        </li>

        <?php 
          if (permiso('Usuario','Visualizar',false)) {
           ?>
            <li class="sidebar-item">
              <a class="sidebar-link <?= str_contains($currentPath,'usuario') ? 'active' : '' ?>" href="<?= site_url('usuario') ?>" aria-expanded="false">
                <span>
                  <i class="ti ti-user"></i>
                </span>
                <span class="hide-menu">Usuarios</span>
              </a>
            </li>
        <?php
         }
        ?>


         <?php 
          if (permiso('Permisos','Visualizar',false)) {
           ?>
          <li class="sidebar-item">
            <a class="sidebar-link <?= str_contains($currentPath,'permisos') ? 'active' : '' ?>" href="<?= site_url('permisos') ?>" aria-expanded="false">
              <span>
                <i class="ti ti-key"></i>
              </span>
              <span class="hide-menu">Permisos</span>
            </a>
          </li>
              <?php
          }
          ?>
        <?php
          } // cierre de permiso administración
          ?>
      </ul>
    </nav>

    <!-- ---------------------------------- -->
    <!-- Start Vertical Layout Sidebar -->
    <!-- ---------------------------------- -->
