<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div id="sidebar" class="sidebar      h-sidebar                navbar-collapse collapse">
        <script type="text/javascript">
            try {
                ace.settings.check('sidebar', 'fixed')
            } catch (e) {
            }
        </script>
        <?php $adminLebel=$this->session->userdata('admin_level');?>
        

        <ul class="nav nav-list" >
            <!--<li class="hover">
                <a href="<?php //echo base_url('adminpanel');?>">
                    <i class="menu-icon fa fa-tachometer"></i>
                    <span class="menu-text"> Dashboard </span>
                </a>

                <b class="arrow"></b>
            </li>-->
            <li class="hover">
                <a href="<?php //echo base_url('adminpanel');?>">
                    
                    <span class="menu-text">  </span>
                </a>

                <b class="arrow"></b>
            </li>

            <li class="active open hover">
                <a href="<?php echo admin_url()?>/landcustomerRegistration" class="dropdown-toggle">
                    <i class="menu-icon fa fa-plus-circle"></i>
                    <span class="menu-text">
                        New Entry
                    </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">

                    <li class="hover">
                        <a href="<?php echo admin_url();?>/landcustomerRegistration/index">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Customer 
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <?php if($adminLebel==1 || $adminLebel==3){?>
                    <li class="hover">
                        <a href="<?php echo admin_url();?>/userRegistration">
                            <i class="menu-icon fa fa-caret-right"></i>
                            User 
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <li class="hover">
                        <a href="<?php echo admin_url();?>/sendsms">
                            <i class="menu-icon fa fa-caret-right"></i>
                            Send SMS 
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <?php }?>
                  
                    
                </ul>
            </li>

            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-eye"></i>
                    <span class="menu-text"> View </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="hover">
                        <a href="<?php echo admin_url()?>/landcustomerRegistration/ViewLandCustomer">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Customer
                        </a>

                        <b class="arrow"></b>
                    </li>
                    
                     <?php if($adminLebel==1 || $adminLebel==3){?>
                    <li class="hover">
                        <a href="#">
                            <i class="menu-icon fa fa-caret-right"></i>
                            User
                            <b class="arrow fa fa-angle-down"></b>
                        </a>
                        <b class="arrow"></b>
                        <ul class="submenu">
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/employeesetup/viewEmployeeList">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    Active Users
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/employeesetup/viewInactiveUserList">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    Inactive Users
                                </a>
                                <b class="arrow"></b>
                            </li>
                        </ul>
                    </li>
                    <?php }?>
                </ul>
            </li>

        <?php if($adminLebel==1 || $adminLebel==3){?>
            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-list"></i>
                    <span class="menu-text"> Add Category </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="hover ">
                        <a href="<?php echo admin_url()?>/incomecategorysetup">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Income 
                        </a>

                        <b class="arrow"></b>
                    </li>

                    <li class="hover">
                        <a href="<?php echo admin_url()?>/expensecategorysetup">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Expense 
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <li class="hover">
                        <a href="<?php echo admin_url()?>/projectcategorysetup">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Project 
                        </a>

                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <?php }?>




            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-arrow-circle-down "></i>
                    <span class="menu-text"> Income </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">

                <!--<li class="active open hover">-->
                <!--        <a href="" class="dropdown-toggle">-->
                <!--            <i class="menu-icon fa fa-caret-right"></i>-->
                <!--            By Customer-->
                <!--            <b class="arrow fa fa-angle-down"></b>-->
                <!--        </a>-->
                <!--        <b class="arrow"></b>-->
                <!--        <ul class="submenu">-->
                <!--            <li class="hover">-->
                <!--                <a href="<?php //echo admin_url()?>/landincomesetup/viewincome">-->
                <!--                    <i class="menu-icon fa fa-caret-right"></i>-->
                <!--                    View -->
                <!--                </a>-->
                <!--                <b class="arrow"></b>-->
                <!--            </li>-->
                <!--            <li class="hover">-->
                <!--                <a href="--><?php //echo admin_url()?><!--/landincomesetup/installmentDue">-->
                <!--                    <i class="menu-icon fa fa-caret-right"></i>-->
                <!--                    Installment Due-->
                <!--                </a>-->
                <!--                <b class="arrow"></b>-->
                <!--            </li>-->
                <!--        </ul>-->
                <!--    </li>-->
                    
                    <?php if($adminLebel==1 || $adminLebel==3 || $adminLebel==2){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/landincomesetup">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    By Customer
                                </a>

                                <b class="arrow"></b>
                            </li>
                     <?php }?>
                     
                     <?php if($adminLebel==1 || $adminLebel==3 || $adminLebel==2){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/extraincomesetup">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    By Category
                                </a>

                                <b class="arrow"></b>
                            </li>
                    <?php }?>
                    <!--<li class="active open hover">-->
                    <!--    <a href="" class="dropdown-toggle">-->
                    <!--        <i class="menu-icon fa fa-caret-right"></i>-->

                    <!--         By Category-->
                    <!--        <b class="arrow fa fa-angle-down"></b>-->
                    <!--    </a>-->

                    <!--    <b class="arrow"></b>-->

                    <!--    <ul class="submenu">-->
                        
                            
                    <!--        <li class="hover">-->
                    <!--            <a href="<?php echo admin_url()?>/extraincomesetup/viewincome">-->
                    <!--                <i class="menu-icon fa fa-caret-right"></i>-->
                    <!--                View -->
                    <!--            </a>-->

                    <!--            <b class="arrow"></b>-->
                    <!--        </li>-->
                    <!--    </ul>-->
                    <!--</li>-->


                    <li class="hover">
                        <a href="<?php echo admin_url()?>/extraincomesetup/incomeSearch">
                            <i class="menu-icon fa fa-caret-right"></i>
                            Income Search
                        </a>

                        <b class="arrow"></b>
                    </li>

