 <aside class="main-sidebar" id="alert2">   
 <?php if ($this->rbac->hasPrivilege('student', 'can_view')) { ?>
                        <form class="navbar-form navbar-left search-form2" role="search"  action="<?php echo site_url('admin/admin/search'); ?>" method="POST">
                            <?php echo $this->customlib->getCSRF(); ?>
                            <div class="input-group ">
                                <input type="text"  name="search_text" class="form-control search-form" placeholder="Search By Learner Name">
                                <span class="input-group-btn">
                                    <button type="submit" name="search" id="search-btn" style="padding: 3px 12px !important;border-radius: 0px 30px 30px 0px; background: #fff;" class="btn btn-flat"><i class="fa fa-search"></i></button>
                                </span>
                            </div>
                        </form>  
                    <?php } ?>          
                <section class="sidebar" id="sibe-box">
      <?php $this->load->view('layout/top_sidemenu'); ?>
                    <ul class="sidebar-menu verttop">
                        <?php
                        if ($this->module_lib->hasActive('student_information')) {
                        if (($this->rbac->hasPrivilege('student', 'can_view') ||
                               $this->rbac->hasPrivilege('student', 'can_add') ||                            
                                $this->rbac->hasPrivilege('student_history', 'can_view') ||
                                 $this->rbac->hasPrivilege('student_categories', 'can_view') ||
                                  $this->rbac->hasPrivilege('student_houses', 'can_view') ||
                                   $this->rbac->hasPrivilege('disable_student', 'can_view') ||
                                     $this->rbac->hasPrivilege('student_report', 'can_add') ||
                                      $this->rbac->hasPrivilege('guardian_report', 'can_view'))) {
                                ?>


                                <li class="treeview <?php echo set_Topmenu('Student Information'); ?>">
                                    <a href="#">
                                        <i class="fa fa-user-plus"></i> <span>Learner Information</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">

                                        <?php if ($this->rbac->hasPrivilege('student', 'can_view')) { ?>

                                            <li class="<?php echo set_Submenu('student/search'); ?>"><a href="<?php echo base_url(); ?>student/search"><i class="fa fa-angle-double-right"></i> Learner Details</a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student', 'can_add')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('student/create'); ?>"><a href="<?php echo base_url(); ?>student/create"><i class="fa fa-angle-double-right"></i> Learner Admission</a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_report', 'can_add')) {
                                            ?>

                                        <li class="<?php echo set_Submenu('student/studentreport'); ?>"><a href="<?php echo base_url(); ?>student/studentreport"><i class="fa fa-angle-double-right"></i>
                                                Learner Report</a></li>

                                        <?php }
                                        if ($this->rbac->hasPrivilege('guardian_report', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('student/guardianreport'); ?>"><a href="<?php echo base_url(); ?>student/guardianreport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('guardian_report'); ?></a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_history', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/users/admissionreport'); ?>"><a href="<?php echo base_url(); ?>admin/users/admissionreport"><i class="fa fa-angle-double-right"></i> Learner History</a></li>

                                        <?php }
                                        if ($this->rbac->hasPrivilege('student_login_credential', 'can_view')) {
                                            ?>

<li class="<?php echo set_Submenu('admin/users/logindetailreport'); ?>">
    <a href="<?php echo base_url(); ?>admin/users/logindetailreport"><i class="fa fa-angle-double-right"></i> Learner <?php echo $this->lang->line('login_credential'); ?></a></li>

                                     

                                        
                                        <?php }
                                        if ($this->rbac->hasPrivilege('student_categories', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('category/index'); ?>"><a href="<?php echo base_url(); ?>category"><i class="fa fa-angle-double-right"></i> Learner Categories</a></li>
                                            
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('disable_student', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('student/disablestudentslist'); ?>"><a href="<?php echo base_url(); ?>student/disablestudentslist"><i class="fa fa-angle-double-right"></i> Disabled Learner</a></li>
                                            <?php
                                        }

									?>

                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('fees_collection')) {
                            if (($this->rbac->hasPrivilege('collect_fees', 'can_view') ||
                             $this->rbac->hasPrivilege('search_fees_payment', 'can_view') ||
                              $this->rbac->hasPrivilege('search_due_fees', 'can_view') ||
                               $this->rbac->hasPrivilege('fees_statement', 'can_view') ||
                                $this->rbac->hasPrivilege('balance_fees_report', 'can_view') ||
                                 $this->rbac->hasPrivilege('fees_carry_forward', 'can_view') || 
                                 $this->rbac->hasPrivilege('fees_master', 'can_view') || 
                                 $this->rbac->hasPrivilege('fees_group', 'can_view') ||
                                  $this->rbac->hasPrivilege('fees_type', 'can_view') ||
                                   $this->rbac->hasPrivilege('fees_discount', 'can_view') ||
                                    $this->rbac->hasPrivilege('accountants', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Fees Collection'); ?>">
                                    <a href="#">
                                        <i class="fa fa-money"></i> <span> Fees Management</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('collect_fees', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('invoicing/index'); ?>"><a href="<?php echo base_url(); ?>invoicing"><i class="fa fa-angle-double-right"></i> Invoicing</a></li>
											
                                            <li class="<?php echo set_Submenu('studentfee/index'); ?>"><a href="<?php echo base_url(); ?>studentfee"><i class="fa fa-angle-double-right"></i> Receipting</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('search_fees_payment', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('studentfee/searchpayment'); ?>"><a href="<?php echo base_url(); ?>studentfee/searchpayment"><i class="fa fa-angle-double-right"></i> Search Fees Payment</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('search_due_fees', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('studentfee/feesearch'); ?>"><a href="<?php echo base_url(); ?>studentfee/feesearch"><i class="fa fa-angle-double-right"></i> Search Due Fees</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('fees_statement', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('studentfee/reportbyname'); ?>"><a href="<?php echo base_url(); ?>studentfee/reportbyname"><i class="fa fa-angle-double-right"></i> Fees Statement</a></li>  
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('balance_fees_report', 'can_view')) {
                                            ?>                             
                                            <li class="<?php echo set_Submenu('transaction/studentacademicreport'); ?>"><a href="<?php echo base_url(); ?>admin/transaction/studentacademicreport"><i class="fa fa-angle-double-right"></i>
                                                    Balance Bill Report</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('fees_master', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/feemaster'); ?>"><a href="<?php echo base_url(); ?>admin/feemaster"><i class="fa fa-angle-double-right"></i> Fee Master</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('fees_group', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/feegroup'); ?>"><a href="<?php echo base_url(); ?>admin/feegroup"><i class="fa fa-angle-double-right"></i> Fee Group</a></li>
                                            <?php
                                        }


                                        if ($this->rbac->hasPrivilege('fees_type', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('feetype/index'); ?>"><a href="<?php echo base_url(); ?>admin/feetype"><i class="fa fa-angle-double-right"></i> Fee Type</a></li>
											
                                            <li class="<?php echo set_Submenu('payment_methods/index'); ?>"><a href="<?php echo base_url(); ?>payment_methods"><i class="fa fa-angle-double-right"></i> Payment Method</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('fees_discount', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/feediscount'); ?>"><a href="<?php echo base_url(); ?>admin/feediscount"><i class="fa fa-angle-double-right"></i> Fee Discount</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('fees_carry_forward', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('feesforward/index'); ?>"><a href="<?php echo base_url('admin/feesforward'); ?>"><i class="fa fa-angle-double-right"></i> Fee Carry Foward</a></li>
                                            <?php
                                        }
                                        ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }

                        if ($this->module_lib->hasActive('academics')) {
                            if (($this->rbac->hasPrivilege('class_timetable', 'can_view') ||
                             $this->rbac->hasPrivilege('assign_class_teacher', 'can_view') ||
                              $this->rbac->hasPrivilege('subject', 'can_view') ||
                               $this->rbac->hasPrivilege('assign_class_teacher', 'can_view') ||
                                $this->rbac->hasPrivilege('class', 'can_view') ||
                                 $this->rbac->hasPrivilege('section', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Academics'); ?>">
                                    <a href="#">
                                        <i class="fa fa-mortar-board"></i> <span><?php echo $this->lang->line('academics'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('class_timetable', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('timetable/index'); ?>"><a href="<?php echo base_url(); ?>admin/timetable"><i class="fa fa-angle-double-right"></i> Learner Timetable</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('assign_class_teacher', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/teacher/assign_class_teacher'); ?>"><a href="<?php echo base_url(); ?>admin/teacher/assign_class_teacher"><i class="fa fa-angle-double-right"></i> Assign Learner Teacher</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('assign_subject', 'can_view')) {
                                            ?>								
                                            <li class="<?php echo set_Submenu('admin/teacher/viewassignteacher'); ?>"><a href="<?php echo base_url(); ?>admin/teacher/viewassignteacher"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('assign_subjects'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('promote_student', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('stdtransfer/index'); ?>"><a href="<?php echo base_url(); ?>admin/stdtransfer"><i class="fa fa-angle-double-right"></i> Promote Learner</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('subject', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('subject/index'); ?>"><a href="<?php echo base_url(); ?>admin/subject"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('subjects'); ?></a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('class', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('classes/index'); ?>"><a href="<?php echo base_url(); ?>classes"><i class="fa fa-angle-double-right"></i> Level</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('section', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('sections/index'); ?>"><a href="<?php echo base_url(); ?>sections"><i class="fa fa-angle-double-right"></i> Class</a></li>
                                            <?php
                                        }
                                        ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }						
                        if ($this->module_lib->hasActive('certificate')) {
                            if (($this->rbac->hasPrivilege('student_certificate', 'can_view') ||
                             $this->rbac->hasPrivilege('generate_certificate', 'can_view') ||
                              $this->rbac->hasPrivilege('student_id_card', 'can_view') ||
                               $this->rbac->hasPrivilege('generate_id_card', 'can_view'))) {
                                ?>


                                <li class="treeview <?php echo set_Topmenu('Certificate'); ?>">
                                    <a href="#">
                                        <i class="fa fa-money"></i> <span>Multi Currency</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('student_certificate', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('currency'); ?>"><a href="<?php echo base_url(); ?>currency/"><i class="fa fa-angle-double-right"></i> Currency </a></li> 
											
                                            <li class="<?php echo set_Submenu('internationalcurrencies'); ?>"><a href="<?php echo base_url(); ?>internationalcurrencies/"><i class="fa fa-angle-double-right"></i> Foreign Currency </a></li>   
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('generate_certificate', 'can_view')) {
                                            ?>                             
                                            <li class="<?php echo set_Submenu('homecurrencies'); ?>"><a href="<?php echo base_url(); ?>homecurrencies/"><i class="fa fa-angle-double-right"></i> Home Currencies</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('student_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('dailyrates'); ?>"><a href="<?php echo base_url(); ?>dailyrates/"><i class="fa fa-angle-double-right"></i> Daily Rates</a></li>
											
                                            <li class="<?php echo set_Submenu('historyrates'); ?>"><a href="<?php echo base_url(); ?>dailyrates/historyrates"><i class="fa fa-angle-double-right"></i> History Rates</a></li>
                                            <?php
                                        }
                                             ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }												
                         if ($this->module_lib->hasActive('income')) {
                            if (($this->rbac->hasPrivilege('income', 'can_view') || 
                                $this->rbac->hasPrivilege('search_income', 'can_view') ||
                                 $this->rbac->hasPrivilege('income_head', 'can_view'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-usd"></i> <span>Cash Book</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('income', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('cashbook_accounts/index'); ?>"><a href="<?php echo base_url(); ?>cashbook_accounts"><i class="fa fa-angle-double-right"></i>Cash Book Account</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('cashbook/index'); ?>"><a href="<?php echo base_url(); ?>cashbook"><i class="fa fa-angle-double-right"></i>Cash Book Processing</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('income_head', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('cashbook/cashbooksearch'); ?>"><a href="<?php echo base_url(); ?>cashbook/cashbooksearch"><i class="fa fa-angle-double-right"></i> Cash Book Report</a></li>
                                        <?php } ?>
                                    </ul>
                                </li>    								
                                <?php
                            }
                        }  

                        if ($this->module_lib->hasActive('student_attendance')) {
                            if (($this->rbac->hasPrivilege('student_attendance', 'can_view') ||
                             $this->rbac->hasPrivilege('student_attendance_report', 'can_view') ||
                              $this->rbac->hasPrivilege('attendance_report', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Attendance'); ?>">
                                    <a href="#">
                                        <i class="fa fa-calendar-check-o"></i> <span><?php echo $this->lang->line('attendance'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('student_attendance', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('stuattendence/index'); ?>"><a href="<?php echo base_url(); ?>admin/stuattendence"><i class="fa fa-angle-double-right"></i> Learner Attendance</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('attendance_by_date', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('stuattendence/attendenceReport'); ?>"><a href="<?php echo base_url(); ?>admin/stuattendence/attendencereport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('attendance_by_date'); ?></a></li>
                                        <?php } if ($this->rbac->hasPrivilege('student_attendance_report', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('stuattendence/classattendencereport'); ?>"><a href="<?php echo base_url(); ?>admin/stuattendence/classattendencereport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('attendance_report'); ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
 
                        if ($this->module_lib->hasActive('homework')) {
                            if (($this->rbac->hasPrivilege('homework', 'can_view') ||
                             $this->rbac->hasPrivilege('homework_report', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Homework'); ?>">
                                    <a href="#">
                                        <i class="fa fa-flask"></i> <span><?php echo $this->lang->line('homework'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('homework', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('homework'); ?>"><a href="<?php echo base_url(); ?>homework"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('add_homework'); ?></a></li>
                                        <?php } if ($this->rbac->hasPrivilege('homework_report', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('homework/evaluation_report'); ?>"><a href="<?php echo base_url(); ?>homework/evaluation_report"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('evaluation_report'); ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('examination')) {
                            if (($this->rbac->hasPrivilege('exam', 'can_view') ||
                             $this->rbac->hasPrivilege('exam_schedule', 'can_view') ||
                              $this->rbac->hasPrivilege('marks_register', 'can_view') ||
                               $this->rbac->hasPrivilege('marks_grade', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Examinations'); ?>">
                                    <a href="#">
                                        <i class="fa fa-map-o"></i> <span><?php echo $this->lang->line('examinations'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('exam', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('exam/index'); ?>"><a href="<?php echo base_url(); ?>admin/exam"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('exam_list'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('exam_schedule', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('examschedule/index'); ?>"><a href="<?php echo base_url(); ?>admin/examschedule"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('exam_schedule'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('marks_register', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('mark/index'); ?>"><a href="<?php echo base_url(); ?>admin/mark"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('marks_register'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('marks_grade', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('grade/index'); ?>"><a href="<?php echo base_url(); ?>admin/grade"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('marks_grade'); ?></a></li> <?php } ?>

                                    </ul>
                                </li>
                                <?php
                            }
                        }
						if ($this->module_lib->hasActive('income')) {
                            if (($this->rbac->hasPrivilege('income', 'can_view') || 
                                $this->rbac->hasPrivilege('search_income', 'can_view') ||
                                 $this->rbac->hasPrivilege('income_head', 'can_view'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('Uniforms'); ?>">
                                    <a href="#">
                                        <i class="fa fa-graduation-cap"></i> <span>Uniforms</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php } 
										if ($this->rbac->hasPrivilege('types', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('types/index'); ?>"><a href="<?php echo base_url(); ?>types"><i class="fa fa-angle-double-right"></i>Types</a></li>
                                            <?php
                                        } 
                                        if ($this->rbac->hasPrivilege('group', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('group/index'); ?>"><a href="<?php echo base_url(); ?>group"><i class="fa fa-angle-double-right"></i>Groups</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('values', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('values/index'); ?>"><a href="<?php echo base_url(); ?>values"><i class="fa fa-angle-double-right"></i>Values</a></li>
                                        <?php                                        
										}
                                        if ($this->rbac->hasPrivilege('warehouse', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('warehouse/index'); ?>"><a href="<?php echo base_url(); ?>warehouse"><i class="fa fa-angle-double-right"></i>Warehouse</a></li>
                                        <?php 
										if ($this->rbac->hasPrivilege('types', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('uniformitem/index'); ?>"><a href="<?php echo base_url(); ?>uniformitem"><i class="fa fa-angle-double-right"></i>Add Item</a></li>
                                            <?php
                                        }?>	                                        
										<?php 
										if ($this->rbac->hasPrivilege('uniformpos', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('uniformpos/index'); ?>"><a href="<?php echo base_url(); ?>uniformpos"><i class="fa fa-angle-double-right"></i>Uniform POS</a></li>
                                            <?php
                                        }?>										
                                    </ul>
                                </li>
                                <?php
                            }
                        }
						
                        if ($this->module_lib->hasActive('transport')) {
                            if (($this->rbac->hasPrivilege('routes', 'can_view') ||
                             $this->rbac->hasPrivilege('vehicle', 'can_view') ||
                              $this->rbac->hasPrivilege('assign_vehicle', 'can_view') ||
                               $this->rbac->hasPrivilege('assign_vehicle', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Transport'); ?>">
                                    <a href="#">
                                        <i class="fa fa-bus"></i> <span><?php echo $this->lang->line('transport'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('routes', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('route/index'); ?>"><a href="<?php echo base_url(); ?>admin/route"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('routes'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('vehicle', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('vehicle/index'); ?>"><a href="<?php echo base_url(); ?>admin/vehicle"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('vehicles'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('assign_vehicle', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('vehroute/index'); ?>"><a href="<?php echo base_url(); ?>admin/vehroute"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('assign_vehicle'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/route/studenttransportdetails'); ?>"><a href="<?php echo base_url(); ?>admin/route/studenttransportdetails"><i class="fa fa-angle-double-right"></i> Learner Transport Report</a></li>
                                        <?php } ?>


                                    </ul>
                                </li>


                                <?php
                            }
                        }			
                        if ($this->module_lib->hasActive('inventory')) {
                            if (($this->rbac->hasPrivilege('issue_item', 'can_view') ||
                             $this->rbac->hasPrivilege('item_stock', 'can_view') ||
                              $this->rbac->hasPrivilege('item', 'can_view') ||
                               $this->rbac->hasPrivilege('item_category', 'can_view') ||
                                $this->rbac->hasPrivilege('item_category', 'can_view') ||
                                 $this->rbac->hasPrivilege('store', 'can_view') ||
                                  $this->rbac->hasPrivilege('supplier', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Inventory'); ?>">
                                    <a href="#">
                                        <i class="fa fa-object-group"></i> <span><?php echo $this->lang->line('inventory'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('issue_item', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('issueitem/index'); ?>"><a href="<?php echo base_url(); ?>admin/issueitem"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('issue_item'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('item_stock', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('Itemstock/index'); ?>"><a href="<?php echo base_url(); ?>admin/itemstock"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('add_item_stock'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('item', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('Item/index'); ?>"><a href="<?php echo base_url(); ?>admin/item"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('add_item'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('item_category', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('itemcategory/index'); ?>"><a href="<?php echo base_url(); ?>admin/itemcategory"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('item_category'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('store', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('itemstore/index'); ?>"><a href="<?php echo base_url(); ?>admin/itemstore"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('item_store'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('supplier', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('itemsupplier/index'); ?>"><a href="<?php echo base_url(); ?>admin/itemsupplier"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('item_supplier'); ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('download_center')) {
                            if (($this->rbac->hasPrivilege('upload_content', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Download Center'); ?>">
                                    <a href="#">
                                        <i class="fa fa-download"></i> <span><?php echo $this->lang->line('download_center'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('upload_content', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('admin/content'); ?>"><a href="<?php echo base_url(); ?>admin/content"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('upload_content'); ?></a></li>
                                        <?php } ?>
                                        <li class="<?php echo set_Submenu('content/assignment'); ?>"><a href="<?php echo base_url(); ?>admin/content/assignment"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('assignments'); ?></a></li>
                                        <li class="<?php echo set_Submenu('content/studymaterial'); ?>"><a href="<?php echo base_url(); ?>admin/content/studymaterial"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('study_material'); ?></a></li>
                                        <li class="<?php echo set_Submenu('content/syllabus'); ?>"><a href="<?php echo base_url(); ?>admin/content/syllabus"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('syllabus'); ?></a></li>
                                        <li class="<?php echo set_Submenu('content/other'); ?>"><a href="<?php echo base_url(); ?>admin/content/other"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('other_downloads'); ?></a></li>
                                    </ul>
                                </li>
                                <?php
                            }
                        }

                        if ($this->module_lib->hasActive('communicate')) {
                            if (($this->rbac->hasPrivilege('notice_board', 'can_view') ||
                             $this->rbac->hasPrivilege('email_sms', 'can_view') ||
                              $this->rbac->hasPrivilege('email_sms_log', 'can_view'))) {
                                ?>
                                <li class = "treeview <?php echo set_Topmenu('Communicate'); ?>">
                                    <a href = "#">
                                        <i class = "fa fa-bullhorn"></i> <span>Messages</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('notice_board', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('notification/index'); ?>"><a href="<?php echo base_url(); ?>admin/notification"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('notice_board'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('email_sms', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('notification/add'); ?>"><a href="<?php echo base_url(); ?>admin/notification/add"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('send_message'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('email_sms', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('mailsms/compose'); ?>"><a href="<?php echo base_url(); ?>admin/mailsms/compose"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('send_email_/_sms'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('email_sms_log', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('mailsms/index'); ?>"><a href="<?php echo base_url(); ?>admin/mailsms/index"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('email_/_sms_log'); ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }	

                        	
                        if ($this->module_lib->hasActive('human_resource')) {
                            if (($this->rbac->hasPrivilege('staff', 'can_view') ||
                             $this->rbac->hasPrivilege('staff_attendance', 'can_view') ||
                              $this->rbac->hasPrivilege('staff_attendance_report', 'can_view') ||
                               $this->rbac->hasPrivilege('staff_payroll', 'can_view') ||
                                $this->rbac->hasPrivilege('payroll_report', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('HR'); ?>">
                                    <a href="#">
                                        <i class="fa fa-sitemap"></i> <span> HR & Payroll</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('staff', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('admin/staff'); ?>"><a href="<?php echo base_url(); ?>admin/staff"><i class="fa fa-angle-double-right"></i> HR Directory</a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('staff_attendance', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/staffattendance'); ?>"><a href="<?php echo base_url(); ?>admin/staffattendance"><i class="fa fa-angle-double-right"></i> HR Attendance</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('staff_attendance_report', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/staffattendance/attendancereport'); ?>"><a href="<?php echo base_url(); ?>admin/staffattendance/attendancereport"><i class="fa fa-angle-double-right"></i> HR Attendance Report</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('staff_payroll', 'can_view')) {
                                            ?>


                                            <li class="<?php echo set_Submenu('admin/payroll'); ?>"><a href="<?php echo base_url(); ?>admin/payroll"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('payroll'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('payroll_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/payroll/payrollreport'); ?>"><a href="<?php echo base_url(); ?>admin/payroll/payrollreport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('payroll_report'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('approve_leave_request', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/leaverequest/leaverequest'); ?>"><a href="<?php echo base_url(); ?>admin/leaverequest/leaverequest"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('approve_leave_request'); ?></a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('apply_leave', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/staff/leaverequest'); ?>"><a href="<?php echo base_url(); ?>admin/staff/leaverequest"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('apply_leave'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('leave_types', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/leavetypes'); ?>"><a href="<?php echo base_url(); ?>admin/leavetypes"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('leave_type'); ?></a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('department', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/department/department'); ?>"><a href="<?php echo base_url(); ?>admin/department/department"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('department'); ?></a></li>

                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('designation', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/designation/designation'); ?>"><a href="<?php echo base_url(); ?>admin/designation/designation"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('designation'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('disable_staff', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/staff/disablestafflist'); ?>"><a href="<?php echo base_url(); ?>admin/staff/disablestafflist"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('disabled_staff'); ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('reports')) {
                            if (($this->rbac->hasPrivilege('transaction_report', 'can_view') ||
                             $this->rbac->hasPrivilege('user_log', 'can_view') )) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Reports'); ?>">
                                    <a href="#">
                                        <i class="fa fa-line-chart"></i> <span><?php echo $this->lang->line('reports'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                                            ?>
                                        <li class="<?php echo set_Submenu('student/studentreport'); ?>"><a href="<?php echo base_url(); ?>student/studentreport"><i class="fa fa-angle-double-right"></i>
                                                Learner Report</a></li>

                                        <?php } if ($this->rbac->hasPrivilege('guardian_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('student/guardianreport'); ?>"><a href="<?php echo base_url(); ?>student/guardianreport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('guardian_report'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_history', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/users/admissionreport'); ?>"><a href="<?php echo base_url(); ?>admin/users/admissionreport"><i class="fa fa-angle-double-right"></i> Learner History</a></li>
                                            <?php
                                        }


                                        if ($this->rbac->hasPrivilege('student_login_credential', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/users/logindetailreport'); ?>"><a href="<?php echo base_url(); ?>admin/users/logindetailreport"><i class="fa fa-angle-double-right"></i> Learner <?php echo $this->lang->line('login_credential'); ?></a></li>
                                      
                                         <?php
                                        }


                                        if ($this->rbac->hasPrivilege('fees_statement', 'can_view')) {
                                            ?>
                                        <li class="<?php echo set_Submenu('reportbyname/index'); ?>"><a href="<?php echo base_url(); ?>studentfee/reportbyname"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('fees_statement'); ?></a></li>
<?php
                                        }


                                        if ($this->rbac->hasPrivilege('balance_fees_report', 'can_view')) {
                                            ?>

                                        <li class="<?php echo set_Submenu('transaction/studentacademicreport'); ?>"><a href="<?php echo base_url(); ?>admin/transaction/studentacademicreport"><i class="fa fa-angle-double-right"></i>
                                                <?php echo $this->lang->line('balance_fees_report'); ?></a></li>
                                        <?php }
                                        if ($this->rbac->hasPrivilege('transaction_report', 'can_view')) {
                                            ?>                               
                                            <li class="<?php echo set_Submenu('transaction/searchtransaction'); ?>"> <a href="<?php echo base_url(); ?>admin/transaction/searchtransaction"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('transaction_report'); ?></a></li>
                                       <?php }
                                        if ($this->rbac->hasPrivilege('attendance_report', 'can_view')) {
                                            ?> 
                                        <li class="<?php echo set_Submenu('stuattendence/classattendencereport'); ?>"><a href="<?php echo base_url(); ?>admin/stuattendence/classattendencereport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('attendance_report'); ?></a></li>
                                        <?php }
                                        if ($this->rbac->hasPrivilege('exam_marks_report', 'can_view')) {
                                            ?> 
                                        <li class="<?php echo set_Submenu('mark/index'); ?>"><a href="<?php echo base_url(); ?>admin/mark"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('exam_marks_report'); ?></a></li>

                                        <?php }
                                        if ($this->rbac->hasPrivilege('payroll_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/payroll/payrollreport'); ?>"><a href="<?php echo base_url(); ?>admin/payroll/payrollreport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('payroll_report'); ?></a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('staff_attendance_report', 'can_view')) {
                                            ?>

                                            <li class="<?php echo set_Submenu('admin/staffattendance/attendancereport'); ?>"><a href="<?php echo base_url(); ?>admin/staffattendance/attendancereport"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('staff_attendance_report'); ?></a></li>
                                            <?php
                                        }




                                        if ($this->rbac->hasPrivilege('homework_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('homework/evaluation_report'); ?>"><a href="<?php echo base_url(); ?>homework/evaluation_report"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('evaluation_report'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/route/studenttransportdetails'); ?>"><a href="<?php echo base_url(); ?>admin/route/studenttransportdetails"><i class="fa fa-angle-double-right"></i> Learner Transport Report</a></li>
                                            <?php
                                        }                                        
										if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('inventoryreport/index'); ?>"><a href="<?php echo base_url(); ?>inventoryreport"><i class="fa fa-angle-double-right"></i> Inventory Report</a></li>
                                            <?php
                                        }										
										if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('uniformreport/index'); ?>"><a href="<?php echo base_url(); ?>uniformreport"><i class="fa fa-angle-double-right"></i> Uniform Report</a></li>
                                            <?php
                                        }                                  
                                        if ($this->rbac->hasPrivilege('user_log', 'can_view')) {
                                            ?>   
                                            <li class="<?php echo set_Submenu('userlog/index'); ?>"><a href="<?php echo base_url(); ?>admin/userlog"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('user_log'); ?></a></li>
                                        <?php }
                                        ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('system_settings')) {
                            if (($this->rbac->hasPrivilege('general_setting', 'can_edit') ||
                             $this->rbac->hasPrivilege('session_setting', 'can_view') ||
                              $this->rbac->hasPrivilege('notification_setting', 'can_edit') ||
                               $this->rbac->hasPrivilege('sms_setting', 'can_edit') ||
                                $this->rbac->hasPrivilege('email_setting', 'can_edit') ||
                                 $this->rbac->hasPrivilege('payment_methods', 'can_edit') ||
                                  $this->rbac->hasPrivilege('languages', 'can_view') ||
                                   $this->rbac->hasPrivilege('languages', 'can_add') ||
                                    $this->rbac->hasPrivilege('backup_restore', 'can_view') ||
                                     $this->rbac->hasPrivilege('front_cms_setting', 'can_edit'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('System Settings'); ?>">
                                    <a href="#">
                                        <i class="fa fa-gears"></i> <span>School Details</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                      <?php
                                        if ($this->rbac->hasPrivilege('payment_methods', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('school_type'); ?>"><a href="<?php echo base_url(); ?>school_type"><i class="fa fa-angle-double-right"></i> School Type</a></li> 
											<li class="<?php echo set_Submenu('school_group'); ?>"><a href="<?php echo base_url(); ?>school_group"><i class="fa fa-angle-double-right"></i>School Group</a></li>
											<li class="<?php echo set_Submenu('school_details'); ?>"><a href="<?php echo base_url(); ?>school_details"><i class="fa fa-angle-double-right"></i> School Details</a></li>
                                            <?php
                                        }?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }						
                        if ($this->module_lib->hasActive('system_settings')) {
                            if (($this->rbac->hasPrivilege('general_setting', 'can_edit') ||
                             $this->rbac->hasPrivilege('session_setting', 'can_view') ||
                              $this->rbac->hasPrivilege('notification_setting', 'can_edit') ||
                               $this->rbac->hasPrivilege('sms_setting', 'can_edit') ||
                                $this->rbac->hasPrivilege('email_setting', 'can_edit') ||
                                 $this->rbac->hasPrivilege('payment_methods', 'can_edit') ||
                                  $this->rbac->hasPrivilege('languages', 'can_view') ||
                                   $this->rbac->hasPrivilege('languages', 'can_add') ||
                                    $this->rbac->hasPrivilege('backup_restore', 'can_view') ||
                                     $this->rbac->hasPrivilege('front_cms_setting', 'can_edit'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('System Settings'); ?>">
                                    <a href="#">
                                        <i class="fa fa-gears"></i> <span><?php echo $this->lang->line('system_settings'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('general_setting', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('schsettings/index'); ?>"><a href="<?php echo base_url(); ?>schsettings"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('general_settings'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('session_setting', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('sessions/index'); ?>"><a href="<?php echo base_url(); ?>sessions"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('session_setting'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('notification_setting', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('notification/setting'); ?>"><a href="<?php echo base_url(); ?>admin/notification/setting"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('notification_setting'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('sms_setting', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('smsconfig/index'); ?>"><a href="<?php echo base_url(); ?>smsconfig"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('sms_setting'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('email_setting', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('emailconfig/index'); ?>"><a href="<?php echo base_url(); ?>emailconfig"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('email_setting'); ?></a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('payment_methods', 'can_edit')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/paymentsettings'); ?>"><a href="<?php echo base_url(); ?>admin/paymentsettings"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('payment_methods'); ?></a></li>
                                            <?php
                                        }
                                        ?>
                                        <?php if ($this->rbac->hasPrivilege('superadmin')) { ?>
                                            <li class="<?php echo set_Submenu('admin/roles'); ?>"><a href="<?php echo base_url(); ?>admin/roles"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('roles_permissions'); ?></a></li>
                                        <?php } ?>
                                        <?php
                                        if ($this->rbac->hasPrivilege('backup', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/backup'); ?>"><a href="<?php echo base_url(); ?>admin/admin/backup"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('backup / restore'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('languages', 'can_add')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('language/index'); ?>"><a href="<?php echo base_url(); ?>admin/language"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('languages'); ?></a></li> 
                                            <?php
                                        }
                                        ?>
                                         <?php if ($this->rbac->hasPrivilege('user_status')) { ?>
                                        <li class="<?php echo set_Submenu('users/index'); ?>"><a href="<?php echo base_url(); ?>admin/users"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('users'); ?></a></li>
                                         <?php } if ($this->rbac->hasPrivilege('superadmin')) { ?>
                                        <li class="<?php echo set_Submenu('admin/module'); ?>"><a href="<?php echo base_url(); ?>admin/module"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('modules'); ?></a></li>
                                    <?php  } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        ?>


                    </ul>
                </section>             
            </aside>  