<li class="nav-item">
    <a href="#" class="nav-link">
        <i class="nav-icon bi bi-ticket-detailed"></i>
        <p>Transaksi <i class="nav-arrow bi bi-chevron-right"></i></p>
    </a>
    <ul class="nav nav-treeview">
        <li class="nav-item">
            <a href="<?=base_url()?>transaksi" class="nav-link">
                <i class="nav-icon bi bi-file-ruled"></i>
                <p>All</p>
            </a>
        </li>
        <li class="nav-item">
            <a href="<?=base_url()?>transaksi/pending" class="nav-link">
                <i class="nav-icon bi bi-file-ruled"></i>
                <p>Pending <span class="badge text-bg-primary"><?php
                $transaksimodel = new \App\Models\Transaksimodel();
                $transaksibuilder = $transaksimodel->builder();
                $transaksibuilder->where("flag_validasi","1");
                $transaksi = $transaksibuilder->selectCount("id_transaksi","jumlah_pending")->get()->getRow();
                if($transaksi){
                    echo $transaksi->jumlah_pending;
                }
                ?></span></p>
            </a>
        </li>
        <li class="nav-item">
            <a href="<?=base_url()?>transaksi/pembatalan" class="nav-link">
                <i class="nav-icon bi bi-bag-x"></i>
                <p>Dibatalkan</p>
            </a>
        </li>
        <li class="nav-item">
            <a href="<?=base_url()?>transaksi/warga" class="nav-link">
                <i class="nav-icon bi bi-file-person"></i>
                <p>Rekap Warga</p>
            </a>
        </li>
    </ul>
</li>
<li class="nav-item">
    <a href="#" class="nav-link">
        <i class="nav-icon bi bi-file-bar-graph"></i>
        <p>Laporan <i class="nav-arrow bi bi-chevron-right"></i></p>
    </a>
    <ul class="nav nav-treeview">
        <li class="nav-item">
            <a href="<?=base_url()?>laporan/harian" class="nav-link">
                <i class="nav-icon bi bi-file-earmark-post"></i>
                <p>Harian</p>
            </a>
        </li>
        <li class="nav-item">
            <a href="<?=base_url()?>exportlaporan" class="nav-link">
                <i class="nav-icon bi bi-file-earmark-post"></i>
                <p>Export</p>
            </a>
        </li>
    </ul>
</li>