<!--                    <li class="hover">-->
<!--                        <a href="--><?php //echo admin_url()?><!--/extraincomesetup/dueInstallment">-->
<!--                            <i class="menu-icon fa fa-caret-right"></i>-->
<!--                            Installment Due Search-->
<!--                        </a>-->
<!---->
<!--                        <b class="arrow"></b>-->
<!--                    </li>-->


                    <li class="hover">
                        <a href="<?php echo admin_url()?>/extraincomesetup/searchBydate">
                            <i class="menu-icon fa fa-caret-right"></i>Report
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="hover">
                                <a href="<?php echo admin_url()?>/extraincomesetup/dueInstallment">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    Installment Due
                                </a>

                                <b class="arrow"></b>
                    </li>
                            
<?php if($adminLebel==1 || $adminLebel==3 ){?>
                    <!--<li class="hover">-->
                    <!--    <a href="<?php echo admin_url()?>/extraincomesetup/searchBycustomer">-->
                    <!--        <i class="menu-icon fa fa-caret-right"></i>Income By Customer-->
                    <!--    </a>-->
                    <!--    <b class="arrow"></b>-->
                    <!--</li>-->

                    <li class="hover">
                        <a href="<?php echo admin_url()?>/extraincomesetup/searchByemployee">
                            <i class="menu-icon fa fa-caret-right"></i>By Employee
                        </a>
                        <b class="arrow"></b>
                    </li>
            <?php } ?>
                </ul>
            </li>


            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-arrow-circle-up "></i>
                    <span class="menu-text"> Expense </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <?php if($adminLebel==1 || $adminLebel==2 || $adminLebel==3){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/salaryexpensesetup">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    By Employee/Officers
                                </a>

                                <b class="arrow"></b>
                            </li>

                            <li class="hover">
                                <a href="<?php echo admin_url()?>/expensesetup">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    By Category
                                </a>

                                <b class="arrow"></b>
                            </li>
                <?php }?>

                    <!--<li class="active open hover">-->
                    <!--    <a href="" class="dropdown-toggle">-->
                    <!--        <i class="menu-icon fa fa-caret-right"></i>-->

                    <!--         By Category-->
                    <!--        <b class="arrow fa fa-angle-down"></b>-->
                    <!--    </a>-->

                    <!--    <b class="arrow"></b>-->

                    <!--    <ul class="submenu">-->
                        
                    <!--        <li class="hover">-->
                    <!--            <a href="<?php //echo admin_url()?>/expensesetup/viewExpense">-->
                    <!--                <i class="menu-icon fa fa-caret-right"></i>-->
                    <!--                View -->
                    <!--            </a>-->

                    <!--            <b class="arrow"></b>-->
                    <!--        </li>-->
                    <!--    </ul>-->
                    <!--</li>-->

                    <li class="hover">
                        <a href="<?php echo admin_url()?>/expensesetup/expenseSearch">
                            <i class="menu-icon fa fa-caret-right"></i>
                            Expense Search
                        </a>

                        <b class="arrow"></b>
                    </li>



                    <li class="hover">
                        <a href="<?php echo admin_url()?>/expensesetup/searchBydate">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Report 
                        </a>

                        <b class="arrow"></b>
                    </li>
