 <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('front_office')) {
                            if (($this->rbac->hasPrivilege('admission_enquiry', 'can_view') ||
                             $this->rbac->hasPrivilege('visitor_book', 'can_view') ||
                              $this->rbac->hasPrivilege('phon_call_log', 'can_view') || 
                              $this->rbac->hasPrivilege('postal_dispatch', 'can_view') ||
                               $this->rbac->hasPrivilege('postal_receive', 'can_view') || 
                               $this->rbac->hasPrivilege('complaint', 'can_view') || 
                               $this->rbac->hasPrivilege('setup_font_office', 'can_view'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('front_office'); ?>">
                                    <a href="#">
                                        <i class="fa fa-ioxhost"></i> <span>Help Desk</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('admission_enquiry', 'can_view')) { ?>

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

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

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

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

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

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

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

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

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

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

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

                                            <li class="<?php echo set_Submenu('admin/visitorspurpose'); ?>"><a href="<?php echo base_url(); ?>admin/visitorspurpose"><i class="fa fa-angle-double-right"></i>Setup Help Desk</a></li>

                                        <?php } ?>
                                    </ul>
                                </li>
                                <?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_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> Billing 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 Bill 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 Bill</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> Bill 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> Bill 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> Bill 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> Bill 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> Bill 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('multi_currency')) {
                            if (($this->rbac->hasPrivilege('multi_currency', 'can_view') ||
                                $this->rbac->hasPrivilege('currency', 'can_view') ||
                                $this->rbac->hasPrivilege('foreign_currency', 'can_view') ||
                                $this->rbac->hasPrivilege('home_currencies', 'can_view') ||
                                $this->rbac->hasPrivilege('daily_rates', 'can_view') ||
                                $this->rbac->hasPrivilege('history_rates', 'can_view')

                               )) {
                                ?>


                                <li class="treeview <?php echo set_Topmenu('Multi Currency'); ?>">
                                    <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('currency', '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> 
										<?php
                                        }
                                        if ($this->rbac->hasPrivilege('foreign_currency', 'can_view')) {
                                            ?>
                                            <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('home_currencies', '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('daily_rates', '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>
										   <?php
                                        }	

                                        if ($this->rbac->hasPrivilege('history_rates', 'can_view')) {
                                            ?>
                                            <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('general_ledger')) {
                        if (($this->rbac->hasPrivilege('general_ledger', 'can_view') ||
                            $this->rbac->hasPrivilege('gl_account_types', 'can_view') ||
                             $this->rbac->hasPrivilege('gl_accounts', 'can_view') ||
                              $this->rbac->hasPrivilege('gl_subaccounts', 'can_view'))) {
                                ?>

								<li class="treeview <?php echo set_Topmenu('General Ledger'); ?>">
                                    <a href="#">
                                        <i class="fa fa-credit-card"></i> <span>General Ledger</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('gl_account_types', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('gl_accounts_types/index'); ?>"><a href="<?php echo base_url(); ?>gl_accounts_types"><i class="fa fa-angle-double-right"></i> Account Type</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('gl_accounts', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('glledger_accounts/index'); ?>"><a href="<?php echo base_url(); ?>glledger_accounts"><i class="fa fa-angle-double-right"></i> GL Account</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('gl_subaccounts', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('glsub_accounts/index'); ?>"><a href="<?php echo base_url(); ?>glsub_accounts"><i class="fa fa-angle-double-right"></i>SUB Account</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>
											
                                            <li class="<?php echo set_Submenu('admin/undeposited_funds/searchundeposited_funds'); ?>"><a href="<?php echo base_url(); ?>admin/undeposited_funds/searchundeposited_funds"><i class="fa fa-angle-double-right"></i> Make Deposits</a></li>
											
                                            <li class="<?php echo set_Submenu('admin/undeposited_funds/searchundeposited_funds'); ?>"><a href="<?php echo base_url(); ?>admin/undeposited_funds/history"><i class="fa fa-angle-double-right"></i> Undeposited Funds</a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
								
								<li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-money"></i> <span>Bank Reconciliation</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('bankreconciliation//bankrec_yrperiod'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation/bankrec_yrperiod"><i class="fa fa-angle-double-right"></i>Bank Year</a></li>
											 
											 <li class="<?php echo set_Submenu('bankreconciliation/index'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation"><i class="fa fa-angle-double-right"></i>Reconcile Statement</a></li>
											 
											 <li class="<?php echo set_Submenu('bankreconciliation/bankrec_report'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation/bankrec_report"><i class="fa fa-angle-double-right"></i>Statement Report</a></li>
                                            <?php
                                        }?>
                                    </ul>
                                </li>	

                                                             <li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-usd"></i> <span>Journal</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('journal_accounts/index'); ?>"><a href="<?php echo base_url(); ?>journal_accounts"><i class="fa fa-angle-double-right"></i>Journal Account</a></li>
                                            <li class="<?php echo set_Submenu('journal/index'); ?>"><a href="<?php echo base_url(); ?>jornal"><i class="fa fa-angle-double-right"></i>Journal Processing</a></li>
                                            <li class="<?php echo set_Submenu('journal/index'); ?>"><a href="<?php echo base_url(); ?>jornal/journalsearch"><i class="fa fa-angle-double-right"></i>Journal Report</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('Expenses'); ?>">
                                    <a href="#">
                                        <i class="fa fa-credit-card"></i> <span>General Ledger</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('expense', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('gl_accounts_types/index'); ?>"><a href="<?php echo base_url(); ?>gl_accounts_types"><i class="fa fa-angle-double-right"></i> Account Type</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('search_expense', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('glledger_accounts/index'); ?>"><a href="<?php echo base_url(); ?>glledger_accounts"><i class="fa fa-angle-double-right"></i> GL Account</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('expense_head', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('glsub_accounts/index'); ?>"><a href="<?php echo base_url(); ?>glsub_accounts"><i class="fa fa-angle-double-right"></i>SUB Account</a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php
                            }
                        }						
                         if ($this->module_lib->hasActive('cashbook')) {
                            if (($this->rbac->hasPrivilege('cashbook_accounts', 'can_view') || 
                                $this->rbac->hasPrivilege('cashbook_process', 'can_view') ||
                                 $this->rbac->hasPrivilege('cashbook', '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('cashbook_accounts', '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('cashbook_process', '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('cashbook_report', '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>
											
                                            <li class="<?php echo set_Submenu('admin/undeposited_funds/searchundeposited_funds'); ?>"><a href="<?php echo base_url(); ?>admin/undeposited_funds/searchundeposited_funds"><i class="fa fa-angle-double-right"></i> Make Deposits</a></li>
											
                                            <li class="<?php echo set_Submenu('admin/undeposited_funds/searchundeposited_funds'); ?>"><a href="<?php echo base_url(); ?>admin/undeposited_funds/history"><i class="fa fa-angle-double-right"></i> Undeposited Funds</a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
								
								<li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-money"></i> <span>Bank Reconciliation</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('bankreconciliation//bankrec_yrperiod'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation/bankrec_yrperiod"><i class="fa fa-angle-double-right"></i>Bank Year</a></li>
											 
											 <li class="<?php echo set_Submenu('bankreconciliation/index'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation"><i class="fa fa-angle-double-right"></i>Reconcile Statement</a></li>
											 
											 <li class="<?php echo set_Submenu('bankreconciliation/bankrec_report'); ?>"><a href="<?php echo base_url(); ?>bankreconciliation/bankrec_report"><i class="fa fa-angle-double-right"></i>Statement Report</a></li>
                                            <?php
                                        }?>
                                    </ul>
                                </li>	

                                                             <li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-usd"></i> <span>Journal</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('journal_accounts/index'); ?>"><a href="<?php echo base_url(); ?>journal_accounts"><i class="fa fa-angle-double-right"></i>Journal Account</a></li>
                                            <li class="<?php echo set_Submenu('journal/index'); ?>"><a href="<?php echo base_url(); ?>jornal"><i class="fa fa-angle-double-right"></i>Journal Processing</a></li>
                                            <li class="<?php echo set_Submenu('journal/index'); ?>"><a href="<?php echo base_url(); ?>jornal/journalsearch"><i class="fa fa-angle-double-right"></i>Journal Report</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('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
                                        }?>
                                        <?php
                                          if ($this->rbac->hasPrivilege('student_certificate', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('uniformreceipting/index'); ?>"><a href="<?php echo base_url(); ?>uniformreceipting"><i class="fa fa-angle-double-right"></i>Uniform Receipting</a></li>
                                             <?php
                                         }?>
                                         
                                         <li class="<?php echo set_Submenu('uniformstatement/unifstatement'); ?>"><a href="<?php echo base_url('uniformstatement/unifstatement'); ?>"><i class="fa fa-angle-double-right"></i>Uniform Statement </a>
                                       
                                        
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('hostel')) {
                            if (($this->rbac->hasPrivilege('hostel_rooms', 'can_view') ||
                             $this->rbac->hasPrivilege('room_type', 'can_view') ||
                              $this->rbac->hasPrivilege('hostel', 'can_view'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('Hostel'); ?>">
                                    <a href="#">
                                        <i class="fa fa-building-o"></i> <span>Dormitory</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('hostel_rooms', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('hostelroom/index'); ?>"><a href="<?php echo base_url(); ?>admin/hostelroom"><i class="fa fa-angle-double-right"></i> Dormitory Rooms</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('room_type', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('roomtype/index'); ?>"><a href="<?php echo base_url(); ?>admin/roomtype"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('room_type'); ?></a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('hostel', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('hostel/index'); ?>"><a href="<?php echo base_url(); ?>admin/hostel"><i class="fa fa-angle-double-right"></i> Dormitory</a></li> 
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('student_hostel_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/hostelroom/studenthosteldetails'); ?>"><a href="<?php echo base_url(); ?>admin/hostelroom/studenthosteldetails"><i class="fa fa-angle-double-right"></i> Learner Dormitory 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('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('hostel')) {
                            if (($this->rbac->hasPrivilege('hostel_rooms', 'can_view') ||
                             $this->rbac->hasPrivilege('room_type', 'can_view') ||
                              $this->rbac->hasPrivilege('hostel', 'can_view'))) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Hostel'); ?>">
                                    <a href="#">
                                        <i class="fa fa-ambulance"></i> <span>Medical</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('hostel_rooms', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('medical/index'); ?>"><a href="<?php echo base_url(); ?>medical"><i class="fa fa-angle-double-right"></i> Medical Practitioner</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('room_type', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('allergies/index'); ?>"><a href="<?php echo base_url(); ?>allergies"><i class="fa fa-angle-double-right"></i> Allergies</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('hostel', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('medical_details/index'); ?>"><a href="<?php echo base_url(); ?>medical_details"><i class="fa fa-angle-double-right"></i> Medical Details</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('hostel')) {
                            if (($this->rbac->hasPrivilege('hostel_rooms', 'can_view') ||
                             $this->rbac->hasPrivilege('room_type', 'can_view') ||
                              $this->rbac->hasPrivilege('hostel', 'can_view'))) {
                                ?>

                                <li class="treeview <?php echo set_Topmenu('Hostel'); ?>">
                                    <a href="#">
                                        <i class="fa fa-group"></i> <span>Sport</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('hostel_rooms', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('categories/index'); ?>"><a href="<?php echo base_url(); ?>categories"><i class="fa fa-angle-double-right"></i> Category</a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('room_type', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('sport/index'); ?>"><a href="<?php echo base_url(); ?>sport"><i class="fa fa-angle-double-right"></i> Sport</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('hostel', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('teams/index'); ?>"><a href="<?php echo base_url(); ?>teams"><i class="fa fa-angle-double-right"></i> Team</a></li> 
											
                                            <li class="<?php echo set_Submenu('teammember/index'); ?>"><a href="<?php echo base_url(); ?>teammember"><i class="fa fa-angle-double-right"></i> Assign Student Sport</a></li> 
											
                                            <li class="<?php echo set_Submenu('teammember/index'); ?>"><a href="<?php echo base_url(); ?>teammember/search_student_sport"><i class="fa fa-angle-double-right"></i> Student Sport</a></li> 
                                            <?php
                                        }
                                        ?>
                                    </ul>
                                </li>

                                <?php
                            }
                        }		

                        if ($this->module_lib->hasActive('library')) {
                            if (($this->rbac->hasPrivilege('books', 'can_view') ||
                             $this->rbac->hasPrivilege('books', 'can_add') ||
                            $this->rbac->hasPrivilege('issue_return', 'can_view') ||
                                 $this->rbac->hasPrivilege('add_staff_member', 'can_view') ||
                                  $this->rbac->hasPrivilege('add_student', 'can_view')
                             )) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Library'); ?>">
                                    <a href="#">
                                        <i class="fa fa-book"></i> <span><?php echo $this->lang->line('library'); ?></span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('books', 'can_add')) { ?>
                                            <li class="<?php echo set_Submenu('book/index'); ?>"><a href="<?php echo base_url(); ?>admin/book"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('add_book'); ?></a></li>
                                        <?php } if ($this->rbac->hasPrivilege('books', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('book/getall'); ?>">
                                                <a href="<?php echo base_url(); ?>admin/book/getall"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('book_list'); ?></a></li>
                                        <?php } if ($this->rbac->hasPrivilege('issue_return', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('member/index'); ?>"><a href="<?php echo base_url(); ?>admin/member"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('issue_return'); ?></a></li>
                                        <?php } ?>
                                        <?php if ($this->rbac->hasPrivilege('add_student', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('member/student'); ?>"><a href="<?php echo base_url(); ?>admin/member/student"><i class="fa fa-angle-double-right"></i> Add Learner</a></li> 
                                        <?php } ?>
                                        <?php if ($this->rbac->hasPrivilege('add_staff_member', 'can_view')) { ?>
                                            <li class="<?php echo set_Submenu('member/teacher'); ?>"><a href="<?php echo base_url(); ?>admin/member/teacher"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('add_staff_member'); ?></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('receive_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('Warehouse'); ?></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('Add_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('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('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('Discipline'); ?>">
                                    <a href="#">
                                        <i class="fa fa-gavel"></i> <span><?php echo $this->lang->line('discipline'); ?></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('discipline/incident_types'); ?>"><a href="<?php echo base_url(); ?>admin/discipline/incident_types"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('incident_type'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('exam_schedule', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('discipline/incident_categories'); ?>"><a href="<?php echo base_url(); ?>admin/discipline/incident_categories"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('incident_category'); ?></a></li>
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('marks_register', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('discipline/create_incident'); ?>"><a href="<?php echo base_url(); ?>admin/discipline/create_incident"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('create_incident'); ?></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-newspaper-o"></i> <span><?php echo $this->lang->line('certificate'); ?></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('admin/certificate'); ?>"><a href="<?php echo base_url(); ?>admin/certificate/"><i class="fa fa-angle-double-right"></i> Learner <?php echo $this->lang->line('certificate'); ?></a></li>   
                                            <?php
                                        }

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

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

                                        if ($this->rbac->hasPrivilege('generate_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('admin/generateidcard'); ?>"><a href="<?php echo base_url('admin/generateidcard/'); ?>"><i class="fa fa-angle-double-right"></i><?php echo $this->lang->line('generate'); ?> <?php echo $this->lang->line('icard'); ?></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('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-user"></i> <span>Customer</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('customer/index'); ?>"><a href="<?php echo base_url(); ?>customer"><i class="fa fa-angle-double-right"></i>Add Customer</a></li>
											 
											 <li class="<?php echo set_Submenu('customer/customer_invoice'); ?>"><a href="<?php echo base_url(); ?>customer/customer_invoice"><i class="fa fa-angle-double-right"></i>Customer Invoice</a></li>
											 
											 <li class="<?php echo set_Submenu('customer/customer_receipt'); ?>"><a href="<?php echo base_url(); ?>customer/customer_receipt"><i class="fa fa-angle-double-right"></i>Customer Receipt</a></li>
											 
											 <li class="<?php echo set_Submenu('customer/customer_statement'); ?>"><a href="<?php echo base_url(); ?>customer/customer_statement"><i class="fa fa-angle-double-right"></i>Customer Statement</a></li>
                                            <?php
                                        }?>
                                    </ul>
                                </li>
								
								<li class="treeview <?php echo set_Topmenu('Income'); ?>">
                                    <a href="#">
                                        <i class="fa fa-user"></i> <span>Supplier</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php
                                        if ($this->rbac->hasPrivilege('search_income', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('supplier/index'); ?>"><a href="<?php echo base_url(); ?>supplier"><i class="fa fa-angle-double-right"></i>Add Supplier</a></li>
											 
											 <li class="<?php echo set_Submenu('supplier/supplier_invoice'); ?>"><a href="<?php echo base_url(); ?>supplier/supplier_invoice"><i class="fa fa-angle-double-right"></i>Supplier Invoice</a></li>
											 
						
											 
											 <li class="<?php echo set_Submenu('supplier/supplier_statement'); ?>"><a href="<?php echo base_url(); ?>supplier/supplier_statement"><i class="fa fa-angle-double-right"></i>Supplier Statement</a></li>
                                            <?php
                                        }?>
                                    </ul>
                                </li>								
																
                                <?php
                            }
                        }                       
                        if ($this->module_lib->hasActive('expense')) {
                            if (($this->rbac->hasPrivilege('expense', 'can_view') ||
                             $this->rbac->hasPrivilege('search_expense', 'can_view') || 
                             $this->rbac->hasPrivilege('expense_head', 'can_view'))) {
                                ?>                           															
														
								
								<li class="treeview <?php echo set_Topmenu('Expenses'); ?>">
                                    <a href="#">
                                        <i class="fa fa-credit-card"></i> <span>MV Expenses</span> <i class="fa fa-angle-left pull-right"></i>
                                    </a>
                                    <ul class="treeview-menu">
                                        <?php if ($this->rbac->hasPrivilege('expense', 'can_view')) { ?>
										   <li class="<?php echo set_Submenu('MV_expenses/index'); ?>"><a href="<?php echo base_url(); ?>MV_expenses"><i class="fa fa-angle-double-right"></i> Expenses History</a></li>
                                            
                                            <?php
                                        }
                                        if ($this->rbac->hasPrivilege('search_expense', 'can_view')) {
                                            ?>
											 <li class="<?php echo set_Submenu('MV_expenses/mv_expense_report'); ?>"><a href="<?php echo base_url(); ?>MV_expenses/mv_expense_report"><i class="fa fa-angle-double-right"></i> Expenses Report</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-list"></i> <span>Fixed Assets</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('department'); ?>"><a href="<?php echo base_url(); ?>department/"><i class="fa fa-angle-double-right"></i> Department </a></li>   
                                            <?php
                                        }

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

                                        if ($this->rbac->hasPrivilege('student_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('depreciationmethods'); ?>"><a href="<?php echo base_url(); ?>depreciationmethods/"><i class="fa fa-angle-double-right"></i> Depreciation Methods</a></li>
                                            <?php
                                        }                                 
										if ($this->rbac->hasPrivilege('student_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('assettypes'); ?>"><a href="<?php echo base_url(); ?>assettypes/"><i class="fa fa-angle-double-right"></i> Asset Types</a></li>
                                            <?php
                                        }                                
										if ($this->rbac->hasPrivilege('student_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('asset'); ?>"><a href="<?php echo base_url(); ?>asset/"><i class="fa fa-angle-double-right"></i> Asset</a></li>
                                            <?php
                                        }                                
										if ($this->rbac->hasPrivilege('student_id_card', 'can_view')) {
                                            ?> 
                                            <li class="<?php echo set_Submenu('book_depreciation'); ?>"><a href="<?php echo base_url(); ?>book_depreciation/"><i class="fa fa-angle-double-right"></i> Book Depreciation</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_  ', '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('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('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('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('transaction_report', 'can_view')) {
                                            ?>                               
                                            <li class="<?php echo set_Submenu('outstanding/searchtransaction'); ?>"> <a href="<?php echo base_url(); ?>admin/outstanding/searchtransaction"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('outstanding_fees'); ?></a></li>
                                       <?php }
                                       if ($this->rbac->hasPrivilege('feessummary_report', 'can_view')) {
                                        ?>                               
                                       <li class="<?php echo set_Submenu('transaction/searchfeessummary'); ?>"> <a href="<?php echo base_url(); ?>admin/transaction/searchfeessummary"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('feessummary_report'); ?></a></li>
                                       <?php if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/accounttransaction/index'); ?>"><a href="<?php echo base_url(); ?>admin/accounttransaction/index"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('account_transaction'); ?></a></li>
                                            <?php
                                        }
                                        ?>
                                      
                                      <?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('marks_register', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('discipline/incident_reports_list'); ?>"><a href="<?php echo base_url(); ?>admin/discipline/incident_reports_list"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('discipline_reports'); ?></a></li>
                                            <?php
                                        }
                                         if ($this->rbac->hasPrivilege('marks_register', 'can_view')) {
                                            ?> 
                                        <li class="<?php echo set_Submenu('endofterm/report'); ?>"><a href="<?php echo base_url(); ?>admin/endofterm/report"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('endterm_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> Warehouse Transfer</a></li>
                                            <?php ?>
                                            <li class="<?php echo set_Submenu('inventoryreport/indexmvmnt'); ?>"><a href="<?php echo base_url(); ?>inventoryreport/indexmvmnt"><i class="fa fa-angle-double-right"></i> Inventory Stock Mvmnt</a></li>
                                            <?php ?>
                                             <li class="<?php echo set_Submenu('inventoryreport/indexlvl'); ?>"><a href="<?php echo base_url(); ?>inventoryreport/indexlvl"><i class="fa fa-angle-double-right"></i> Inventory Stock Level</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 Stock Mgnt</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('unifstocklevel/index'); ?>"><a href="<?php echo base_url(); ?>unifstocklevel"><i class="fa fa-angle-double-right"></i> Uniform Stock Level</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('student_transport_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('unifstockmvmnt/index'); ?>"><a href="<?php echo base_url(); ?>unifstockmvmnt"><i class="fa fa-angle-double-right"></i> Uniform Stock Mvmnt</a></li>
                                            <?php
                                        }

                                        if ($this->rbac->hasPrivilege('student_hostel_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('admin/hostelroom/studenthosteldetails'); ?>"><a href="<?php echo base_url(); ?>admin/hostelroom/studenthosteldetails"><i class="fa fa-angle-double-right"></i> <?php echo "Learner Domitory " . $this->lang->line('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('certificate')) {
    if (($this->rbac->hasPrivilege('transaction_report', 'can_view') ||
        $this->rbac->hasPrivilege('user_log', 'can_view') )) {
        ?>
        <li class="treeview <?php echo set_Topmenu('Fixed Assets Reports'); ?>">
            <a href="#">
                <i class="fa fa-bar-chart"></i> <span><?php echo $this->lang->line('fixedassets_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="treeview <?php echo (strpos(set_Submenu('fixedassetsreports/depreciation_reports'), 'active') !== false) ? 'active' : ''; ?>">
                        <a href="#">
                            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('depreciation_reports'); ?> <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="<?php echo set_Submenu('fixedassetsreports/book'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/book"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('book'); ?></a></li>
                            <li class="<?php echo set_Submenu('fixedassetsreports/tax'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/tax"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('tax'); ?></a></li>
                            <li class="<?php echo set_Submenu('fixedassetsreports/asset_impairments'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/asset_impairments"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('asset_impairments'); ?></a></li>
                        </ul>
                    </li>
                    <?php
                }
                ?>  
                <?php 
                if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                    ?>
                    <li class="treeview <?php echo (strpos(set_Submenu('fixedassetsreports/listings'), 'active') !== false) ? 'active' : ''; ?>">
                        <a href="#">
                            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('listings'); ?> <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu" style="font-size: 1rem !important; display: none; margin-left: -30px;">
                            <li class="<?php echo set_Submenu('fixedassetsreports/asset_listings'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/asset_listings"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('asset_listings'); ?></a></li>
                            <li class="<?php echo set_Submenu('fixedassetsreports/asset_type_listing'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/asset_type_listing"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('asset_type_listing'); ?></a></li>
                            <li class="<?php echo set_Submenu('fixedassetsreports/depreciation_method_listing'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/depreciation_method_listing"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('depreciation_method_listing'); ?></a></li>
                            <li class="<?php echo set_Submenu('fixedassetsreports/physical_location_listing'); ?>"><a href="<?php echo base_url(); ?>admin/fixedassetsreports/physical_location_listing"><i class="fa fa-caret-right"></i> <?php echo $this->lang->line('physical_location_listing'); ?></a></li>
                        </ul>
                    </li>
                    <?php
                }
                ?> 
            </ul>
        </li>
        <?php
    }
}
                        if ($this->module_lib->hasActive('certificate')) {
                            if (($this->rbac->hasPrivilege('transaction_report', 'can_view') ||
                                $this->rbac->hasPrivilege('user_log', 'can_view') )) {
                                ?>
                                <li class="treeview <?php echo set_Topmenu('Financial Reports'); ?>">
                                    <a href="#">
                                        <i class="fa fa-bar-chart"></i> <span><?php echo $this->lang->line('financial_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('incomestatement/searchstatement'); ?>"><a href="<?php echo base_url(); ?>admin/incomestatement/searchstatement"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('income_statement'); ?></a></li>
                                            <?php
                                        }
                                        ?>  <?php 
                                        if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('trialbalance/searchtrialbalance'); ?>"><a href="<?php echo base_url(); ?>admin/trialbalance/searchtrialbalance"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('trial_balance'); ?></a></li>
                                            <?php
                                        }
                                        ?>  <?php 
                                        if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('balancesheet/searchbalancesheet'); ?>"><a href="<?php echo base_url(); ?>admin/balancesheet/searchbalancesheet"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('balance_sheet'); ?></a></li>
                                            <?php
                                        } /*
                                        if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
                                            ?>
                                            <li class="<?php echo set_Submenu('cashflowstatement/searchcashflows'); ?>"><a href="<?php echo base_url(); ?>admin/cashflowstatement/searchcashflows"><i class="fa fa-angle-double-right"></i> Cash Flow Statement</a></li>
                                            <?php
                                        }*/
                                        ?> 
                                    </ul>
                                </li>
                                <?php
                            }
                        }
                        if ($this->module_lib->hasActive('certificate')) { 
    if (($this->rbac->hasPrivilege('transaction_report', 'can_view') ||
        $this->rbac->hasPrivilege('user_log', 'can_view') )) {
        ?>
        <li class="treeview <?php echo set_Topmenu('BI Reports'); ?>">
            <a href="#">
                <i class="fa fa-bar-chart"></i> <span><?php echo $this->lang->line('bi_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="treeview <?php echo (strpos(set_Submenu('bireports/financial'), 'active') !== false) ? 'active' : ''; ?>">
                        <a href="#">
                            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Financial_Section'); ?> <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu" style="font-size: 1rem !important; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
                            <li class="<?php echo set_Submenu('bireports/total_fees'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/total_fees" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('totalfees'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/outstanding_fees'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/outstanding_fees" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('outstandingfees'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/total_uniforms_collected'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/total_uniforms_collected" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('totaluniformscollected'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/outstanding_uniforms'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/outstanding_uniforms" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('outstandinguniforms'); ?>
                                </a>    
                            </li>
                            <li class="<?php echo set_Submenu('bireports/uniform_sales'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/uniform_sales" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('uniformsales&collections'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/feescollected_vs_uniformscollected'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/feescollected_vs_uniformscollected" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('feescollectedvsuniformscollected'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/combined_collections'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/combined_collections" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('combinedcollectionsreport'); ?>
                                </a>
                            </li>
                            <li class="<?php echo set_Submenu('bireports/fees_uniform'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                                <a href="<?php echo base_url(); ?>admin/bireports/fees_uniform" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('fees+uniform'); ?>
                                </a> 
                            </li>
                        </ul>
                    </li>
                    <?php
                }
                ?>  

<?php
if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
    ?>
    <li class="treeview <?php echo (strpos(set_Submenu('bireports/uniform'), 'active') !== false) ? 'active' : ''; ?>">
        <a href="#">
            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Uniform_and_Inventory_Section'); ?> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" style="font-size: 1rem !important; margin-left: 10px; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
            <li class="<?php echo set_Submenu('bireports/sales'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/sales" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('stocklevels'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/collections'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/collections" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('stockmovement'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/invoiced_vs_received'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/invoiced_vs_received" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('issues,receipts,warehousetransfers'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/outstanding_payments'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/outstanding_payments" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('fastvsslowmovingitems'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/stock_value'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/stock_value" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('stockvalue'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/stock_alerts'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/stock_alerts" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('stockreorderalerts'); ?>
                </a>
            </li>
        </ul>
    </li>
    <?php
}
?>
<?php
if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
    ?>
    <li class="treeview <?php echo (strpos(set_Submenu('bireports/ipo'), 'active') !== false) ? 'active' : ''; ?>">
        <a href="#">
            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Int_Perfomance_Overview'); ?> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" style="font-size: 1rem !important; margin-left: -10px; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
            <li class="<?php echo set_Submenu('bireports/academic'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/academic" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('revenuecontribution'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/attendance'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/attendance" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('%fromfeesvs%fromuniforms'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/behavioral'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/behavioral" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('cashflowoverview'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/ipo'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/ipo" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('feescollectedvsuniformsalescollected'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/outstanding'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/outstanding" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('outstandingbymodule'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/feesoutstanding'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/feesoutstanding" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('feesoutstandingvsuniformoutstanding'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/profitability'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/profitability" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('profitabilityanalysis'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/gross'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/gross" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('grossmarginonuniforms'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/ipo/stockcons'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/stockcons" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('stockconsumptioncost'); ?>
                </a>
            </li>
        </ul>
    </li>
    <?php
}
if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
    ?>
    <li class="treeview <?php echo (strpos(set_Submenu('bireports/learnerperfomance'), 'active') !== false) ? 'active' : ''; ?>">
        <a href="#">
            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Learner_Perfomance'); ?> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" style="font-size: 1rem !important; margin-left: -10px; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">

            <li class="<?php echo set_Submenu('bireports/exams'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/exams" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('exams'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/termreport'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/termreport" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('termreport'); ?>
                </a>
            </li>            
            <li class="<?php echo set_Submenu('bireports/discipline'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/discipline" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('discipline'); ?>
                </a>
            </li>
        </ul>
    </li>
    <?php
}
if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
    ?>
    <li class="treeview <?php echo (strpos(set_Submenu('bireports/lsa'), 'active') !== false) ? 'active' : ''; ?>">
        <a href="#">
            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Learner_Success_Analytics'); ?> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" style="font-size: 1rem !important; margin-left: -10px; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">

            <li class="<?php echo set_Submenu('bireports/attendancevspass'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/attendancevspass" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('attendancevspass'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/healthyratingvsaveragescore'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/healthyratingvsaveragescore" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('healthyratingvsaveragescore'); ?>
                </a>
            </li>            
            <li class="<?php echo set_Submenu('bireports/dropoutvswellnessindex'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/dropoutvswellnessindex" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('dropoutvswellnessindex'); ?>
                </a>
            </li>
        </ul>
    </li>
    <?php
}

                ?> 
                
                
<?php
if ($this->rbac->hasPrivilege('student_report', 'can_view')) {
    ?>
    <li class="treeview <?php echo (strpos(set_Submenu('bireports/dashboard'), 'active') !== false) ? 'active' : ''; ?>">
        <a href="#">
            <i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('Dashboard_Visualizations'); ?> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu" style="font-size: 1rem !important; display: none; margin-left: -30px;" onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
            <li class="<?php echo set_Submenu('bireports/acadash'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/acadash" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('barchart'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/attdash'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/attdash" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('piechart'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/behdash'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/behdash" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('linegraph'); ?>
                </a>
            </li>
            <li class="<?php echo set_Submenu('bireports/taboard'); ?>" onmouseover="this.style.backgroundColor='#f0f0f0'" onmouseout="this.style.backgroundColor=''">
                <a href="<?php echo base_url(); ?>admin/bireports/taboard" style="font-size: 1rem !important;" onmouseover="this.style.color='#3c8dbc'" onmouseout="this.style.color=''">
                    <i class="fa fa-caret-right"></i> <?php echo $this->lang->line('table'); ?>
                </a>
            </li>
        </ul>
    </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'))) {
                            
                            }
                        }
                        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('email_setting')) { ?>
                                            <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>  