<!-- Sidebar Start -->
<div class="sidebar pe-4 pb-3 open">
    <nav class="navbar bg-secondary navbar-dark">
        <a href="<?= base_url('welcome'); ?>" class="navbar-brand mx-4 mb-3">
            <h3 class="text-primary"><i class="fa fa-gamepad me-2"></i>PlayStation</h3>
        </a>
        <div class="d-flex align-items-center ms-4 mb-4">
            <div class="position-relative">
                <img class="rounded-circle" src="<?= base_url('assets'); ?>/img/us.png" alt="" style="width: 40px; height: 40px;">
                <div class="bg-success rounded-circle border border-2 border-white position-absolute end-0 bottom-0 p-1"></div>
            </div>
            <div class="ms-3">
                <h6 class="mb-0">Jhon Doe</h6>
                <span>Admin</span>
            </div>
        </div>
        <div class="navbar-nav w-100">
            <a href="<?= base_url(); ?>" class="nav-item nav-link <?php if (in_array($activeMenu, ['on_chanel'])) echo 'active'; ?>"><i class="fa fa-tachometer-alt me-2"></i>Channel</a>
            <a href="<?= base_url('master/edit_password'); ?>" class="nav-item nav-link <?php if (in_array($activeMenu, ['edit_passs'])) echo 'active'; ?>"><i class="fa fa-key me-2"></i>Edit Password</a>
            <a href="<?= base_url('pengeluaran'); ?>" class="nav-item nav-link <?php if (in_array($activeMenu, ['pengeluaran'])) echo 'active'; ?>"><i class="fa fa-th me-2"></i>Pengeluaran</a>
            <hr>
            <div class="nav-item dropdown ">
                <a href="#" class="nav-link dropdown-toggle <?php if (in_array($Menu, ['master'])) echo 'active'; ?>" data-bs-toggle="dropdown"><i class="fa fa-th me-2"></i>Data Master</a>
                <div class="dropdown-menu bg-transparent border-0 ">
                    <a href="<?= base_url('master/chanel'); ?>" class="dropdown-item <?php if (in_array($activeMenu, ['chanel'])) echo 'active'; ?>"><i class="fa fa-minus me-2"></i> Data Channel</a>
                    <a href="<?= base_url('master/harga'); ?>" class="dropdown-item <?php if (in_array($activeMenu, ['harga'])) echo 'active'; ?>"><i class="fa fa-minus me-2"></i> Harga</a>
                    <a href="<?= base_url('master/user'); ?>" class="dropdown-item <?php if (in_array($activeMenu, ['user'])) echo 'active'; ?>"><i class="fa fa-minus me-2"></i> User</a>
                </div>
            </div>
            <a href="<?= base_url('laporan'); ?>" class="nav-item nav-link <?php if (in_array($activeMenu, ['laporan'])) echo 'active'; ?>"><i class="fa fa-file-alt me-2"></i>Laporan</a>
            <hr>
            <a href="<?= base_url('auth/logout'); ?>" class="nav-item nav-link"><i class="fa fa-sign-out-alt me-2"></i>Log Out</a>

        </div>
    </nav>
</div>
<!-- Sidebar End -->