<?php if($adminLebel==1 || $adminLebel==3 ){?>
                    <li class="hover">
                        <a href="<?php echo admin_url()?>/expensesetup/searchByemployee">
                            <i class="menu-icon fa fa-caret-right"></i>
                             By Employee
                        </a>

                        <b class="arrow"></b>
                    </li>
<?php } ?>
                  
                </ul>
            </li>

         
            <!--<li class="hover">-->
            <!--    <a href="<?php echo admin_Url() ?>/balancesetup" >-->
                    
            <!--        <i class="menu-icon fa fa-bars "></i>-->
            <!--        <span class="menu-text"> Balance </span>-->
                    
            <!--        <b class="arrow fa fa-angle-down"></b>-->
            <!--    </a>-->

            <!--    <b class="arrow"></b>-->

                
            <!--</li>-->
            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-credit-card"></i>
                    <span class="menu-text"> Cheque </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">

                <li class="active open hover">
                        <a href="" class="dropdown-toggle">
                            <i class="menu-icon fa fa-caret-right"></i>

                            Cheque In
                            <b class="arrow fa fa-angle-down"></b>
                        </a>

                        <b class="arrow"></b>

                        <ul class="submenu">
                        <?php if($adminLebel==1 || $adminLebel==3){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    New
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <?php }?>
                            
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview/allchequesin">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    View 
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview/donechequeinlist">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    Done
                                </a>

                                <b class="arrow"></b>
                            </li>


                        </ul>
                    </li>
                    <li class="active open hover">
                        <a href="" class="dropdown-toggle">
                            <i class="menu-icon fa fa-caret-right"></i>

                             Cheque Out
                            <b class="arrow fa fa-angle-down"></b>
                        </a>

                        <b class="arrow"></b>

                        <ul class="submenu">
                        <?php if($adminLebel==1 || $adminLebel==3){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview/newchequeout">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    New
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <?php }?>
                            
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview/allchequesout">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    View 
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/chequeinoutentryview/donechequeoutlist">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    Done
                                </a>

                                <b class="arrow"></b>
                            </li>
                        </ul>
                    </li>

                    
                </ul>
            </li>

            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-money"></i>
                    <span class="menu-text"> Adv. Money Receipt </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">

                    <li class="hover">
                        <a href="<?php echo admin_url()?>/advancemoneyreceipt">
                            <i class="menu-icon fa fa-caret-right"></i>
                            New 
                        </a>

                        <b class="arrow"></b>
                    </li>



                    <li class="hover">
                        <a href="<?php echo admin_url()?>/advancemoneyreceipt/allmrlist">
                            <i class="menu-icon fa fa-caret-right"></i>
                             View 
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <li class="hover">
                        <a href="<?php echo admin_url()?>/advancemoneyreceipt/donemrlist">
                            <i class="menu-icon fa fa-caret-right"></i>
                             Done
                        </a>

                        <b class="arrow"></b>
                    </li>
                   
                  
                </ul>
            </li>
            <li class="hover">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-phone"></i>
                    <span class="menu-text"> Customer Calls </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">

                    <li class="hover">
                        <a href="<?php echo admin_url()?>/customerCalls">
                            <i class="menu-icon fa fa-caret-right"></i>
                            New Entry
                        </a>

                        <b class="arrow"></b>
                    </li>



                    <li class="hover">
                        <a href="<?php echo admin_url()?>/customerCalls/allcalls">
                            <i class="menu-icon fa fa-caret-right"></i>
                            All Calls Report
                        </a>

                        <b class="arrow"></b>
                    </li>
                    <!--<li class="hover">-->
                    <!--    <a href="<?php echo admin_url()?>/advancemoneyreceipt/donemrlist">-->
                    <!--        <i class="menu-icon fa fa-caret-right"></i>-->
                    <!--         Done-->
                    <!--    </a>-->

                    <!--    <b class="arrow"></b>-->
                    <!--</li>-->
                   
                  
                </ul>
            </li>
            
            <li class=" hover">
                        <a href="" class="dropdown-toggle">
                            <i class="menu-icon fa fa-pencil-square-o"></i>

                            Unpaid Commission
                            <b class="arrow fa fa-angle-down"></b>
                        </a>

                        <b class="arrow"></b>

                        <ul class="submenu">
                        <?php if($adminLebel==1 || $adminLebel==3){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/unpaidCommission/index">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    New
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <?php }?>
                            
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/unpaidCommission/view_unpaidCommission">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    View 
                                </a>

                                <b class="arrow"></b>
                            </li>
                        </ul>
                 </li>

                 <li class="hover">
                        <a href="" class="dropdown-toggle">
                            <i class="menu-icon fa fa-users"></i>

                            Commission Ref.
                            <b class="arrow fa fa-angle-down"></b>
                        </a>

                        <b class="arrow"></b>

                        <ul class="submenu">
                        <?php if($adminLebel==1 || $adminLebel==3){?>
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/commissionreferencesetup/index">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    New
                                </a>

                                <b class="arrow"></b>
                            </li>
                            <?php }?>
                            
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/commissionreferencesetup/view_CommissionReference">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    View 
                                </a>

                                <b class="arrow"></b>
                            </li>
                        </ul>
                 </li>
            <?php if($adminLebel==1 ){?>
                 <li class="hover">
                        <a href="" class="dropdown-toggle">
                            <i class="menu-icon fa fa-database"></i>

                            Database
                            <b class="arrow fa fa-angle-down"></b>
                        </a>

                        <b class="arrow"></b>

                        <ul class="submenu">
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/database/backup">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    DB Backup
                                </a>

                                <b class="arrow"></b>
                            </li>
                            
                            <li class="hover">
                                <a href="<?php echo admin_url()?>/database/restore">
                                    <i class="menu-icon fa fa-caret-right"></i>
                                    DB Restore 
                                </a>

                                <b class="arrow"></b>
                            </li>
                        </ul>
                 </li>
            <?php } ?>
            
              <li class="hover">
                <a href="<?php echo admin_Url() ?>/logout" >
                    <!--<i class="menu-icon fa fa-tag"></i>
                    <span class="menu-text"> More Pages </span>-->
                    <i class="menu-icon fa fa-power-off"></i>
                    
                    <span class="menu-text"> Logout </span>
                    
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                
            </li>


            
        </ul><!-- /.nav-list -->

        <script type="text/javascript">
            try {
                ace.settings.check('sidebar', 'collapsed')
            } catch (e) {
            }
        </script>
    </div>
    <div class="main-content">
        <div class="main-content-inner">