<div class="topbar">
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="full">
            <button type="button" id="sidebarCollapse" class="sidebar_toggle"><i class="fa fa-bars"></i></button>
            <div class="right_topbar">
                <div class="icon_info">
                    <!-- <ul>
                        <li><a href="#"><i class="fa fa-bell-o"></i><span class="badge">2</span></a></li>
                        <li><a href="#"><i class="fa fa-question-circle"></i></a></li>
                        <li><a href="#"><i class="fa fa-envelope-o"></i><span class="badge">3</span></a></li>
                    </ul> -->
                    <ul class="user_profile_dd">
                        <li>
                            <a class="dropdown-toggle" data-toggle="dropdown">
                                <?php if (!empty($userdetails['u_image'])) : ?>
                                    <img class="img-responsive rounded-circle" src="<?= $userdetails['u_image'] ?>" alt="Profile Image" />
                                <?php else : ?>
                                    <img class="img-responsive rounded-circle" src="<?= base_url('assets/images/layout_img/admin_icon.png') ?>" alt="Default Profile Image" />
                                <?php endif; ?>
                                <span class="name_user"><?= $userdetails['name'] ?></span>
                            </a>

                            <div class="dropdown-menu">
                                <!-- <a class="dropdown-item" href="">My Profile</a>
                                <a class="dropdown-item" href="">Settings</a> -->
                                <a class="dropdown-item" href="<?= base_url('resetpassword') ?>">Setting
                                </a>
                                <a class="dropdown-item" href="<?= base_url('login/logout') ?>">Log Out</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
</div>
<div class="midde_cont">