        <div class="pre-loader">
            <div class="pre-loader-box">
                <div class="loader-logo"><img src="<?php echo base_url('assets/newimages/smrtnxt-logo-new.png'); ?>" alt="SMrtnxt" style="width: 80px; height: auto;"></div>
                <div class='loader-progress' id="progress_div">
                    <div class='bar' id='bar1'></div>
                </div>
                <div class='percent' id='percent1'>0%</div>
                <div class="loading-text">
                    Loading...
                </div>
            </div>
        </div>
        <div class="header">
            <div class="header-left">
                <div class="menu-icon dw dw-menu"></div>
                <style type="text/css">
                    .smrt-logo { margin-left: 60%; }
                </style>
                <div class="smrt-logo">
                    <img src="<?php echo base_url('assets/newimages/smrtnxt-logo-new.png'); ?>" alt="SMrtnxt" style="width: 250px; height: auto;">
                </div>
            </div>
            <div class="header-right">
                <div class="user-info-dropdown">
                    <div class="dropdown">
                        <a class="dropdown-toggle" href="#" role="button" data-toggle="dropdown">
                        <span class="user-icon">
                        <img src="<?php echo base_url(); ?>assets/images/photo1.jpg" alt="">
                        </span>
                        <span class="user-name"><?php echo $_SESSION['name']; ?></span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
                            <a class="dropdown-item" href="<?php echo base_url('logout'); ?>"><i class="dw dw-logout"></i> Log Out</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="left-side-bar">
            <div class="brand-logo">
                <a href="<?php echo base_url(); ?>">
                    <img src="<?php echo base_url('assets/newimages/smrtnxt-logo-new.png'); ?>" alt="SMrtnxt" class="dark-logo" style="width: 150px; height: auto; max-height: 50px;">
                    <img src="<?php echo base_url('assets/newimages/smrtnxt-logo-new.png'); ?>" alt="SMrtnxt" class="light-logo" style="width: 150px; height: auto; max-height: 50px;">
                </a>
                <div class="close-sidebar" data-toggle="left-sidebar-close">
                    <i class="ion-close-round"></i>
                </div>
            </div>
            <div class="menu-block customscroll">
                <div class="sidebar-menu">
                    <ul id="accordion-menu">
                        <li>
                            <a href="<?php echo base_url(); ?>" class="dropdown-toggle no-arrow">
                                <span class="micon dw dw-house-1"></span><span class="mtext">Dashboard</span>
                            </a>
                        </li>
                        <?php if($this->session->userdata('role') == 'Admin'): ?>
                        <li>
                            <a href="<?php echo base_url('analytics'); ?>" class="dropdown-toggle no-arrow">
                                <span class="micon dw dw-analytics-21"></span><span class="mtext">Analytics</span>
                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if($this->session->userdata('role') == 'Super Admin'): ?>
                        <li>
                            <a href="<?php echo base_url('users'); ?>" class="dropdown-toggle no-arrow">
                                <span class="micon dw dw-user-1"></span><span class="mtext">Users</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo base_url('branches'); ?>" class="dropdown-toggle no-arrow">
                                <span class="micon dw dw-building"></span><span class="mtext">Branches</span>
                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if($this->session->userdata('role') != 'Super Admin'): ?>
                        <li class="dropdown">
                            <a href="javascript:;" class="dropdown-toggle">
                                <span class="micon dw dw-user-2"></span><span class="mtext">Leads</span>
                            </a>
                            <ul class="submenu">
                                <li><a href="<?php echo base_url('leads'); ?>">All Leads</a></li>
                                <li><a href="<?php echo base_url('leads/add'); ?>">Add New Lead</a></li>
                                <li><a href="<?php echo base_url('leads?status=New Lead'); ?>">New Leads</a></li>
                                <li><a href="<?php echo base_url('leads?status=Follow-up'); ?>">Follow-up Leads</a></li>
                                <li><a href="<?php echo base_url('leads?status=Converted'); ?>">Converted Leads</a></li>
                            </ul>
                        </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </div>
        </div>
        <div class="mobile-menu-overlay"></div>