<!-- MENU -->
<nav class="pc-sidebar">
    <div class="navbar-wrapper">
        <div class="m-header">
            <a href="index.html" class="b-brand text-primary">
                <img
                    src="../assets/images/logo-white.svg"
                    alt="logo image"
                    class="logo-lg">
                <span
                    class="badge bg-primary rounded-pill ms-1 theme-version">
                    v2.1.0 aaabbbccc
                </span>
            </a>
        </div>
        <div class="row bg-dark">
            <div class="col-sm-12 text-center" style="background-image: url('<?php echo site_url("gradient-able"); ?>/images/layout/nav-card-bg.svg')">
                <br>
                <h5 class="text-white"><?php echo $nombre_ie; ?></h5>
                <img src="<?php echo site_url("gradient-able/insignias/" . $insignia); ?>" alt="">
                <br>
                <div class="text-white">
                    <?php echo $ubica; ?>
                </div>
                <br>
            </div>
        </div>
        <div class="navbar-content">
            <ul class="pc-navbar">
                <?php foreach ($menu as $reg) { ?>
                    <li class="pc-item pc-hasmenu pc-trigger">
                        <a href="#!" class="pc-link">
                            <span class="pc-micon">
                                <i class="<?php echo $reg["icono"]; ?>"></i>
                            </span>
                            <span class="pc-mtext"><?php echo $reg["modulo"]; ?></span>
                            <span class="pc-arrow">
                                <i data-feather="chevron-right"></i>
                            </span>
                        </a>
                        <ul class="pc-submenu">
                            <?php foreach ($reg["items"] as $r) { ?>
                                <li class="pc-item">
                                    <a
                                        class="pc-link"
                                        href="<?php echo $r["url"] ?>">
                                        <?php echo $r["label"]; ?>
                                    </a>
                                </li>
                            <?php } ?>

                        </ul>
                    </li>
                <?php } ?>
                <!--
                <li class="pc-item">
                    <a href="../other/sample-page.html" class="pc-link">
                        <span class="pc-micon">
                            <i class="ph ph-desktop"></i>
                        </span>
                        <span class="pc-mtext">Sample page</span>
                    </a>
                </li>
                -->
            </ul>
        </div>
    </div>
</nav>