<?php if($this->config->item('app_module_project_stages')==1 && ($this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role_id')==20)){?>
  <li class="m-nav__item profile_nav" id="nav_project_stages" data-nav="project_stages" data-table-name=''>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-list"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Project Stages
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if($this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='accounts_manager' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin' || $this->session->userdata('user_role')=='supervisor'){?>
<?php if ($this->config->item('app_module_client_payments') == 1 ){?>
  <?php if ($this->config->item('app_module_proforma_invoice') == 1){ ?>
  <li class="m-nav__item profile_nav" id="nav_proforma_invoices" data-nav="proforma_invoices" data-table-name='proforma_invoices_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-th-list"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Proforma Invoices
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
  <li class="m-nav__item parent-nav" id="parent_m_nav_link_client_payment">
    <a class="m-nav__link collapsed" role="tab" id="m_nav_link_client_payment" data-toggle="collapse" href="#m_nav_sub_client_payment" aria-expanded=" false">
      <i class="m-nav__link-icon fa fa-briefcase"></i>
      <span class="m-nav__link-title" style="width: 100%">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">Client Payments & Invoices</span>
        </span>
      </span>
      <span class="m-nav__link-arrow"></span>
    </a>
    <ul class="m-nav__sub collapse " id="m_nav_sub_client_payment" role="tabpanel" aria-labelledby="m_nav_link_client_payment" data-parent="#m_nav">
      <?php if($this->config->item('Client_Payment_client_payment_invoice')==1) { ?>
        <li class="m-nav__item profile_nav" id="nav_invoices" data-nav="invoices" data-parent-nav="m_nav_link_client_payment" data-table-name='invoices_view_table'>
          <a href="javascript:;" class="m-nav__link">
            <i class="m-nav__link-icon fa fa-th-list"></i>
            <span class="m-nav__link-title">
              <span class="m-nav__link-wrap">
                <span class="m-nav__link-text">
                  Invoices
                </span>
              </span>
            </span>
          </a>
        </li>
      <?php } ?>
      <li class="m-nav__item profile_nav" id="nav_client_payments" data-parent-nav="m_nav_link_client_payment" data-nav="client_payments" data-table-name='client_payments_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-suitcase"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                All Client Payments
              </span>
            </span>
          </span>
        </a>
      </li>
    </ul>
  </li>
  <?php } ?>
<?php } ?>
<?php if($this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='accounts_manager'  || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin'){?>
<?php if ($this->config->item('app_module_assets_management') == 1){?>
  <li class="m-nav__item profile_nav" id="nav_security_deposits" data-nav="security_deposits" data-table-name='security_deposits_view_table,emd_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-suitcase"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Security Deposits
          </span>
        </span>
      </span>
    </a>
  </li>
  <?php } ?>
<?php } ?>
<?php if($this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='accounts_manager' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin'){?>
  <!-- <li class="m-nav__item profile_nav" id="nav_loans" data-nav="loans" data-table-name='loans_view_table,loan_payments_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-suitcase"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Loans & Payments
          </span>
        </span>
      </span>
    </a>
  </li> -->
<?php } ?>
<?php if($this->session->userdata('user_role')=='operation_manager' || $this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='boq_manager' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin' || $this->session->userdata('user_role')=='supervisor' || $this->session->userdata('user_role')=='qs_manager'){?>
  <?php if($this->config->item('app_module_boq')==1){?>
    <li class="m-nav__item parent-nav" id="parent_m_nav_link_boq">
      <a class="m-nav__link collapsed" role="tab" id="m_nav_link_boq" data-toggle="collapse" href="#m_nav_sub_boq" aria-expanded=" false">
        <i class="m-nav__link-icon fa fa-list"></i>
        <span class="m-nav__link-title" style="width: 100%">
          <span class="m-nav__link-wrap">
            <span class="m-nav__link-text">BOQ</span>
          </span>
        </span>
        <span class="m-nav__link-arrow"></span>
      </a>
      <ul class="m-nav__sub collapse " id="m_nav_sub_boq" role="tabpanel" aria-labelledby="m_nav_link_boq" data-parent="#m_nav">
        <li class="m-nav__item profile_nav" id="nav_boq" data-parent-nav="m_nav_link_boq" data-nav="boq" data-table-name='boq_view_table'>
          <a href="javascript:;" class="m-nav__link">
            <i class="m-nav__link-icon fa fa-list"></i>
            <span class="m-nav__link-title">
              <span class="m-nav__link-wrap">
                <span class="m-nav__link-text">
                List of BOQ
                </span>
              </span>
            </span>
          </a>
        </li>
        <?php if($this->config->item('boq_purchase_integration')==1){ ?>
        <li class="m-nav__item profile_nav" id="nav_material_usage" data-parent-nav="m_nav_link_boq" data-nav="material_usage" data-table-name=''>
          <a href="javascript:;" class="m-nav__link">
            <i class="m-nav__link-icon fa fa-list"></i>
            <span class="m-nav__link-title">
              <span class="m-nav__link-wrap">
                <span class="m-nav__link-text">
                Material Usage Report
                </span>
              </span>
            </span>
          </a>
        </li>
      <?php } ?>
      </ul>
    </li>
  <?php } ?>
<?php } ?>
<?php if($this->session->userdata('user_role')=='auditor' || $this->config->item('app_module_project_schedule')==1 && ($this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='supervisor' || $this->session->userdata('user_role')=='madmin')){?>
  <li class="m-nav__item profile_nav" id="nav_schedule" data-nav="schedule" data-table-name='project_tasks_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-chart-line"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Project Scheduling
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if($this->session->userdata('user_role')=='supervisor' || $this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='accounts_manager'|| $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='supervisor' || $this->session->userdata('user_role')=='madmin'){?>
<li class="m-nav__item profile_nav" id="nav_custom_requirements" data-nav="custom_requirements" data-table-name='project_custom_requirements_view_table'>
  <a href="javascript:;" class="m-nav__link">
    <i class="m-nav__link-icon fa fa-list"></i>
    <span class="m-nav__link-title">
      <span class="m-nav__link-wrap">
        <span class="m-nav__link-text">
          Custom Requirements
        </span>
      </span>
    </span>
  </a>
</li>
<?php } ?>
<?php if($this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='accounts_manager' || $this->session->userdata('user_role')=='purchase_manager' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin' || $this->session->userdata('user_role')=='supervisor' || $this->session->userdata('user_role') != 'qs_manager' || $this->session->userdata('user_role') != 'qs'){?>
  <li class="m-nav__item parent-nav" id="parent_m_nav_link_purchase">
    <a class="m-nav__link collapsed" role="tab" id="m_nav_link_purchase" data-toggle="collapse" href="#m_nav_sub_purchase" aria-expanded=" false">
      <i class="m-nav__link-icon fa fa-shopping-cart"></i>
      <span class="m-nav__link-title" style="width: 100%">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">Purchases</span>
        </span>
      </span>
      <span class="m-nav__link-arrow"></span>
    </a>
    <ul class="m-nav__sub collapse " id="m_nav_sub_purchase" role="tabpanel" aria-labelledby="m_nav_link_purchase" data-parent="#m_nav">
      <?php if($this->session->userdata('user_role')!='accounts_manager'){ ?>
        <?php if($this->config->item('app_module_purchase_request')==1){?>
          <li class="m-nav__item profile_nav" id="nav_purchase_requests" data-parent-nav="m_nav_link_purchase" data-nav="purchase_requests" data-table-name='purchase_request_view_table'>
            <a href="javascript:;" class="m-nav__link">
              <i class="m-nav__link-icon fa fa-shopping-cart"></i>
              <span class="m-nav__link-title">
                <span class="m-nav__link-wrap">
                  <span class="m-nav__link-text">
                    Purchase Requests
                  </span>
                </span>
              </span>
            </a>
          </li>
        <?php } ?>
      <?php } ?>
      <?php if($this->config->item('app_module_purchase_order')==1 && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
        <li class="m-nav__item profile_nav" id="nav_purchase_orders" data-parent-nav="m_nav_link_purchase" data-nav="purchase_orders" data-table-name='purchase_order_view_table,purchase_order_transaction_view_table'>
          <a href="javascript:;" class="m-nav__link">
            <i class="m-nav__link-icon fa fa-shopping-cart"></i>
            <span class="m-nav__link-title">
              <span class="m-nav__link-wrap">
                <span class="m-nav__link-text">
                  Purchase Orders & Payments
                </span>
              </span>
            </span>
          </a>
        </li>
      <?php } ?>
      <?php if($this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
      <li class="m-nav__item profile_nav" id="nav_purchases" data-parent-nav="m_nav_link_purchase" data-nav="purchases" data-table-name='purchase_bills_view_table,purchase_bill_transaction_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-shopping-cart"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Purchase Bills & Payments
              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-nav__item profile_nav" id="nav_purchase_materials" data-parent-nav="m_nav_link_purchase" data-nav="purchase_materials" data-table-name='materials_purchased_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-shopping-cart"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Purchased Materials
              </span>
            </span>
          </span>
        </a>
      </li>
      <?php } ?>
    </ul>
  </li>
<?php } ?>
<?php if($this->config->item('app_module_stock_management')==1 && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <li class="m-nav__item parent-nav" id="parent_m_nav_link_stock">
    <a class="m-nav__link collapsed" role="tab" id="m_nav_link_stock" data-toggle="collapse" href="#m_nav_sub_stock" aria-expanded=" false">
      <i class="m-nav__link-icon fa fa-server"></i>
      <span class="m-nav__link-title" style="width: 100%">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">Stock Management</span>
        </span>
      </span>
      <span class="m-nav__link-arrow"></span>
    </a>
    <ul class="m-nav__sub collapse " id="m_nav_sub_stock" role="tabpanel" aria-labelledby="m_nav_link_stock" data-parent="#m_nav">
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_stock" id="nav_stock_register" data-nav="stock_register" data-table-name='stock_register_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-server"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Stock Register
              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_stock" id="nav_transfer_in" data-nav="transfer_in" data-table-name='stock_transfer_in_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-sign-in-alt"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Stock Transfer In
              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_stock" id="nav_transfer_out" data-nav="transfer_out" data-table-name='stock_transfer_out_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-sign-out-alt"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Stock Transfer Out
              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_stock" id="nav_consumed" data-nav="consumed" data-table-name='stock_consumption_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-shopping-basket"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Stock Consumed
              </span>
            </span>
          </span>
        </a>
      </li>
    </ul>
  </li>
<?php } ?>
<?php if($this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
<?php if ($this->config->item('app_module_labours') == 1){?>
  <li class="m-nav__item profile_nav" id="nav_labour_wages" data-nav="labour_wages" data-table-name='labour_wage_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-users"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Labour Wage Slips
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php } ?>
<?php if($this->config->item('app_module_tools_management')==1 && $this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <li class="m-nav__item parent-nav" id="parent_m_nav_link_tools">
    <a class="m-nav__link collapsed" role="tab" id="m_nav_link_tools" data-toggle="collapse" href="#m_nav_sub_tools" aria-expanded=" false">
      <i class="m-nav__link-icon fa fa-toolbox"></i>
      <span class="m-nav__link-title" style="width: 100%">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">Tools Management</span>
        </span>
      </span>
      <span class="m-nav__link-arrow"></span>
    </a>
    <ul class="m-nav__sub collapse " id="m_nav_sub_tools" role="tabpanel" aria-labelledby="m_nav_link_tools" data-parent="#m_nav">
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_tools" id="nav_tool_transfer_rent" data-nav="tool_transfer_rent" data-table-name='tool_transfer_view_table,tool_rent_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-exchange-alt"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Tools - Transfer & Rent
              </span>
            </span>
          </span>
        </a>
      </li>
      <li class="m-nav__item profile_nav" data-parent-nav="m_nav_link_tools" id="nav_tool_consumption_payment" data-nav="tool_consumption_payment" data-table-name='tool_payments_view_table,tool_payment_transanctions_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon fa fa-th-list"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Tools - Consumption & Payment
              </span>
            </span>
          </span>
        </a>
      </li>
    </ul>
  </li>
<?php } ?>
<?php if($this->config->item('app_module_hr')==1 && $this->session->userdata('user_role')!='purchase_manager' && $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') != 'operation_manager'){?>
  <li class="m-nav__item profile_nav" id="nav_salary_slips" data-nav="salary_slips" data-table-name='salary_slip_view_table,employee_payments_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-users"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Salary Slips & Payments
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if($this->config->item('app_module_vehicle')==1 && $this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
<?php if ($this->config->item('app_module_vehicle') == 1){?>
  <li class="m-nav__item profile_nav" id="nav_vehicle_work_slip" data-nav="vehicle_work_slip" data-table-name='vehicle_work_slip_view_table,vehicle_work_slip_transaction_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-truck"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Vehicle Work Slips & Payments
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php } ?>
<?php if($this->session->userdata('user_role')!='operation_manager' &&$this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <li class="m-nav__item profile_nav" id="nav_expenses" data-nav="expenses" data-table-name='expense_bills_view_table,expense_bill_payments_view_table,expense_bills_heads_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-clipboard-list"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Expense Bills
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>

<?php if($this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager'){?>
  <li class="m-nav__item profile_nav" id="nav_sub_contracts" data-nav="sub_contracts" data-table-name='subcontracts_view_table,subcontract_payments_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-sitemap"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Subcontract Works & Payments
          </span>
        </span>
      </span>
    </a>
  </li>
  <?php if ($this->config->item('Subcontract_material_issue') == 1) { ?>
    <li class="m-nav__item profile_nav" id="nav_sub_contracts_material_issue" data-nav="sub_contracts_material_issue" data-table-name='material_issue_items_view_table,material_issue_bills_view_table'>
      <a href="javascript:;" class="m-nav__link">
        <i class="m-nav__link-icon fa fa-shopping-cart"></i>
        <span class="m-nav__link-title">
          <span class="m-nav__link-wrap">
            <span class="m-nav__link-text">
              Subcontract Material Issue
            </span>
          </span>
        </span>
      </a>
    </li>
    <?php } ?>
    <?php if ($this->config->item('Project_beneficiary_accounts') == 1) { ?>
      <li class="m-nav__item profile_nav" id="nav_beneficiary_accounts" data-nav="beneficiary_accounts" data-table-name='project_beneficiary_accounts_view_table'>
        <a href="javascript:;" class="m-nav__link">
          <i class="m-nav__link-icon la la-users"></i>
          <span class="m-nav__link-title">
            <span class="m-nav__link-wrap">
              <span class="m-nav__link-text">
                Beneficiary Accounts
              </span>
            </span>
          </span>
        </a>
      </li>
    <?php } ?>
<?php } ?>
<?php if($this->config->item('app_module_project_documents')==1 && $this->session->userdata('user_role')!='accounts_manager' && $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') { ?>
  <li class="m-nav__item profile_nav" id="nav_project_documents" data-nav="project_documents" data-table-name='documents_view_table'>
  <a href="javascript:;" class="m-nav__link">
  <i class="m-nav__link-icon la la-folder-open"></i>
  <span class="m-nav__link-title">
  <span class="m-nav__link-wrap">
  <span class="m-nav__link-text">
  Project Documents
</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') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <?php if($this->session->userdata('user_role')!='accounts_manager' && $this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role')!='sales_manager') { ?>
    <li class="m-nav__item profile_nav" id="nav_daily_task" data-nav="daily_task" data-table-name='daily_task_view_table'>
    <a href="javascript:;" class="m-nav__link">
    <i class="m-nav__link-icon la la-list-alt"></i>
    <span class="m-nav__link-title">
    <span class="m-nav__link-wrap">
    <span class="m-nav__link-text">
    Daily Tasks & Activities
  </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') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <?php if($this->session->userdata('user_role')!='accounts_manager' && $this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role')!='sales_manager') { ?>
    <li class="m-nav__item profile_nav" id="nav_daily_notes" data-nav="daily_notes" data-table-name='daily_note_view_table'>
    <a href="javascript:;" class="m-nav__link">
    <i class="m-nav__link-icon fa fa-sticky-note"></i>
    <span class="m-nav__link-title">
    <span class="m-nav__link-wrap">
    <span class="m-nav__link-text">
    Daily Notes
  </span>
</span>
</span>
</a>
</li>
<?php } ?>
<?php } ?>
<?php if($page_name=='work_profile' && $this->session->userdata('user_role')!='purchase_manager' && $this->session->userdata('user_role')!='boq_manager' && $this->session->userdata('user_role') != 'qs_manager' && $this->session->userdata('user_role') != 'qs'){?>
  <li class="m-nav__item profile_nav" id="nav_supervisors" data-nav="supervisors" data-table-name='user_assign_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-users"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Assigned Supervisors <?php if($this->config->item('User_project_commission_payment')==1){ ?>& Commissions <?php } ?>
          </span>
        </span>
      </span>
    </a>
  </li>
<?php } ?>
<?php if($this->config->item('Labour_projet_assigning')==1 && ($this->session->userdata('user_role')=='auditor' || $this->session->userdata('user_role')=='general_manager' || $this->session->userdata('user_role')=='admin' || $this->session->userdata('user_role')=='madmin')){?>
  <li class="m-nav__item profile_nav" id="nav_assigned_labours" data-nav="assigned_labours" data-table-name='assigned_labour_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-user-friends"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Assigned Labours
          </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') != 'qs_manager' && $this->session->userdata('user_role') != 'qs' && $this->session->userdata('user_role') != 'operation_manager'){?>
  <li class="m-nav__item profile_nav" id="nav_creditors_list" data-nav="creditors_list" data-table-name='creditors_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-clipboard-list"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Creditors & Debitors List
          </span>
        </span>
      </span>
    </a>
  </li>
  <?php if ($this->config->item('Project_show_project_summary_admin_only') == 0 || ($this->config->item('Project_show_project_summary_admin_only') == 1 && $this->session->userdata('user_role')=='admin') ){?>
  <li class="m-nav__item profile_nav" id="nav_balance_sheet" data-nav="balance_sheet" data-table-name='balance_sheet_view_table'>
    <a href="javascript:;" class="m-nav__link">
      <i class="m-nav__link-icon fa fa-clipboard-list"></i>
      <span class="m-nav__link-title">
        <span class="m-nav__link-wrap">
          <span class="m-nav__link-text">
            Balance Sheet
          </span>
        </span>
      </span>
    </a>
  </li>
  <?php } ?>
<?php } ?>
