<!-- Admin Sidebar -->
<div class="modal fade panelbox panelbox-left" id="adminSidebar" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body p-0">
                <div class="profileBox pt-2 pb-2">
                    <div class="image-wrapper">
                        <img src="<?php echo get_user_avatar($user, 'w36'); ?>" alt="image" class="imaged w36 rounded">
                    </div>
                    <div class="in">
                        <strong><?php echo htmlspecialchars($user->first_name . ' ' . $user->last_name); ?></strong>
                        <div class="text-muted">Administrator</div>
                    </div>
                    <a href="#" class="btn btn-link btn-icon sidebar-close" data-bs-dismiss="modal">
                        <ion-icon name="close-outline"></ion-icon>
                    </a>
                </div>

                <div class="listview-title mt-1">Admin Menu</div>
                <ul class="listview flush transparent no-line image-listview">
                    <li>
                        <a href="<?php echo base_url('admin/dashboard'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="stats-chart-outline"></ion-icon></div>
                            <div class="in">Dashboard</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/users'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="people-outline"></ion-icon></div>
                            <div class="in">Users</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/accounts'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="wallet-outline"></ion-icon></div>
                            <div class="in">Accounts</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/transactions'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="list-outline"></ion-icon></div>
                            <div class="in">Transactions</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/cards'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="card-outline"></ion-icon></div>
                            <div class="in">Cards</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/crypto-wallets'); ?>" class="item">
                            <div class="icon-box bg-warning"><ion-icon name="logo-bitcoin"></ion-icon></div>
                            <div class="in">Crypto Wallets</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('admin/settings'); ?>" class="item">
                            <div class="icon-box bg-primary"><ion-icon name="settings-outline"></ion-icon></div>
                            <div class="in">Settings</div>
                        </a>
                    </li>
                </ul>

                <div class="listview-title mt-1">Account</div>
                <ul class="listview flush transparent no-line image-listview">
                    <li>
                        <a href="<?php echo base_url('dashboard'); ?>" class="item">
                            <div class="icon-box bg-success"><ion-icon name="home-outline"></ion-icon></div>
                            <div class="in">User Dashboard</div>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo base_url('auth/logout'); ?>" class="item">
                            <div class="icon-box bg-danger"><ion-icon name="log-out-outline"></ion-icon></div>
                            <div class="in">Log out</div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
