<?php $this->view("includes/Inc_pagehead");?>
<!-- Page Styles Goes Here-->
<style>
.m-form .m-form__group {
  padding-top: 0px;
  padding-bottom: 0px;
}
</style>
<?php $this->view("includes/Inc_navigation");?>
<div class="m-grid__item m-grid__item--fluid m-wrapper">
  <!-- BEGIN: Subheader -->
  <div class="m-subheader ">
    <div class="d-flex align-items-center">
      <div class="mr-auto">
        <h3 class="m-subheader__title m-subheader__title--separator">
          Add New Salary Slip
        </h3>
        <ul class="m-subheader__breadcrumbs m-nav m-nav--inline">
          <li class="m-nav__item m-nav__item--home">
            <a href="#" class="m-nav__link m-nav__link--icon">
              <i class="m-nav__link-icon la la-home"></i>
            </a>
          </li>
          <li class="m-nav__separator">
            -
          </li>
          <li class="m-nav__item">
            <a href="<?php echo $this->session->userdata("dashboard_link")?>" class="m-nav__link">
              <span class="m-nav__link-text">
                Home
              </span>
            </a>
          </li>
          <li class="m-nav__separator">
            -
          </li>
          <li class="m-nav__item">
            <a href="<?php echo base_url() ?>" class="m-nav__link">
              <span class="m-nav__link-text">
                Add New Salary Slip
              </span>
            </a>
          </li>


        </ul>
      </div>
      <div>

      </div>
    </div>
  </div>
  <!-- END: Subheader -->
  <div class="m-content">
    <!--begin::Portlet-->
    <div class="row">

      <div class="col-lg-12">
        <div class="m-portlet">
          <div class="m-portlet__head">
            <div class="m-portlet__head-caption">
              <div class="m-portlet__head-title">
                <h3 class="m-portlet__head-text">
                  Add New Salary Slip
                </h3>
              </div>
            </div>
          </div>
          <!--begin::Form-->
          <form autocomplete="off"  data-form-type="project_add" id="form_salary_slip_add" method="post" action="<?php echo base_url().'work/create'?>" enctype="multipart/form-data" class="m-form m-form--fit m-form--state m-form--label-align-right ">
            <div class="m-portlet__body" >
              <div class="m-form__content">
                <div class="m-alert m-alert--icon alert alert-warning m--hide" role="alert" id="form_salary_slip_add_msg">
                  <div class="m-alert__icon">
                    <i class="la la-warning"></i>
                  </div>
                  <div class="m-alert__text">
                    Oh snap! Change a few things up and try submitting again.
                  </div>
                  <div class="m-alert__close">
                    <button type="button" class="close" data-close="alert" aria-label="Close"></button>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg-6">
                    <div class="m-form__group form-group" >
                      <label class="col-form-label">Salary Slip Under</label>
                      <div class="m-radio-inline">
                        <?php if($page_name!='work_profile'){ ?>
                          <label class="m-radio m-radio--solid m-radio--state-brand">
                            <input required type="radio" name="salary_slip_type" value="Office"> Office Expense
                            <span></span>
                          </label>
                        <?php } ?>
                        <label class="m-radio m-radio--solid m-radio--state-success">
                          <input type="radio"  <?php if($page_name=='work_profile'){ echo "required"." "."checked"; }?> name="salary_slip_type" value="Project"> Project Expense
                          <span></span>
                        </label>
                      </div>
                      <span class="m-form__help"></span>
                    </div>
                  </div>
                  <div class="col-lg-6" style="display: none;" id="salary_slip_work_div_add">
                    <div class="form-group m-form__group">
                      <label for="user_name">
                        Project Name
                      </label>
                      <div class="m-select2 m-select2--air m-select2--pill">
                        <select  style="width: 100%" class="form-control m-select2 form_salary_slip_add_select" id="salary_slip_work_add"  name="work_id" data-placeholder="Select Work">
                          <option selected disabled>Select Project</option>
                          <?php
                          foreach($works as $row): ?>
                          <option data-work-status="<?php echo $row->work_status?>" value="<?php echo $row->work_id?>"><?php echo $row->work_name?></option>
                          <?php
                        endforeach;
                        ?>
                      </select>
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
              <div class="row" style="padding-left: 15px;padding-right: 15px;">
                <div class="col-lg-5 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Employee
                    </label>
                    <div class="m-select2 m-select2--air m-select2--pill">
                      <select required style="width: 100%" class="form-control m-select2  form_salary_slip_add_select salary_add_calculate_fields" id="salary_slip_employee_add" name="employee"  >
                        <option selected disabled>Select Employee</option>
                        <?php
                        foreach($employees as $row):
                          ?>
                          <option value="<?php echo $row->employee_id?>"><?php echo $row->employee_name." [".$row->user_designation."]"?></option>
                          <?php
                        endforeach;
                        ?>
                      </select>
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-2 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Month
                    </label>
                    <div class="input-group m-input-group--air m-input-group--pill  date">
                      <input value="<?php echo date('M Y')?>"  data-date-format="mm-yyyy" id="salary_slip_month_add" required type="text" name="month" class="form-control  m-input " placeholder="Month" >
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-5">
                  <div class="row">
                    <div class="col-lg-6 padding-0">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Basic Wage
                        </label>
                        <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                          <input value="0" required type="text" name="basic_wage" id="salary_slip_basic_wage_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Basic Wage" aria-describedby="basic-addon1">
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-6 padding-0">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Type
                        </label>
                        <div class="m-select2 m-select2--air m-select2--pill">
                          <select required style="width: 100%" class="form-control m-select2  form_salary_slip_add_select salary_add_calculate_fields" id="salary_slip_basic_wage_type_add" name="basic_wage_type"  >
                            <option selected disabled>Select Type</option>
                            <option value="Hourly">Hourly</option>
                            <option value="Daily" selected>Daily</option>
                            <option value="Monthly">Monthly</option>
                          </select>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <?php if($this->config->item('HR_salary_slip_template')==1){ ?>
                <div class="row monthly_fields_salary_add" style="padding-left: 15px;padding-right: 15px;display:none">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Month Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="<?php echo date("t")?>" type="text" name="month_days" id="salary_slip_month_days_add"  class=" form_salary_slip_add_fields_2 salary_add_calculate_fields form-control m-input" placeholder="Days in Month" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Hourly Rate</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="hourly_rate" id="salary_slip_hourly_rate_add"  class=" form_salary_slip_add_fields_2  form-control m-input" placeholder="Hourly Rate" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help">* <?php echo $this->config->item('HR_daily_working_hour'); ?> Hours in a Day</span>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-6">
                        <div class="row">
                          <div class="col-lg-4 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Public Holidays</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" type="text" name="holidays" id="salary_slip_public_holidays_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Holidays" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-4 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Medical Leave</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" type="text" name="medical_leave" id="salary_slip_medical_leave_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Medical Leave" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-4 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Absent</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" type="text" name="absent" id="salary_slip_absent_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Absent" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row" style="padding-left: 15px;padding-right: 15px;">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" id="worked_type_add_1">Worked Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="1" required type="text" name="worked_nos" id="salary_slip_worked_nos_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Worked Nos" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="worked_type_add_2">Days</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Details
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime" id="salary_slip_overtime_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime" aria-describedby="basic-addon1">
                            <div class="input-group-prepend" >
                              <span class="input-group-text" style="padding: 0px;width: 90px">
                                <select required style="width: 100%" class="form-control  salary_add_calculate_fields" id="salary_slip_overtime_type_add" name="overtime_type"  >
                                  <?php
                                  $overtime_types = explode(',',$this->config->item('HR_salary_slip_overtime_types'));
                                  foreach ($overtime_types as $key => $value) { ?>
                                    <option selected value="<?php echo $value?>"><?php echo $value?></option>
                                  <?php } ?>
                                </select>
                              </span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" id="worked_type_add_1">Overtime Rate</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime_rate" id="salary_slip_overtime_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Amt
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="overtime_amount" id="salary_slip_overtime_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <?php }elseif($this->config->item('HR_salary_slip_template')==2){ ?>
                <div class="row monthly_fields_salary_add" style="padding-left: 15px;padding-right: 15px;display:none">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Month Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="<?php echo date("t")?>" type="text" name="month_days" id="salary_slip_month_days_add"  class=" form_salary_slip_add_fields_2 salary_add_calculate_fields form-control m-input" placeholder="Days in Month" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" id="worked_type_add_1">Worked Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="1" required type="text" name="worked_nos" id="salary_slip_worked_nos_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Worked Nos" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="worked_type_add_2">Days</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Basic Wage Payable
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="basic_wage_payable_amount" id="salary_slip_basic_wage_payable_amount_add"  class="form_salary_slip_add_fields_1 form-control m-input" placeholder="Basic Wage Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Details
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime" id="salary_slip_overtime_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime" aria-describedby="basic-addon1">
                            <div class="input-group-prepend" >
                              <span class="input-group-text" style="padding: 0px;width: 90px">
                                <select required style="width: 100%" class="form-control  salary_add_calculate_fields" id="salary_slip_overtime_type_add" name="overtime_type"  >
                                  <?php
                                  $overtime_types = explode(',',$this->config->item('HR_salary_slip_overtime_types'));
                                  foreach ($overtime_types as $key => $value) { ?>
                                    <option selected value="<?php echo $value?>"><?php echo $value?></option>
                                  <?php } ?>
                                </select>
                              </span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" id="overtime_rate_div_add">
                          <label for="user_name" id="worked_type_add_1">Overtime Rate</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime_rate" id="salary_slip_overtime_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Amt
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="overtime_amount" id="salary_slip_overtime_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <?php }elseif($this->config->item('HR_salary_slip_template')==3){ ?>
                <div class="row monthly_fields_salary_add" style="padding-left: 15px;padding-right: 15px;display:none">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Worked Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="1" required type="text" name="worked_nos" id="salary_slip_worked_nos_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Worked Nos" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="worked_type_add_2">Days</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Basic Wage
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_basic_wage" id="salary_slip_total_basic_wage_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Basic Wage" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Bonus <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_bonus_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="bonus_amount" id="salary_slip_bonus_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Bonus Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Tiffin Allowance <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item("Currency_currency_format").$this->config->item('HR_salary_tiffin_allowance_per_day')."/Day)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="tiffin_amount" id="salary_slip_tiffin_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Tiffin Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Details
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime" id="salary_slip_overtime_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime" aria-describedby="basic-addon1">
                            <div class="input-group-prepend" >
                              <span class="input-group-text" style="padding: 0px;width: 90px">
                                <select required style="width: 100%" class="form-control  salary_add_calculate_fields" id="salary_slip_overtime_type_add" name="overtime_type"  >
                                  <?php
                                  $overtime_types = explode(',',$this->config->item('HR_salary_slip_overtime_types'));
                                  foreach ($overtime_types as $key => $value) { ?>
                                    <option selected value="<?php echo $value?>"><?php echo $value?></option>
                                  <?php } ?>
                                </select>
                              </span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0" style="display:none">
                        <div class="form-group m-form__group" >
                          <label for="user_name">Overtime Rate</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime_rate" id="salary_slip_overtime_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Amt <span id="salary_slip_overtime_rate_info_add"></span>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="overtime_amount" id="salary_slip_overtime_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            HRA <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_hra_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="hra_amount" id="salary_slip_hra_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="HRA Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            CEB <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_ceb_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="ceb_amount" id="salary_slip_ceb_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="CEB Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            EL <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_el_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="el_amount" id="salary_slip_el_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="EL Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Salary
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_salary" id="salary_slip_total_salary_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            PF <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_pf_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="pf_amount" id="salary_slip_pf_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="PF Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            ESI <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_esi_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="esi_amount" id="salary_slip_esi_amount_add"  class="salary_slip_template_3_fields salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="ESI Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <?php }elseif($this->config->item('HR_salary_slip_template')==4){ ?>
                <div class="row monthly_fields_salary_add" style="padding-left: 15px;padding-right: 15px;display:none">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Total Paid Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="<?php echo date("t")?>" type="text" name="month_days" id="salary_slip_month_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" placeholder="Days in Month" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Paid Holidays</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="holidays" id="salary_slip_paid_holidays_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Max Payable Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="max_payable_days" id="salary_slip_max_payable_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Net Paid Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="net_paid_days" id="salary_slip_net_paid_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Paid Leaves</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="paid_leaves" id="salary_slip_paid_leaves_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Weekly Off (SUN)</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly  type="text" name="weekly_off_days" id="salary_slip_weekly_off_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Working Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="working_days" id="salary_slip_working_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >LWP Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="lwp_days" id="salary_slip_lwp_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Present Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="1" readonly required type="text" name="worked_nos" id="salary_slip_worked_nos_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3  form-control m-input" placeholder="Present Days" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="worked_type_add_2">Days</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Basic Salary <?php echo "(".$this->config->item('HR_salary_basic_salary_percent')."%)"; ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_basic_wage" id="salary_slip_total_basic_wage_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Basic Wage" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            HRA <?php echo "(".$this->config->item('HR_salary_hra_percent')."%)"; ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="hra_amount" id="salary_slip_hra_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="HRA Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Conv. Allowance <?php  echo "(".$this->config->item('HR_salary_conveyance_allowance_percent')."%)"; ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="conv_allowance_amt" id="salary_slip_conv_allowance_amt_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Special Allowance <?php  echo "(".$this->config->item('HR_salary_special_allowance_percent')."%)"; ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="special_allowance_amount" id="salary_slip_special_allowance_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input"  aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            City Comp. Alwnc <?php echo "(".$this->config->item('HR_salary_city_compensatory_allowance_percent')."%)"; ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly id="salary_slip_city_compensatory_amount_add" value="0" required type="text" name="city_compens_amount" id="salary_slip_city_compensatory_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="HRA Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Details
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime" id="salary_slip_overtime_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime" aria-describedby="basic-addon1">
                            <div class="input-group-prepend" >
                              <span class="input-group-text" style="padding: 0px;width: 90px">
                                <select required style="width: 100%" class="form-control  salary_add_calculate_fields" id="salary_slip_overtime_type_add" name="overtime_type"  >
                                  <?php
                                  $overtime_types = explode(',',$this->config->item('HR_salary_slip_overtime_types'));
                                  foreach ($overtime_types as $key => $value) { ?>
                                    <option selected value="<?php echo $value?>"><?php echo $value?></option>
                                  <?php } ?>
                                </select>
                              </span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0" style="display:none">
                        <div class="form-group m-form__group" >
                          <label for="user_name">Overtime Rate</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="overtime_rate" id="salary_slip_overtime_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Overtime Amt <span id="salary_slip_overtime_rate_info_add"></span>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="overtime_amount" id="salary_slip_overtime_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Earnings
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_salary" id="salary_slip_total_salary_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            PF <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_pf_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="pf_amount" id="salary_slip_pf_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="PF Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            ESI <?php if($this->config->item('HR_salary_slip_template_3_fields_editable')==0){ echo "(".$this->config->item('HR_salary_esi_percent')."%)";} ?>
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="esi_amount" id="salary_slip_esi_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="ESI Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            LWP Amount
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="lwp_amount" id="salary_slip_lwp_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="ESI Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <?php }elseif($this->config->item('HR_salary_slip_template')==5){ ?>
                <div class="row monthly_fields_salary_add" style="padding-left: 15px;padding-right: 15px;display:none">
                  <div class="col-lg-12">
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Total Paid Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="<?php echo date("t")?>" type="text" name="month_days" id="salary_slip_month_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" placeholder="Days in Month" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Paid Holidays</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="holidays" id="salary_slip_paid_holidays_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Max Payable Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="max_payable_days" id="salary_slip_max_payable_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Net Paid Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly type="text" name="net_paid_days" id="salary_slip_net_paid_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-10">
                        <div class="row">
                          <div class="col-lg-3 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Paid Leaves</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly type="text" name="paid_leaves" id="salary_slip_paid_leaves_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Weekly Off (SUN)</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly  type="text" name="weekly_off_days" id="salary_slip_weekly_off_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >Working Days</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly type="text" name="working_days" id="salary_slip_working_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name" >LWP Days</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly type="text" name="lwp_days" id="salary_slip_lwp_days_add"  class=" form_salary_slip_add_fields_3 salary_add_calculate_fields form-control m-input" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name" >Present Days</label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="1" readonly required type="text" name="worked_nos" id="salary_slip_worked_nos_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3  form-control m-input" placeholder="Present Days" aria-describedby="basic-addon1">
                            <div class="input-group-prepend">
                              <span class="input-group-text" id="worked_type_add_2">Days</span>
                            </div>
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                    <div class="m-form__seperator m-form__seperator--dashed" style="border-top: 1px dashed #c4c4c4;margin-bottom: 20px"></div>
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Basic Salary
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_basic_wage" id="salary_slip_total_basic_wage_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Basic Wage" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            HRA + DA
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="hra_amount" id="salary_slip_hra_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="HRA Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Conv. Allowance
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="conv_allowance_amt" id="salary_slip_conv_allowance_amt_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Batta
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="batta_amount" id="salary_slip_batta_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input"  aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-4">
                        <div class="row">
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Overtime Details
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="overtime" id="salary_slip_overtime_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime" aria-describedby="basic-addon1">
                                <div class="input-group-prepend" >
                                  <span class="input-group-text" style="padding: 0px;width: 90px">
                                    <select required style="width: 100%" class="form-control  salary_add_calculate_fields" id="salary_slip_overtime_type_add" name="overtime_type"  >
                                      <?php
                                      $overtime_types = explode(',',$this->config->item('HR_salary_slip_overtime_types'));
                                      foreach ($overtime_types as $key => $value) { ?>
                                        <option selected value="<?php echo $value?>"><?php echo $value?></option>
                                      <?php } ?>
                                    </select>
                                  </span>
                                </div>
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0" style="display:none">
                            <div class="form-group m-form__group" >
                              <label for="user_name">Overtime Rate</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="overtime_rate" id="salary_slip_overtime_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                                <div class="input-group-prepend">
                                  <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                                </div>
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Overtime Amt <span id="salary_slip_overtime_rate_info_add"></span>
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly value="0" required type="text" name="overtime_amount" id="salary_slip_overtime_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-lg-4">
                        <div class="row">
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Holiday/Sunday Worked
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="holiday_worked" id="salary_slip_holiday_worked_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Holiday Worked" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0" style="display:none">
                            <div class="form-group m-form__group" >
                              <label for="user_name">Rate</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="holiday_worked_rate" id="salary_slip_holiday_worked_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                                <div class="input-group-prepend">
                                  <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                                </div>
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Amount
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly value="0" required type="text" name="holiday_worked_amount" id="salary_slip_holiday_worked_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-lg-4">
                        <div class="row">
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Stay Days
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="stay_days" id="salary_slip_stay_days_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Holiday Worked" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-3 padding-0" style="display:none">
                            <div class="form-group m-form__group" >
                              <label for="user_name">Rate</label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="stay_days_rate" id="salary_slip_stay_days_rate_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_2  form-control m-input" placeholder="Overtime Rate" aria-describedby="basic-addon1">
                                <div class="input-group-prepend">
                                  <span class="input-group-text" id="overtime_rate_type_show_add">/Hour</span>
                                </div>
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Amount
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input readonly value="0" required type="text" name="stay_days_amount" id="salary_slip_stay_days_amount_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Overtime Amt" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Travel Allowance
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="travel_allowance" id="salary_slip_travel_allowance_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            File Balance
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="file_balance_addition" id="salary_slip_file_balance_addition_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Others
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="others_addition" id="salary_slip_others_addition_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Salary
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_salary" id="salary_slip_total_salary_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_3 form-control m-input" placeholder="Total" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                    <div class="m-form__seperator m-form__seperator--dashed" style="border-top: 1px dashed #c4c4c4;margin-bottom: 20px"></div>
                    <div class="row">
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Salary Advance
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" readonly required type="text" name="advance_paid" id="salary_slip_advance_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Paid Batta
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="paid_batta" id="salary_slip_paid_batta_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-3">
                        <div class="row">
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Leave Days
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="leave_days" id="salary_slip_leave_days_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Deducted Amount
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="leave_amount" id="salary_slip_leave_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-lg-3">
                        <div class="row">
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                No Work Days
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="no_work_days" id="salary_slip_no_work_days_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                          <div class="col-lg-6 padding-0">
                            <div class="form-group m-form__group" >
                              <label for="user_name">
                                Deducted Amount
                              </label>
                              <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                                <input value="0" required type="text" name="no_work_days_amount" id="salary_slip_no_work_days_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                              </div>
                              <span class="m-form__help"></span>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Bonus
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="bonus_amount_ded" id="salary_slip_bonus_amount_ded_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Deposit
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="deposit_amount" id="salary_slip_deposit_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Loan
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input value="0" required type="text" name="loan_amount" id="salary_slip_loan_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            ESI
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="esi_amount" id="salary_slip_esi_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="ESI Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            PF
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="pf_amount" id="salary_slip_pf_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="PF Amt" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Charity Fund
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="charity_amount" id="salary_slip_charity_amount_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            File Balance
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="file_balance_ded" id="salary_slip_file_balance_ded_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Other Deductions
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input  value="0" required type="text" name="others_ded" id="salary_slip_others_ded_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-6 padding-0"></div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Total Deductions
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="total_deductions" id="salary_slip_total_deductions_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                      <div class="col-lg-2 padding-0">
                        <div class="form-group m-form__group" >
                          <label for="user_name">
                            Balance Salary
                          </label>
                          <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                            <input readonly value="0" required type="text" name="balance_salary" id="salary_slip_balance_salary_add"  class="form_salary_slip_add_fields_3 salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="" aria-describedby="basic-addon1">
                          </div>
                          <span class="m-form__help"></span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              <?php } ?>
              <?php if($this->config->item('HR_salary_slip_template')!=5){ ?>
              <div class="row" style="padding-left: 15px;padding-right: 15px;">
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Extra Allowance
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input value="0" required type="text" name="allowance" id="salary_slip_allowance_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Allowance Amt" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Total Salary
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input readonly value="0" required type="text"  id="salary_slip_total_salary_add"  class="form_salary_slip_add_fields_1 form-control m-input" placeholder="Total Wage" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Extra Deductions
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input value="0" required type="text" name="deductions" id="salary_slip_deductions_add"  class="salary_add_calculate_fields form_salary_slip_add_fields_1 form-control m-input" placeholder="Deductions Amt" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      NET Salary Amount
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input readonly value="0" required type="text" name="total_wage" id="salary_slip_payable_amount_add"  class="form_salary_slip_add_fields_1 form-control m-input" placeholder="Total Wage" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-lg-6"></div>
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Advance Paid Amount
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input value="0" required type="text" name="advance_paid" readonly id="salary_slip_advance_amount_add"  class="form_salary_slip_add_fields_1 form-control m-input salary_add_calculate_fields" placeholder="Total Wage" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-3 padding-0">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      NET Payable Amount
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <?php echo $this->config->item('Currency_currency_format'); ?>
                        </span>
                      </div>
                      <input readonly value="0" required type="text" name="payable_amount" id="salary_slip_total_payable_amount_add"  class="form_salary_slip_add_fields_1 form-control m-input" placeholder="Total Wage" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
            <?php } ?>
              <div class="row">
                <div class="col-lg-12">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Remarks
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <div class="input-group-prepend">
                        <span class="input-group-text" id="basic-addon1">
                          <i class="la la-edit"></i>
                        </span>
                      </div>
                      <input  type="text" name="remarks"  class="form-control m-input form_salary_slip_add_fields" placeholder="Salary Slip Remarks" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>

              </div>
              <input type="hidden" value="<?php echo $this->config->item('HR_daily_working_hour'); ?>" name="daily_work_hour" id="salary_slip_daily_work_hour_add"  />
              <input type="hidden" value="1" name="basic_wage_fixed" id="salary_slip_basic_wage_fixed_add" />
              <input type="hidden" name="hourly_rate_2" id="salary_slip_hourly_rate_add_2" />
              <input type="hidden" name="regular_hours" id="salary_slip_regular_hours_add" />

              <div class="m-form__seperator m-form__seperator--dashed" style="border-top: 1px dashed #c4c4c4;margin-bottom: 20px"></div>
              <div style="background: white;border: 4px solid #f7f7fa;padding: 0px;margin: 0px;padding-bottom: 0px">
                <div class="m-section" style="margin: 0px 0 10px 0;">
                  <h3 class="m-section__heading" style="padding: 10px;margin: 0px">Transaction Details</h3>
                  <div class="row" style="padding-top: 15px" >
                    <div class="col-lg-4" >
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Paid Amount
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input required type="text" name="paid_amount" id="salary_slip_paid_amount_add" value="0" class="form-control m-input m-input--pill m-input--air salary_add_calculate_fields form_salary_slip_add_fields" placeholder="Paid Amount" aria-describedby="basic-addon1">
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><?php echo $this->config->item('Currency_currency_format'); ?></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-4">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Paid Date
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input data-date-format="dd-mm-yyyy" id="salary_slip_paid_date_add"  type="text" name="paid_date" class="form_salary_slip_add_fields form-control m-input m-input--pill m-input--air salary_slip_paid_amount_req_fields " placeholder="Paid Date" >
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><i class="la la-calendar"></i></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-4">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Paid From Acc
                        </label>
                        <div class="m-select2 m-select2--air m-select2--pill">
                          <select id="salary_slip_debit_acc_add" name="debit_acc" style="width: 100%" class="form-control m-input form_salary_slip_add_select salary_slip_paid_amount_req_fields"  aria-describedby="basic-addon1">
                            <?php
                            foreach($this->config->item('account_heads') as $row):
                              $selected="";
                              if($row->acc_head_id==1){
                                $selected="selected";
                              }
                              ?>
                              <option <?php echo $selected?> value="<?php echo $row->acc_head_id?>"><?php echo $row->acc_head_name?></option>
                              <?php
                            endforeach;
                            ?>
                          </select>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                  </div>
                  <div class="row" >
                    <div class="col-lg-4">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Payment Mode
                        </label>
                        <div class="m-select2 m-select2--air m-select2--pill">
                          <select id="salary_slip_payment_mode_add" name="payment_mode" style="width: 100%" class="form-control m-input form_salary_slip_add_select salary_slip_paid_amount_req_fields"  aria-describedby="basic-addon1">
                            <option selected disabled>Select Payment Mode</option>
                            <?php
                            foreach($this->config->item('payment_modes') as $row):
                              ?>
                              <option value="<?php echo $row?>"><?php echo $row?></option>
                              <?php
                            endforeach;
                            ?>
                          </select>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-4" >
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          TR Reference No
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input type="text" name="reference_no"  class="form-control m-input m-input--pill m-input--air form_salary_slip_add_fields" placeholder="Reference No" aria-describedby="basic-addon1">
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><i class="la la-edit"></i></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-4">
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          TR Reference Date
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input type="text" data-date-format="dd-mm-yyyy" name="reference_date" id="salary_slip_reference_date_add"  class="form-control m-input m-input--pill m-input--air form_salary_slip_add_fields" placeholder="Reference Date" aria-describedby="basic-addon1">
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><i class="la la-tag"></i></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-8" >
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Transaction Remarks
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input type="text" name="tr_remarks" class="form-control m-input m-input--pill m-input--air form_salary_slip_add_fields" placeholder="Transaction Remarks" aria-describedby="basic-addon1">
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><i class="la la-edit"></i></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                    <div class="col-lg-4" >
                      <div class="form-group m-form__group" >
                        <label for="user_name">
                          Balance Amount
                        </label>
                        <div class="m-input-icon m-input-icon--right">
                          <input readonly type="text" name="balance_amount" id="salary_slip_balance_amount_add" class="form-control m-input m-input--pill m-input--solid m-input--air form_salary_slip_add_fields" placeholder="Balance Amount" value="0" aria-describedby="basic-addon1">
                          <span class="m-input-icon__icon m-input-icon__icon--right"><span><?php echo $this->config->item('Currency_currency_format'); ?></span></span>
                        </div>
                        <span class="m-form__help"></span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="m-portlet__foot m-portlet__foot--fit">
            <div class="m-form__actions m-form__actions">
              <div class="row">
                <div class="col-lg-9 ml-lg-auto">
                  <button type="submit" class="btn btn-brand form_submit_btn">
                    Submit
                  </button>
                  <button type="reset" class="btn btn-secondary">
                    Cancel
                  </button>
                </div>
              </div>
            </div>
          </div>
        </form>
        <!--end::Form-->

      </div>
    </div>

  </div>
</div>
</div>
</div>
<!-- end:: Body -->
<!-- begin::Footer -->

<?php $this->view("includes/Inc_footer");?>
<!-- end::Footer -->
</div>
<!-- end:: Page -->

<?php $this->view("includes/Inc_sidebar");?>
<?php $this->view("includes/Inc_scripts");?>

<!--begin::Page Snippets -->
<?php $this->view("modules/include_scripts/bill_scripts");?>
<?php $this->view("modules/include_scripts/transaction_scripts");?>
<script>

//    Toggle Sidebar
// $("#m_aside_left_minimize_toggle").addClass("m-brand__toggler--active");
// $("#body").addClass("m-brand--minimize m-aside-left--minimize");
$("#hr_menu").addClass('m-menu__item--active m-menu__item--open');
$("#hr_menu_2").addClass('m-menu__item--active');

</script>
<?php $this->view("modules/include_scripts/salary_slips_scripts");?>
