<!-- begin::Body -->
<div class="m-grid__item m-grid__item--fluid m-grid m-grid--ver-desktop m-grid--desktop m-body">
  <!-- BEGIN: Left Aside -->
  <button class="m-aside-left-close  m-aside-left-close--skin-dark " id="m_aside_left_close_btn">
    <i class="la la-close"></i>
  </button>
  <div id="m_aside_left" class="m-grid__item	m-aside-left  m-aside-left--skin-dark ">
    <!-- BEGIN: Aside Menu -->
    <div id="m_ver_menu" class="m-aside-menu  m-aside-menu--skin-dark m-aside-menu--submenu-skin-dark " data-menu-vertical="true" data-menu-scrollable="false" data-menu-dropdown-timeout="500">
      <ul class="m-menu__nav  m-menu__nav--dropdown-submenu-arrow ">
        <li class="m-menu__item " aria-haspopup="true" id="dashboard_menu">
          <a href="<?php echo base_url() . 'dashboard' ?>" class="m-menu__link site_project_nav">
            <i style="color: white;" class="m-menu__link-icon flaticon-line-graph"></i>
            <span class="m-menu__link-title">
              <span class="m-menu__link-wrap">
                <span class="m-menu__link-text" style="color: white;">
                  Dashboard
                </span>
                <span class="m-menu__link-badge">

                </span>
              </span>
            </span>
          </a>
        </li>
        <?php if (($this->config->item('app_module_sales_enquiries') == 1 || $this->config->item('app_module_sales_quotation') == 1 || $this->config->item('app_module_sales_invoice') == 1) && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Quotations & Sales
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
        <?php } ?>
        <?php if (($this->config->item('app_module_work_order') == 1 || $this->config->item('app_module_sales_enquiries') == 1) && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
          <li class="m-menu__item " aria-haspopup="true" id="enquiries_menu">
            <a href="<?php echo base_url() . 'enquiries' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-envelope"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Enquiries
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_sales_invoice') == 1 && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'supervisor' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_estimation_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-database"></i>
              <span class="m-menu__link-text">
                <?php echo $this->config->item('Quotation_sales_estimation_title') ?>
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor') { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_estimation_menu1">
                    <a href="<?php echo base_url() . 'sales_estimation/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        New <?php echo $this->config->item('Quotation_sales_estimation_title') ?>
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_estimation_menu2">
                  <a href="<?php echo base_url() . 'sales_estimation' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View <?php echo $this->config->item('Quotation_sales_estimation_title') ?>
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_sales_quotation') == 1  && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_quotation_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-file-alt"></i>
              <span class="m-menu__link-text">
                <?php echo $this->config->item('Quotation_sales_quotation_title') ?>
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor' || $this->session->userdata('user_data_permission')['adding'] == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_quotation_menu_1">
                    <a href="<?php echo base_url() . 'sales_quotation/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Create <?php echo $this->config->item('Quotation_sales_quotation_title') ?>
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_quotation_menu_2">
                  <a href="<?php echo base_url() . 'sales_quotation' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View <?php echo $this->config->item('Quotation_sales_quotation_title') ?>
                    </span>
                  </a>
                </li>
                <?php if ($this->session->userdata('branch_id') == 0 && $this->config->item('Quotation_template')==2) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_quotation_menu_3">
                    <a href="<?php echo base_url() . 'sales_quotation/templates' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-edit">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Manage Quotation Templates
                      </span>
                    </a>
                  </li>
                <?php } ?>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_work_order') == 1 && $this->session->userdata('user_role') != 'boq_manager' &&  $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="work_order_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa	fa-file-invoice-dollar"></i>
              <span class="m-menu__link-text">
                Work Order
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor' || $this->session->userdata('user_data_permission')['adding'] == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="work_order_menu_1">
                    <a href="<?php echo base_url() . 'work_order/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Create Work Order
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="work_order_menu_2">
                  <a href="<?php echo base_url() . 'work_order' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa 	fa-list-alt">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Work Orders
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_sales_invoice') == 1 && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'supervisor' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_invoice_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-database"></i>
              <span class="m-menu__link-text">
                Sales Invoices
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor') { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_invoice_menu1">
                    <a href="<?php echo base_url() . 'sales_invoice/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        New Sales Invoice
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_invoice_menu2">
                  <a href="<?php echo base_url() . 'sales_invoice' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Sales Invoices
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="sales_invoice_menu3">
                  <a href="<?php echo base_url() . 'sales_invoice/view_items' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Sold Items
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_company_branches') == 1 && ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'general_manager')) { ?>
          <li class="m-menu__item " aria-haspopup="true" id="sales_targets_menu">
            <a href="<?php echo base_url() . 'sales_targets' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-bullseye"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Sales Targets
                  </span>
                  <span class="m-menu__link-badge">
                  </span>
                </span>
              </span>
            </a>
          </li>
          <li class="m-menu__item " aria-haspopup="true" id="sales_target_report_menu">
            <a href="<?php echo base_url() . 'sales_targets/report' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-clipboard-list"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Sales Target Report
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>

        <?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'purchase_manager' ) { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Projects
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'supervisor' && $this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-tasks"></i>
              <span class="m-menu__link-text">
                Projects
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->config->item('User_project_creation_admin_only') == 0 || ($this->config->item('User_project_creation_admin_only') == 1 && ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'madmin'))) { ?>
                  <?php if ($this->session->userdata('user_role') != 'auditor') { ?>
                    <?php if ($this->config->item('Project_disable_add_button') == 0){ ?>
                      <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_1">
                        <a href="<?php echo base_url() . 'work/add' ?>" class="m-menu__link m-menu__toggle">
                          <i class="m-menu__link-icon fa fa-plus-circle">
                            <span></span>
                          </i>
                          <span class="m-menu__link-text">
                            Add New Project
                          </span>
                        </a>
                      </li>
                    <?php } ?>
                  <?php } ?>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_2">
                  <a href="<?php echo base_url() . 'work/' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View All Ongoing Projects
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_3">
                  <a href="<?php echo base_url() . 'work/view/completed' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View All Completed Projects
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_4">
                  <a href="<?php echo base_url() . 'work/custom_requirements' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Custom Requirements
                    </span>
                  </a>
                </li>
                <?php if($this->session->userdata('user_role') != 'operation_manager'){?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_5">
                  <a href="<?php echo base_url() . 'work/all_summary' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View All Projects Summary
                    </span>
                  </a>
                </li>

                <?php if ($this->config->item('app_module_sales_enquiries') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="works_menu_6">
                    <a href="<?php echo base_url() . 'work/project_enquiry_report' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Project - Enquiry Report
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php } ?>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') == 'supervisor') { ?>
          <li class="m-menu__item " aria-haspopup="true" id="works_menu">
            <a href="<?php echo base_url() . 'work' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-tasks"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Assigned Works
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
          <li class="m-menu__item " aria-haspopup="true" id="custom_requirements_menu">
            <a href="<?php echo base_url() . 'work/custom_requirements' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-th-list"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Custom Requirements
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-tasks"></i>
              <span class="m-menu__link-text">
                Subcontract Works
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_1">
                  <a href="<?php echo base_url() . 'subcontracts' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Subcontract Works
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_2">
                  <a href="<?php echo base_url() . 'subcontracts/payments' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-money-check-alt">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Subcontract Bills & Payments
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_3">
                  <a href="<?php echo base_url() . 'subcontracts/payment_schedule' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-clock">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Payment Schedule
                    </span>
                  </a>
                </li>
                <?php if ($this->config->item('Subcontract_material_issue') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_6">
                    <a href="<?php echo base_url() . 'subcontracts/material_issue' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-shopping-cart">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Material Issue
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php if ($this->config->item('Subcontract_labours') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_4">
                    <a href="<?php echo base_url() . 'subcontracts/labours' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-users">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Subcontract Labours & Attendance
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="subcontract_menu_5">
                  <a href="<?php echo base_url() . 'Subcontracts/contractors' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-users">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Contractors
                    </span>
                  </a>
                </li>

              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('Project_beneficiary_accounts') == 1) { ?>
          <li class="m-menu__item " aria-haspopup="true" id="beneficiary_accounts_menu">
            <a href="<?php echo base_url() . 'work/beneficiary_accounts' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon la la-users"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Beneficiary Accounts
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_assets_management') == 1 && ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'auditor')) { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Assets
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="assets_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-layer-group"></i>
              <span class="m-menu__link-text">
                Assets & Security Deposits
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="assets_menu_1">
                  <a href="<?php echo base_url() . 'accounts/assets' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-clipboard-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Assets
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="assets_menu_2">
                  <a href="<?php echo base_url() . 'accounts/security_deposits' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-suitcase">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      EMD / Security Deposits
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'operation_manager') { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Accounts
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'operation_manager') { ?>
          <?php if ($this->session->userdata('user_role') == 'supervisor' || $this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'accounts_manager') { ?>
            <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="accounts_menu">
              <a href="#" class="m-menu__link m-menu__toggle">
                <i class="m-menu__link-icon fa fa-layer-group"></i>
                <span class="m-menu__link-text">
                  Accounts Management
                </span>
                <i class="m-menu__ver-arrow la la-angle-right"></i>
              </a>
              <div class="m-menu__submenu">
                <span class="m-menu__arrow"></span>
                <ul class="m-menu__subnav">
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="accounts_menu_1">
                    <a href="<?php echo base_url() . 'accounts' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-tags">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Account Heads
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="accounts_menu_4">
                    <a href="<?php echo base_url() . 'accounts/ledger' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-tags">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Ledger
                      </span>
                    </a>
                  </li>

                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="accounts_menu_2">
                    <a href="<?php echo base_url() . 'accounts/transfer' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-exchange-alt">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Account Transfer
                      </span>
                    </a>
                  </li>
                  <?php if ($this->session->userdata('user_role') != 'supervisor') { ?>
                    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="accounts_menu_3">
                      <a href="<?php echo base_url() . 'accounts/creditors' ?>" class="m-menu__link m-menu__toggle">
                        <i class="m-menu__link-icon fa fa-file-invoice">
                          <span></span>
                        </i>
                        <span class="m-menu__link-text">
                          Creditors & Debitors List
                        </span>
                      </a>
                    </li>
                  <?php } ?>
                </ul>
              </div>
            </li>
          <?php } ?>
        <?php } ?>

        <?php if ($this->session->userdata('user_role') != 'supervisor' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'operation_manager') { ?>
<?php if ($this->config->item('app_module_proforma_invoice') == 1){ ?>
          <li class="m-menu__item " aria-haspopup="true" id="proforma_invoices_menu">
            <a href="<?php echo base_url() . 'invoices/view/proforma' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-clipboard-check"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Proforma Invoices
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
          <?php } ?>
          <?php if ($this->config->item('app_module_client_payments') == 1 ){?>
            <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="client_payments_menu">
              <a href="#" class="m-menu__link m-menu__toggle">
                <i class="m-menu__link-icon fa fa-briefcase"></i>
                <span class="m-menu__link-text">
                  Client Payments<?php if ($this->config->item('Client_Payment_client_payment_invoice') == 1) { ?> & Invoices <?php } ?>
                </span>
                <i class="m-menu__ver-arrow la la-angle-right"></i>
              </a>
              <div class="m-menu__submenu">
                <span class="m-menu__arrow"></span>
                <ul class="m-menu__subnav">
                  <?php if ($this->config->item('Client_Payment_client_payment_invoice') == 1) { ?>
                    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="client_payments_menu_1">
                      <a href="<?php echo base_url() . 'invoices' ?>" class="m-menu__link m-menu__toggle">
                        <i class="m-menu__link-icon fa fa-th-list">
                          <span></span>
                        </i>
                        <span class="m-menu__link-text">
                          Invoices
                        </span>
                      </a>
                    </li>
                  <?php } ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="client_payments_menu_3">
                    <a href="<?php echo base_url() . 'client_payments' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-list-ul">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        All Client Payments
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="client_payments_menu_4">
                    <a href="<?php echo base_url() . 'client_payments/schedule' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-calendar">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Payment Schedules
                      </span>
                    </a>
                  </li>
                </ul>
              </div>
            </li>
          <?php } ?>
          <?php if ($this->config->item('app_module_other_income') == 1 ){?>
            <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="other_income_menu">
              <a href="#" class="m-menu__link m-menu__toggle">
                <i class="m-menu__link-icon fa fa-wallet"></i>
                <span class="m-menu__link-text">
                  Other Income
                </span>
                <i class="m-menu__ver-arrow la la-angle-right"></i>
              </a>
              <div class="m-menu__submenu">
                <span class="m-menu__arrow"></span>
                <ul class="m-menu__subnav">
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="other_income_menu_1">
                    <a href="<?php echo base_url() . 'invoices/view/other_income' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Other Income Invoices
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="other_income_menu_2">
                    <a href="<?php echo base_url() . 'income/receipts' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Other Income Receipts
                      </span>
                    </a>
                  </li>
                </ul>
              </div>
            </li>
          <?php } ?>
          <?php if ($this->config->item('app_module_loan') == 1 ){?>
            <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="loans_menu">
              <a href="#" class="m-menu__link m-menu__toggle">
                <i class="m-menu__link-icon fa fa-money-check-alt"></i>
                <span class="m-menu__link-text">
                  Loans Management
                </span>
                <i class="m-menu__ver-arrow la la-angle-right"></i>
              </a>
              <div class="m-menu__submenu">
                <span class="m-menu__arrow"></span>
                <ul class="m-menu__subnav">
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="loans_menu_1">
                    <a href="<?php echo base_url() . 'loans/view/payable' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon 	fa fa-sign-out-alt">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Payable Loans
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="loans_menu_2">
                    <a href="<?php echo base_url() . 'loans/view/receivable' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon 	fa fa-sign-in-alt">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Receivable Loans
                      </span>
                    </a>
                  </li>
                </ul>
              </div>
            </li>
          <?php } ?>
        <?php } ?>
        <?php if ($this->config->item('app_module_user_payments') == 1 && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'operation_manager') { ?>
          <li class="m-menu__item " aria-haspopup="true" id="user_payments_menu">
            <a href="<?php echo base_url() . 'user_payments' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon la la-money"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    <?php if ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'accounts_manager' || ($this->session->userdata('user_role') == 'general_manager' && $this->config->item('User_general_manager_user_payments_enable') == 1)) { ?>
                      User Payments <br/>(Petty Cash)
                    <?php } else { ?>
                      Payment Receipts <br/>(Petty Cash)
                    <?php } ?>
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>

        <?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Purchases
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_purchase_request') == 1 && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_request_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-clipboard-check"></i>
              <span class="m-menu__link-text">
                Purchase Requests
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor' || $this->session->userdata('user_data_permission')['adding'] == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_request_menu_1">
                    <a href="<?php echo base_url() . 'purchase_request/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Create Purchase Request
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_request_menu_2">
                  <a href="<?php echo base_url() . 'purchase_request' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-ul">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Purchase Requests
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_request_menu_3">
                  <a href="<?php echo base_url() . 'purchase_request/view/pending' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-ul">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Pending Purchase Requests
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_request_menu_4">
                  <a href="<?php echo base_url() . 'purchase_request/view_items' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-ul">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Requested Items
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_purchase_order') == 1 && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_order_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-edit"></i>
              <span class="m-menu__link-text">
                Purchase Orders
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor' || $this->session->userdata('user_data_permission')['adding'] == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_order_menu_1">
                    <a href="<?php echo base_url() . 'purchase_order/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Create Purchase Order
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_order_menu_2">
                  <a href="<?php echo base_url() . 'purchase_order' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-ul">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Purchase Orders
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_order_menu_3">
                  <a href="<?php echo base_url() . 'purchase_order/payments' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon la la-money">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Purchase Order Payments
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_order_menu_4">
                  <a href="<?php echo base_url() . 'purchase_order/materials' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-alt">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Materials Ordered
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('Purchase_delivery_challan') == 1) { ?>
          <li class="m-menu__item " aria-haspopup="true" id="delivery_challan_menu">
            <a href="<?php echo base_url() . 'purchases/delivery_challan' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-envelope"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Delivery Challans
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-shopping-cart"></i>
              <span class="m-menu__link-text">
                Purchase Bills
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <?php if ($this->session->userdata('user_role') != 'auditor' || $this->session->userdata('user_data_permission')['adding'] == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu_1">
                    <a href="<?php echo base_url() . 'purchases/add' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-plus-circle">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Add New Purchase Bill
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu_2">
                  <a href="<?php echo base_url() . 'purchases' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-ul">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View All Purchase Bills
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu_3">
                  <a href="<?php echo base_url() . 'purchases/materials' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list-alt">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Materials Purchased
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu_4">
                  <a href="<?php echo base_url() . 'purchases/view/payable' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Payable Bills
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="purchase_menu_5">
                  <a href="<?php echo base_url() . 'purchases/payments' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-money-bill">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      View Bill Payments
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
          <li class="m-menu__item " aria-haspopup="true" id="purchase_return_menu">
            <a href="<?php echo base_url() . 'purchases/return' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa 	fa-reply-all"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Purchase Return
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_stock_management') == 1  && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager' &&  $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-list-ul"></i>
              <span class="m-menu__link-text">
                Stock Management
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_1">
                  <a href="<?php echo base_url() . 'stock/register' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-server">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Stock Register
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_7">
                  <a href="<?php echo base_url() . 'stock/inward_register' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-server">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Material Inward Register
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_5">
                  <a href="<?php echo base_url() . 'stock/opening_stock' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Opening Stock
                    </span>
                  </a>
                </li>
                <?php if ($this->session->userdata('user_role') != 'supervisor') { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_2">
                    <a href="<?php echo base_url() . 'stock/transfer_history' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-exchange-alt">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Stock Transfer
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_3">
                    <a href="<?php echo base_url() . 'stock/locations' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-map-marker-alt">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Stock Locations
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_4">
                  <a href="<?php echo base_url() . 'stock/consumption' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-shopping-basket">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Stock Consumptions
                    </span>
                  </a>
                </li>
                <?php if ($this->session->userdata('branch_id') == 0) { ?>
                  <?php if ($this->config->item('app_module_company_branches') == 1 && $this->session->userdata('user_role') == 'admin' && $this->session->userdata('branch_id') == 0) { ?>
                    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="stock_menu_6">
                      <a href="<?php echo base_url() . 'stock/branch_report' ?>" class="m-menu__link m-menu__toggle">
                        <i class="m-menu__link-icon fa fa-chart-bar">
                          <span></span>
                        </i>
                        <span class="m-menu__link-text">
                          Branch - Stock Report
                        </span>
                      </a>
                    </li>
                  <?php } ?>
                <?php } ?>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_production') == 1 ){?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Production
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
          <li class="m-menu__item " aria-haspopup="true" id="production_menu">
            <a href="<?php echo base_url() . 'production' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-cubes"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Production
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
          <li class="m-menu__item " aria-haspopup="true" id="stock_damages_menu">
            <a href="<?php echo base_url() . 'production/damages' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-exclamation-triangle"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Damage Register
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager') { ?>
          <li class="m-menu__section">
            <h4 class="m-menu__section-text">
              Expenses
            </h4>
            <i class="m-menu__section-icon fa fa-id-card-o"></i>
          </li>
        <?php } ?>
        <?php if ($this->session->userdata('user_role') != 'operation_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item " aria-haspopup="true" id="expense_menu">
            <a href="<?php echo base_url() . 'expense' ?>" class="m-menu__link ">
              <i class="m-menu__link-icon fa fa-clipboard-list"></i>
              <span class="m-menu__link-title">
                <span class="m-menu__link-wrap">
                  <span class="m-menu__link-text">
                    Expenses
                  </span>
                  <span class="m-menu__link-badge">

                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>

        <?php if ($this->config->item('app_module_labours') == 1  && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-user-friends"></i>
              <span class="m-menu__link-text">
                Labour Management
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_1">
                  <a href="<?php echo base_url() . 'labours' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-users">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Labours
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_2">
                  <a href="<?php echo base_url() . 'labour_wages' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Wage Slips & Payments
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_5">
                  <a href="<?php echo base_url() . 'labour_wages/monthly_summary' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Monthly Salary Sheet
                    </span>
                  </a>
                </li>
                <?php if ($this->config->item('Labour_attendance') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_4">
                    <a href="<?php echo base_url() . 'labours/attendance' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Labour Attendance
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php if ($this->config->item('Labour_projet_assigning') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_3">
                    <a href="<?php echo base_url() . 'labours/assign_project' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Assign Labours to Project
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php if ($this->config->item('Labour_labour_insurance_fd') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="labour_menu_5">
                    <a href="<?php echo base_url() . 'labours/insurance_fd' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-wallet">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Insurance & FD
                      </span>
                    </a>
                  </li>
                <?php } ?>
              </ul>
            </div>
          </li>
        <?php } ?>

        <?php if ($this->config->item('app_module_vehicle') == 1 && ($this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'operation_manager' || $this->session->userdata('user_role') == 'supervisor')  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'hr_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-truck"></i>
              <span class="m-menu__link-text">
                Vehicle Management
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_1">
                  <a href="<?php echo base_url() . 'vehicles' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-truck">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Vehicles
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_3">
                  <a href="<?php echo base_url() . 'vehicles/consignees' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-users">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Vehicle Consignees
                    </span>
                  </a>
                </li>
                <?php if ($this->config->item('app_module_vehicle_management') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_6">
                    <a href="<?php echo base_url() . 'vehicles/allocations' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-directions">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Vehicle Allocations
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_4">
                    <a href="<?php echo base_url() . 'vehicles/renewal_payments' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Renewal Payments
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_5">
                    <a href="<?php echo base_url() . 'vehicles/expenses' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Vehicle Expenses
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_7">
                    <a href="<?php echo base_url() . 'vehicles/fuel_report' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Fuel Report
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_8">
                    <a href="<?php echo base_url() . 'vehicles/profit_loss_report' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Vehicle P&L Report
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_9">
                    <a href="<?php echo base_url() . 'vehicles/bata_report' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Driver Bata Report
                      </span>
                    </a>
                  </li>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_10">
                    <a href="<?php echo base_url() . 'vehicles/material_consumption' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Vehicle - Material Consumption
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="vehicle_menu_2">
                  <a href="<?php echo base_url() . 'vehicle_work_slips' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Vehicle Work Slips & Payments
                    </span>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        <?php } ?>
        <?php if ($this->config->item('app_module_hr') == 1 && ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'hr_manager' || ($this->session->userdata('user_role') == 'general_manager' && $this->config->item('User_general_manager_hr_data_enabled') == 1))  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'operation_manager') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu">
            <a href="#" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-user-friends"></i>
              <span class="m-menu__link-text">
                HR
              </span>
              <i class="m-menu__ver-arrow la la-angle-right"></i>
            </a>
            <div class="m-menu__submenu">
              <span class="m-menu__arrow"></span>
              <ul class="m-menu__subnav">
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_1">
                  <a href="<?php echo base_url() . 'employees' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-users">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Employees
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_2">
                  <a href="<?php echo base_url() . 'salary_slips' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon fa fa-th-list">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Salary Slips & Payments
                    </span>
                  </a>
                </li>
                <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_3">
                  <a href="<?php echo base_url() . 'employees/payments' ?>" class="m-menu__link m-menu__toggle">
                    <i class="m-menu__link-icon la la-money">
                      <span></span>
                    </i>
                    <span class="m-menu__link-text">
                      Payments
                    </span>
                  </a>
                </li>
                <?php if ($this->config->item('HR_punching_machine_attendance') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_4">
                    <a href="<?php echo base_url() . 'employees/attendance/view' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Daily Attendance - Biometric
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php if ($this->config->item('HR_employee_site_visit') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_6">
                    <a href="<?php echo base_url() . 'employees/site_visit_log' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-th-list">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Site Visit Log
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <?php if ($this->config->item('HR_leave_application') == 1) { ?>
                  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_5">
                    <a href="<?php echo base_url() . 'employees/leave_applications' ?>" class="m-menu__link m-menu__toggle">
                      <i class="m-menu__link-icon fa fa-edit">
                        <span></span>
                      </i>
                      <span class="m-menu__link-text">
                        Leave Applications
                      </span>
                    </a>
                  </li>
                <?php } ?>
                <!-- <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="hr_menu_7">
                <a href="<?php //echo base_url() . 'employees/employee_reports' ?>" class="m-menu__link m-menu__toggle">
                <i class="m-menu__link-icon fa fa-th-list">
                <span></span>
              </i>
              <span class="m-menu__link-text">
              Employee Reports
            </span>
          </a>
        </li> -->

      </ul>
    </div>
  </li>
<?php } ?>
<?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <?php if ($this->config->item('app_module_tools_management') == 1) { ?>
    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="tools_menu">
      <a href="#" class="m-menu__link m-menu__toggle">
        <i class="m-menu__link-icon fa fa-toolbox"></i>
        <span class="m-menu__link-text">
          Tools Management
        </span>
        <i class="m-menu__ver-arrow la la-angle-right"></i>
      </a>
      <div class="m-menu__submenu">
        <span class="m-menu__arrow"></span>
        <ul class="m-menu__subnav">
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="tools_menu_1">
            <a href="<?php echo base_url() . 'tools' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-wrench">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Tools & Equipments
              </span>
            </a>
          </li>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="tools_menu_2">
            <a href="<?php echo base_url() . 'tools/rent_tools' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-tools">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Rent Tools
              </span>
            </a>
          </li>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="tools_menu_3">
            <a href="<?php echo base_url() . 'tools/transfers' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-exchange-alt">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Tools Transfers
              </span>
            </a>
          </li>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="tools_menu_4">
            <a href="<?php echo base_url() . 'tools/payments' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon la la-money">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Tools Consumption & Payments
              </span>
            </a>
          </li>

        </ul>
      </div>
    </li>
  <?php } ?>
<?php } ?>
<?php if ($this->config->item('app_module_travel_allowance') == 1 && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="ta_menu">
    <a href="<?php echo base_url() . 'travel_allowance' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-taxi" style="font-size: 2rem !important;"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Travel Allowance
          </span>
          <span class="m-menu__link-badge">
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <li class="m-menu__section">
    <h4 class="m-menu__section-text">
      Other Modules
    </h4>
    <i class="m-menu__section-icon fa fa-id-card-o"></i>
  </li>
<?php } ?>
<?php if ($this->config->item('app_module_project_documents') == 1  && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="reminders_menu">
    <a href="<?php echo base_url() . 'reminders' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon la la-bell" style="font-size: 2rem !important;"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Reminders
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
  <li class="m-menu__item " aria-haspopup="true" id="documents_menu">
    <a href="<?php echo base_url() . 'documents' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon la la-folder-open" style="font-size: 2rem !important;"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Project Documents
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if ($this->config->item('app_module_daily_task') == 1  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager') { ?>
    <li class="m-menu__item " aria-haspopup="true" id="daily_tasks_menu">
      <a href="<?php echo base_url() . 'daily_tasks' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon la la-list-alt" style="font-size: 2rem !important;"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Daily Tasks & Activities
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
<?php } ?>
<?php if ($this->config->item('app_module_daily_notes') == 1  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager') { ?>
    <li class="m-menu__item " aria-haspopup="true" id="daily_notes_menu">
      <a href="<?php echo base_url() . 'daily_notes' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-sticky-note"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Daily Notes
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
<?php } ?>
<?php if ($this->config->item('app_module_daily_progress_report') == 1  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <?php if ($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager') { ?>
    <li class="m-menu__item " aria-haspopup="true" id="daily_progress_report_menu">
      <a href="<?php echo base_url() . 'daily_reports/progress_report' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon la la-list-alt"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Daily Progress Reports
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
<?php } ?>
<?php if ($this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <li class="m-menu__section">
    <h4 class="m-menu__section-text">
      Reports
    </h4>
    <i class="m-menu__section-icon fa fa-id-card-o"></i>
  </li>
<?php } ?>
<?php if ( $this->config->item('app_module_daily_labour_report') == 1 && $this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'purchase_manager'  && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="daily_labour_report_menu">
    <a href="<?php echo base_url() . 'daily_labour_reports' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-file-contract"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Daily Labour & Subcontract Report
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if ($this->config->item('app_module_app_user_attendance') == 1 ) { ?>
  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="daily_attendance_menu">
    <a href="#" class="m-menu__link m-menu__toggle">
      <i class="m-menu__link-icon fa fa-calendar-alt"></i>
      <span class="m-menu__link-text">
        Attendance Report
      </span>
      <i class="m-menu__ver-arrow la la-angle-right"></i>
    </a>
    <div class="m-menu__submenu">
      <span class="m-menu__arrow"></span>
      <ul class="m-menu__subnav">
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="daily_attendance_menu_1">
          <a href="<?php echo base_url() . 'attendance/view/day' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-icon fa fa-th-list">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              Daily Report
            </span>
          </a>
        </li>
        <?php if ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'hr_manager' || $this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'operation_manager') { ?>
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="daily_attendance_menu_2">
          <a href="<?php echo base_url() . 'attendance/view/month' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-icon fa fa-th-list">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              Monthly Report
            </span>
          </a>
        </li>
        <?php } ?>
      </ul>
    </div>
  </li>
<?php } ?>
<?php if ($this->session->userdata('user_role') != 'boq_manager' && $this->session->userdata('user_role') != 'sales_manager'  && $this->session->userdata('user_role') != 'sales_staff' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' ) { ?>
  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu">
    <a href="#" class="m-menu__link m-menu__toggle">
      <i class="m-menu__link-icon fa fa-chart-bar"></i>
      <span class="m-menu__link-text">
        Reports
      </span>
      <i class="m-menu__ver-arrow la la-angle-right"></i>
    </a>
    <div class="m-menu__submenu">
      <span class="m-menu__arrow"></span>
      <ul class="m-menu__subnav">
        <?php if ($this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'admin') { ?>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_5">
            <a href="<?php echo base_url() . 'reports/profit' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-chart-pie">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Income - Expense Report
              </span>
            </a>
          </li>
          <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_10">
            <a href="<?php echo base_url() . 'reports/daily_transactions' ?>" class="m-menu__link m-menu__toggle">
              <i class="m-menu__link-icon fa fa-chart-bar">
                <span></span>
              </i>
              <span class="m-menu__link-text">
                Daily Transactions
              </span>
            </a>
          </li>
        <?php } ?>


        <!-- <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true"  data-menu-submenu-toggle="hover" id="report_menu_2">
        <a  href="<?php echo base_url() . 'reports/transactions' ?>" class="m-menu__link m-menu__toggle">
        <i class="m-menu__link-icon fa fa-chart-pie">
        <span></span>
      </i>
      <span class="m-menu__link-text">
      Transaction Report
    </span>
  </a>
</li> -->
<?php if($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'operation_manager'){?>
<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_3">
  <a href="<?php echo base_url() . 'reports/daybook' ?>" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-calendar-alt">
      <span></span>
    </i>
    <span class="m-menu__link-text">
      Day Book
    </span>
  </a>
</li>


<?php if ($this->session->userdata('user_role') != 'supervisor') { ?>
  <?php if ($this->config->item('Accounts_trial_balance') == 1 ){ ?>
    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_4">
      <a href="<?php echo base_url() . 'reports/trial_balance' ?>" class="m-menu__link m-menu__toggle">
        <i class="m-menu__link-icon fa fa-calculator">
          <span></span>
        </i>
        <span class="m-menu__link-text">
          Trial Balance
        </span>
      </a>
    </li>
  <?php } ?>
<?php } ?>

<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_6">
  <a href="<?php echo base_url() . 'reports/project_tasks' ?>" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-chart-line">
      <span></span>
    </i>
    <span class="m-menu__link-text">
      Project Task Report
    </span>
  </a>
</li>
<?php } ?>
<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_7">
  <a href="<?php echo base_url() . 'reports/purchase' ?>" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-chart-line">
      <span></span>
    </i>
    <span class="m-menu__link-text">
      Purchase Report
    </span>
  </a>
</li>
<?php if ($this->session->userdata('user_role') != 'operation_manager') { ?>
<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_12">
  <a href="<?php echo base_url() . 'reports/tax' ?>" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-chart-line">
      <span></span>
    </i>
    <span class="m-menu__link-text">
      Tax Report
    </span>
  </a>
</li>
<?php } ?>
<?php if ($this->config->item('boq_purchase_integration') == 1) { ?>
  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_8">
    <a href="<?php echo base_url() . 'reports/boq_purchase' ?>" class="m-menu__link m-menu__toggle">
      <i class="m-menu__link-icon fa fa-chart-bar">
        <span></span>
      </i>
      <span class="m-menu__link-text">
        BOQ Purchase Report
      </span>
    </a>
  </li>
<?php } ?>
<?php if($this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'operation_manager'){?>
<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_9">
  <a href="<?php echo base_url() . 'reports/project_daybook' ?>" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-calendar-alt">
      <span></span>
    </i>
    <span class="m-menu__link-text">
      Project Day Book
    </span>
  </a>
</li>
<?php } ?>
<?php if ($this->config->item('app_module_labours') == 1 && $this->config->item('Labour_attendance') == 1) { ?>
  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="report_menu_11">
    <a href="<?php echo base_url() . 'reports/labour_attendance' ?>" class="m-menu__link m-menu__toggle">
      <i class="m-menu__link-icon fa fa-calendar-alt">
        <span></span>
      </i>
      <span class="m-menu__link-text">
        Labour Attendance Reports
      </span>
    </a>
  </li>
<?php } ?>
</ul>
</div>
</li>
<?php } ?>
<?php if ($this->session->userdata('user_role') == 'supervisor' || $this->session->userdata('user_role') == 'general_manager') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="user_menu">
    <a href="<?php echo base_url() . 'user/profile/' . $this->session->userdata('user_id') ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-chart-pie"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            My Transaction Report
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>

<?php if ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'hr_manager') { ?>
  <li class="m-menu__section">
    <h4 class="m-menu__section-text">
      User Accounts
    </h4>
    <i class="m-menu__section-icon fa fa-users"></i>
  </li>
  <?php if ($this->session->userdata('user_role') == 'admin') { ?>
    <li class="m-menu__item " aria-haspopup="true" id="user_menu">
      <a href="<?php echo base_url() . 'user' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-users"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Users
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
  <?php if ($this->session->userdata('branch_id') == 0) { ?>
    <?php if (($this->config->item('User_enable_data_entry_approval') == 1 || $this->config->item('Mobile_App_enable_data_entry_approval') == 1) && ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'accounts_manager')) { ?>
      <li class="m-menu__item " aria-haspopup="true" id="user_data_entry_menu">
        <a href="<?php echo base_url() . 'user/data_approval' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-check-circle"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Data Entry Approval
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-menu__item " aria-haspopup="true" id="user_data_entry_bulk_menu">
        <a href="<?php echo base_url() . 'user/data_approval/1/bulk' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-check-circle"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Data Entry Approval - Bulk
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
    <?php if ($this->config->item('User_enable_data_entry_approval_2_level') == 1 && ($this->session->userdata('user_role') == 'admin')) { ?>
      <li class="m-menu__item " aria-haspopup="true" id="user_data_entry_2_menu">
        <a href="<?php echo base_url() . 'user/data_approval/2' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-check-circle"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Data Entry Approval - 2nd Level
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
    <?php if ($this->config->item('app_module_today_salary') == 1) { ?>
      <li class="m-menu__item " aria-haspopup="true" id="user_today_salary_menu">
        <a href="<?php echo base_url() . 'user/today_salary' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-clipboard-list"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Today Salary
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
    <?php if ($this->config->item('app_module_work_hour_report') == 1) { ?>
      <li class="m-menu__item " aria-haspopup="true" id="user_work_hour_menu">
        <a href="<?php echo base_url() . 'user/work_hour_report' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-chart-bar"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Work Hour Report
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
  <?php } ?>
  <?php if ($this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'general_manager') { ?>
    <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true"  data-menu-submenu-toggle="hover" id="user_activity_log_menu">
      <a  href="<?php echo base_url() . 'user/activity_log' ?>" class="m-menu__link m-menu__toggle">
        <i class="m-menu__link-icon fa fa-chart-area">
          <span></span>
        </i>
        <span class="m-menu__link-text">
          Users Activity Log
        </span>
      </a>
    </li>
  <?php } ?>
<?php } ?>
<li class="m-menu__section">
  <h4 class="m-menu__section-text">
    Data Management
  </h4>
  <i class="m-menu__section-icon fa fa-database"></i>
</li>
<?php if ($this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'operation_manager') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="clients_menu">
    <a href="<?php echo base_url() . 'clients' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-users"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Clients
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if (($this->config->item('app_module_sales_enquiries') == 1 || $this->config->item('app_module_sales_invoice') == 1) && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="customers_menu">
    <a href="<?php echo base_url() . 'customers' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-users"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Sales Cutomers
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>

<?php if ($this->config->item('app_module_sales_enquiries') == 1 && $this->session->userdata('user_role') != 'qs_manager' &&  $this->session->userdata('user_role') != 'purchase_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="services_menu">
    <a href="<?php echo base_url() . 'services' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-toolbox"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Services & Service Types
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if ($this->config->item('Project_beneficiary_accounts') == 1) { ?>
  <li class="m-menu__item " aria-haspopup="true" id="meter_makes_menu">
    <a href="<?php echo base_url() . 'data/meters' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-sitemap"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Meter Makes
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if ($this->session->userdata('user_role') == 'accounts_manager' || $this->session->userdata('user_role') == 'operation_manager' || $this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'admin' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'purchase_manager' || $this->session->userdata('user_role') == 'procurement_engineer') { ?>
  <li class="m-menu__item " aria-haspopup="true" id="suppliers_menu">
    <a href="<?php echo base_url() . 'supplier' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-shopping-bag"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Suppliers
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
  <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="materials_menu">
    <a href="#" class="m-menu__link m-menu__toggle">
      <i class="m-menu__link-icon fa fa-layer-group"></i>
      <span class="m-menu__link-text">
        Materials Management
      </span>
      <i class="m-menu__ver-arrow la la-angle-right"></i>
    </a>
    <div class="m-menu__submenu">
      <span class="m-menu__arrow"></span>
      <ul class="m-menu__subnav">
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="materials_menu_1">
          <a href="<?php echo base_url() . 'material' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-icon fa fa-tags">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              Materials
            </span>
          </a>
        </li>
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="materials_menu_2">
          <a href="<?php echo base_url() . 'material/categories' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-icon fa fa-sitemap">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              Material Categories
            </span>
          </a>
        </li>
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="materials_menu_3">
          <a href="<?php echo base_url() . 'units' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-icon fa fa-balance-scale">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              Measure Units
            </span>
          </a>
        </li>
      </ul>
    </div>
  </li>
<?php } ?>
<?php if ($this->session->userdata('user_role') == 'auditor' || $this->session->userdata('user_role') == 'admin'|| $this->session->userdata('user_role') == 'operation_manager' || $this->session->userdata('user_role') == 'madmin' || $this->session->userdata('user_role') == 'general_manager' || $this->session->userdata('user_role') == 'accounts_manager') { ?>
  <?php if ($this->config->item('app_module_sales_quotation') == 1 || $this->config->item('app_module_sales_invoice') == 1 || $this->config->item('app_module_client_payments') == 1) { ?>
    <li class="m-menu__item " aria-haspopup="true" id="bank_accounts_menu">
      <a href="<?php echo base_url() . 'settings/bank_accounts' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon la la-bank"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Bank A/C Details
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
  <?php if ($this->session->userdata('branch_id') == 0) { ?>
    <li class="m-menu__item " aria-haspopup="true" id="work_types_menu">
      <a href="<?php echo base_url() . 'work_types' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-sitemap"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Work Types
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>

    <li class="m-menu__item " aria-haspopup="true" id="work_categories_menu">
      <a href="<?php echo base_url() . 'work_categories' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-code-branch"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Work Categories
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>

    <li class="m-menu__item " aria-haspopup="true" id="project_sections_menu">
      <a href="<?php echo base_url() . 'work/project_sections' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fas fa-columns"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Project Sections
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
    <li class="m-menu__item " aria-haspopup="true"  id="holidays_menu">
      <a  href="<?php echo base_url() . 'settings/holidays' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-calendar"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Holidays
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
    <li class="m-menu__item " aria-haspopup="true" id="area_locations_menu">
      <a href="<?php echo base_url() . 'work/area_locations' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-map-marker"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Work Location Area
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
    <?php if ($this->config->item('multi_company') == 1 && $this->session->userdata('user_role') == 'admin') { ?>
      <li class="m-menu__item " aria-haspopup="true" id="companies_menu">
        <a href="<?php echo base_url() . 'data/companies' ?>" class="m-menu__link ">
          <i class="m-menu__link-icon fa fa-sitemap"></i>
          <span class="m-menu__link-title">
            <span class="m-menu__link-wrap">
              <span class="m-menu__link-text">
                Companies
              </span>
              <span class="m-menu__link-badge">

              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
  <?php } ?>
<?php } ?>
<?php if ($this->session->userdata('branch_id') == 0) { ?>
  <?php if ($this->config->item('app_module_company_branches') == 1 && $this->session->userdata('user_role') == 'admin' && $this->session->userdata('branch_id') == 0) { ?>

    <li class="m-menu__item " aria-haspopup="true" id="branches_menu">
      <a href="<?php echo base_url() . 'branches' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-sitemap"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Branches
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>

  <?php } ?>

  <?php if ($this->config->item('Tax_tax_splitting') == 1 && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'procurement_engineer' && $this->session->userdata('user_role') != 'project_manager' && $this->session->userdata('user_role') != 'hr_manager' && $this->session->userdata('user_role') != 'supervisor') { ?>
    <li class="m-menu__item " aria-haspopup="true" id="tax_types_menu">
      <a href="<?php echo base_url() . 'settings/tax_types' ?>" class="m-menu__link ">
        <i class="m-menu__link-icon fa fa-toolbox"></i>
        <span class="m-menu__link-title">
          <span class="m-menu__link-wrap">
            <span class="m-menu__link-text">
              Tax Types
            </span>
            <span class="m-menu__link-badge">

            </span>
          </span>
        </span>
      </a>
    </li>
  <?php } ?>
  <?php if ($this->config->item('Data_billing_addresses') == 1){?>
  <li class="m-menu__item " aria-haspopup="true" id="billing_address_menu">
    <a href="<?php echo base_url() . 'settings/billing_address' ?>" class="m-menu__link ">
      <i class="m-menu__link-icon fa fa-map-marker"></i>
      <span class="m-menu__link-title">
        <span class="m-menu__link-wrap">
          <span class="m-menu__link-text">
            Billing Address
          </span>
          <span class="m-menu__link-badge">

          </span>
        </span>
      </span>
    </a>
  </li>
  <?php } ?>
<?php } ?>
<li class="m-menu__section">
  <h4 class="m-menu__section-text">
    Configurations
  </h4>
  <i class="m-menu__section-icon fa fa-wrench"></i>
</li>
<li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="settings_menu">
  <a href="#" class="m-menu__link m-menu__toggle">
    <i class="m-menu__link-icon fa fa-cogs"></i>
    <span class="m-menu__link-text">
      Settings
    </span>
    <i class="m-menu__ver-arrow la la-angle-right"></i>
  </a>
  <div class="m-menu__submenu">
    <span class="m-menu__arrow"></span>
    <ul class="m-menu__subnav">
      <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="settings_menu_1">
        <a href="<?php echo base_url() . 'user/change_password' ?>" class="m-menu__link m-menu__toggle">
          <i class="m-menu__link-bullet m-menu__link-bullet--dot">
            <span></span>
          </i>
          <span class="m-menu__link-text">
            Change Password
          </span>
        </a>
      </li>
      <?php if ($this->session->userdata('user_role') == 'admin') { ?>
        <li class="m-menu__item  m-menu__item--submenu" aria-haspopup="true" data-menu-submenu-toggle="hover" id="settings_menu_2">
          <a href="<?php echo base_url() . 'settings/app_config' ?>" class="m-menu__link m-menu__toggle">
            <i class="m-menu__link-bullet m-menu__link-bullet--dot">
              <span></span>
            </i>
            <span class="m-menu__link-text">
              App Configurations
            </span>
          </a>
        </li>
      <?php } ?>
    </ul>
  </div>
</li>
</ul>
</div>
<!-- END: Aside Menu -->
</div>
<!-- END: Left Aside -->
