<nav class="mt-2">
    <ul class="nav nav-pills nav-sidebar nav-child-indent flex-column nav-lime" data-widget="treeview" role="menu" data-accordion="false">
        <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
        <li class="nav-item menu-open">
            <a <?php echo $link->page('beranda'); ?> class="nav-link active">
                <i class="nav-icon bi bi-shop"></i>
                <p>
                    Dashboard

                </p>
            </a>
        </li>

        <li class="nav-item">
            <a href="#" class="nav-link">
                <i class="nav-icon bi bi-columns-gap small"></i>
                <p>
                    Pengaturan
                    <i class="fas fa-angle-left right"></i>
                    <span class="badge badge-primary right">9</span>
                </p>
            </a>
            <ul class="nav nav-treeview">
                <li class="nav-item ">
                    <a <?php echo $link->pageID($clasSekolah->dataSekolah('id'), 'seting/lembaga'); ?> class="nav-link">
                        <i class="bi bi-building small nav-icon"></i>
                        <p>Lembaga </p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/database/read'); ?> class="nav-link">
                        <i class="bi bi-device-ssd nav-icon"></i>
                        <p>Database</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/paralel/paralel_read'); ?> class="nav-link">
                        <i class="bi bi-journal-bookmark nav-icon"></i>
                        <p>Kelas Paralel</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/walikelas/read'); ?> class="nav-link">
                        <i class="bi bi-person-video3 nav-icon"></i>
                        <p>Wali Kelas <small>[Optional]</small></p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/jenisPembayaran/jenisPembayaran_read'); ?> class="nav-link">
                        <i class="bi bi-boxes nav-icon"></i>
                        <p>Jenis Pembayaran</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/siswa/kategori/read'); ?> class="nav-link">
                        <i class="bi bi-grid nav-icon"></i>
                        <p>Kategorisasi Siswa</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/siswa/siswa_read'); ?> class="nav-link">
                        <i class="bi bi-people nav-icon"></i>
                        <p>Siswa <small>[Tanggungan]</small></p>
                    </a>
                </li>

                <li class="nav-item">
                    <a <?php echo $link->page('seting/userAdmin/user_read'); ?> class="nav-link">
                        <i class="bi bi-person-circle nav-icon"></i>
                        <p>User <small>[Pengelola]</small></p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('seting/userSiswa/user_read'); ?> class="nav-link">
                        <i class="bi bi-person-bounding-box nav-icon"></i>
                        <p>User <small>[Siswa]</small></p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->pageID($whatsapp_id, 'seting/whatsapp/index'); ?> class="nav-link">
                        <i class="bi bi-phone-vibrate nav-icon"></i>
                        <p>Whatsapp Notifikasi</p>
                    </a>
                </li>

            </ul>
        </li>
        <li class="nav-item">
            <a <?php echo $link->page('transaksi/siswa_read'); ?> class="nav-link">
                <i class="nav-icon bi bi-upc-scan"></i>
                <p>
                    Rekam Transaksi

                </p>
            </a>
        </li>
        <li class="nav-item">
            <a <?php echo $link->page('transaksi/transaksi_read'); ?> class="nav-link">
                <i class="nav-icon bi bi-receipt-cutoff"></i>
                <p>
                    Daftar Transaksi

                </p>
            </a>
        </li>
        <li class="nav-item">
            <a href="#" class="nav-link">
                <i class="nav-icon bi bi-bar-chart-line"></i>
                <p>
                    Laporan
                    <i class="right fas fa-angle-left"></i>
                </p>
            </a>
            <ul class="nav nav-treeview">
                <li class="nav-item">
                    <a <?php echo $link->page('laporan/transaksi/laporan_transaksi'); ?> class="nav-link">
                        <i class="nav-icon bi bi-calculator"></i>
                        <p>Laporan Transaksi</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="nav-icon bi bi-journal-text"></i>
                        <p>Laporan Rekapitulasi <i class="right fas fa-angle-left"></i></p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a <?php echo $link->page('laporan/rekapitulasi/laporan_rekapitulasi_1'); ?> class="nav-link">
                                <i class="nav-icon bi bi-journal-text"></i>
                                <p>Model-1</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a <?php echo $link->page('laporan/rekapitulasi/laporan_rekapitulasi_2'); ?> class="nav-link">
                                <i class="nav-icon bi bi-journal-text"></i>
                                <p>Model-2</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a <?php echo $link->page('laporan/rekapitulasi/laporan_rekapitulasi_3'); ?> class="nav-link">
                                <i class="nav-icon bi bi-journal-text"></i>
                                <p>Model-3</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a <?php echo $link->page('laporan/rekapitulasi/laporan_rekapitulasi_4'); ?> class="nav-link">
                                <i class="nav-icon bi bi-journal-text"></i>
                                <p>Model-4</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('laporan/siswa/laporan_siswa'); ?> class="nav-link">
                        <i class="nav-icon bi bi-person-badge"></i>
                        <p>Laporan Siswa</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('laporan/bulanan/laporan_bulanan'); ?> class="nav-link">
                        <i class="nav-icon bi bi-calendar2-week"></i>
                        <p>Laporan Bulanan</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="pages/charts/uplot.html" class="nav-link">
                        <i class="nav-icon bi bi-pie-chart"></i>
                        <p>Laporan Umum</p>
                    </a>
                </li>
            </ul>
        </li>

        <li class="nav-item">
            <a href="#" class="nav-link">
                <i class="nav-icon bi bi-box-arrow-in-up-right"></i>
                <p>
                    Setor ke Bendahara
                    <i class="fas fa-angle-left right"></i>
                    <span class="badge badge-primary right">3</span>
                </p>
            </a>
            <ul class="nav nav-treeview">
                <li class="nav-item ">
                    <a <?php echo $link->page('setor/setor_read_create'); ?> class="nav-link">
                        <i class="bi bi-pencil-square small nav-icon"></i>
                        <p>Rekam/Edit Konsep Setor </p>
                    </a>
                </li>
                <li class="nav-item ">
                    <a <?php echo $link->page('setor/setor_read_proses'); ?> class="nav-link">
                        <i class="bi bi-gear small nav-icon"></i>
                        <p>Proses Setor ke Bendahara </p>
                    </a>
                </li>
                <li class="nav-item ">
                    <a <?php echo $link->page('setor/setor_read_monit'); ?> class="nav-link">
                        <i class="bi bi-search"></i>
                        <p> Monitoring Setor </p>
                    </a>
                </li>
                <li class="nav-item ">
                    <a <?php echo $link->page('setor/setor_read_monit_transaksi'); ?> class="nav-link">
                        <i class="bi bi-card-checklist"></i>
                        <p> Monitoring Transaksi </p>
                    </a>
                </li>
            </ul>
        </li>
        <li class="nav-item">
            <a <?php echo $link->page('tagih/index'); ?> class="nav-link">
                <i class="nav-icon bi bi-cursor-fill"></i>
                <p>
                    Info Tanggungan [WA]
                </p>
            </a>
        </li>

        <li class="nav-item">
            <a href="#" class="nav-link">
                <i class="nav-icon bi bi-tools"></i>
                <p>
                    Utility
                    <i class="right fas fa-angle-left"></i>
                </p>
            </a>
            <ul class="nav nav-treeview">
                <li class="nav-item">
                    <a <?php echo $link->page('utility/backup/index'); ?> class="nav-link">
                        <i class="bi bi-device-hdd nav-icon"></i>
                        <p>Backup-Restore Data</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a <?php echo $link->page('utility/update/index'); ?> class="nav-link">
                        <i class="bi bi-gear-wide-connected nav-icon"></i>
                        <p>Update Aplikasi</p>
                    </a>
                </li>
            </ul>
        </li>
        <li class="nav-item">
            <a <?php echo $link->pageID(md5(1), 'seting/register/index'); ?> class="nav-link">
                <i class="nav-icon bi bi-qr-code-scan"></i>
                <p>
                    Lisensi

                </p>
            </a>
        </li>
        <li class="nav-item">
            <a <?php echo $link->page('tutorial/index'); ?> class="nav-link">
                <i class="nav-icon bi bi-newspaper"></i>
                <p>Tutorial</p>
            </a>
        </li>
        <li class="nav-item">
            <a <?php echo $link->page('logout'); ?> class="nav-link">
                <i class="nav-icon bi bi-power"></i>
                <p>Logout</p>
            </a>
        </li>
    </ul>
</nav>