<table width="100%" class="table m-table nowrap table-header-fixed table-striped table-bordered table-hover table-header-fixed" id="project_beneficiary_accounts_view_table">
  <thead>
    <tr class="">
      <th>Sl No</th>
      <th>Customer ID</th>
      <th>Project</th>
      <th>Beneficiary Name</th>
      <th>Guardian Name</th>
      <th>Address</th>
      <th>Ward No</th>
      <th>House No</th>
      <th>Street Name</th>
      <th>Landmark</th>
      <th>Phone</th>
      <th>Aadhar</th>
      <th>Meter Make</th>
      <th>Meter No</th>
      <th>Type of KWA Approval & No</th>
      <th>Subcontractor</th>
      <th>Supervisor</th>
      <th>Road Cutting & Concrete</th>
      <th>20MM PE Additional</th>
      <th>Other Measurements</th>
      <th>Remarks</th>
      <th>Creation</th>
      <th>Action</th>
      <th>Work ID</th>
      <th>Meter Make & No</th>
      <th>Subcontractor</th>
      <th>Supervisor</th>
    </tr>
  </thead>
  <tbody>
  </tbody>
</table>
<div class="modal fade" tabindex="-1" id="beneficiary_add_modal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog " role="document" style="max-width: 800px">
    <div class="modal-content">
      <div class="modal-header" style="background-color: #36a3f7;border-radius: 4px">
        <h5 class="modal-title" id="exampleModalLabel" style="color: #ffffff" >
          Create New Beneficiary
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">
            &times;
          </span>
        </button>
      </div>
      <form autocomplete="off" data-form-type="beneficiary" data-modal-id="beneficiary_add_modal" id="form_beneficiary_add" method="post" action="<?php echo base_url().'work/create_beneficiary_account'?>" enctype="multipart/form-data" class="form m-form m-form--fit m-form--state m-form--label-align-right " >
        <div class="modal-body">
          <div class="m-form__content">
            <div class="m-alert m-alert--icon alert alert-warning m--hide" role="alert" id="form_beneficiary_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>
          <div class="row">
            <div class="col-lg-4">
              <?php if ($page_name == 'work_profile') { ?>
                <div class="form-group m-form__group" >
                  <label for="user_name">
                    Project
                  </label>
                  <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                    <input readonly type="text" value="<?php echo $work_data->work_name?>" class="form-control m-input"  aria-describedby="basic-addon1">
                  </div>
                  <span class="m-form__help"></span>
                </div>
                <input name="project" type="hidden" value="<?php echo $work_data->work_id?>">
              <?php }else{ ?>
                <div class="form-group m-form__group"  >
                  <label for="user_name">
                    Select Project
                  </label>
                  <div class="m-select2 m-select2--air m-select2--pill">
                    <select required id="project_add_beneficiary" name="project"  style="width: 100%" class="form-control m-input" aria-describedby="basic-addon1" data-placeholder="Select Project">
                      <option selected disabled>Select Project</option>
                      <?php
                      foreach($work_contracts as $row):
                        ?>
                        <option  value="<?php echo $row->work_id?>"><?php echo $row->work_name ?></option>
                        <?php
                      endforeach;
                      ?>
                    </select>
                  </div>
                  <span class="m-form__help"></span>
                </div>
              <?php } ?>
            </div>
            <div class="col-lg-4">
              <div class="form-group m-form__group"  >
                <label for="user_name">
                  Select Subcontract
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select required id="subcontract_add_beneficiary" name="subcontract" style="width: 100%" class="form-control m-input" aria-describedby="basic-addon1" data-placeholder="Select Subcontract">

                  </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">
                  Supervisor
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select style="width: 100%" class="form-control m-select2 m-select2-general" required id="supervisor_add_beneficiary" name="supervisor">

                  </select>
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-7">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Name of Beneficiary (As Per ID Proof)
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="beneficiary_name" autocomplete="on" id="beneficiary_name" class="form-control m-input form_beneficiary_add_fields" placeholder="Name of Beneficiary" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-5">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Name of Father/Mother/Spouse
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="guardian_name" autocomplete="on" id="guardian_name" class="form-control m-input form_beneficiary_add_fields" placeholder="Name of Father/Mother/Spouse" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-7">
              <div class="row">
                <div class="col-lg-6">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Ward No
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input required type="text" name="ward_no" autocomplete="on" class="form-control m-input form_beneficiary_add_fields" placeholder="Ward No" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-6">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      House No
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input required type="text" name="house_no" class="form-control m-input form_beneficiary_add_fields" placeholder="House No" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-lg-12">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Street Name (Road/Path/Local Name)
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input type="text" name="street_name" autocomplete="on" class="form-control m-input form_beneficiary_add_fields" placeholder="Street Name" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-lg-5">
              <div class="form-group m-form__group">
                <label for="user_name">
                  Address
                </label>
                <textarea required placeholder="Address" rows="7" autocomplete="on" name="address" class="form-control form_beneficiary_add_fields m-input  m-input--air m-input--pill" ></textarea>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Landmark (To Identify Location)
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input  type="text" name="landmark" autocomplete="on" id="landmark" class="form-control m-input form_beneficiary_add_fields" placeholder="Landmark" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-3">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Phone No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="phone_no"  class="form-control m-input form_beneficiary_add_fields" placeholder="Phone No" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-3">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Aadhar No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="aadhar_no" class="form-control m-input form_beneficiary_add_fields" placeholder="Aadhar No" aria-describedby="basic-addon1">
                </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">
                  Meter Make
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select id="meter_make_add"  name="meter_make"  style="width: 100%" class="form-control m-input"  aria-describedby="basic-addon1" >
                    <option selected disabled>Select Meter Make & No</option>
                    <?php foreach ($meter_makes as $key => $value) { ?>
                      <option value="<?php echo $value->meter_id?>"><?php echo $value->meter_name?></option>
                    <?php } ?>

                  </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">
                  Meter No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="meter_no" autocomplete="on" id="meter_no" class="form-control m-input form_beneficiary_add_fields" aria-describedby="basic-addon1" placeholder="Meter No">
                </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">
                  Type of KWA Approval & No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="kwa_approval_no" id="kwa_approval_no" class="form-control m-input form_beneficiary_add_fields" placeholder="Type of KWA Approval & No" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div style="margin-bottom:20px;text-align:center;border: 2px dashed #7f7f7f;padding-left: 30px;padding-top: 10px;padding-right: 30px;padding-bottom: 10px;">
            <h5>Work Measurements</h5>
          </div>
          <div class="row">
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Road Cutting & Concreting
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="road_cutting_concrete" id="road_cutting_concrete" class="form-control m-input form_beneficiary_add_fields" placeholder="Road Cutting & Concreting" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  20MM PE Additional
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="additional_pipe" id="additional_pipe" class="form-control m-input form_beneficiary_add_fields" placeholder="20MM PE Additional" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-12">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Other Measurements If Any
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="other_measurements" id="other_measurements" class="form-control m-input form_beneficiary_add_fields" placeholder="Other Measurements If Any" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-12">
              <div class="form-group m-form__group">
                <label for="user_name">
                  Remarks If Any
                </label>
                <textarea placeholder="Remarks If Any" rows="6" name="remarks" class="form-control form_beneficiary_add_fields m-input  m-input--air m-input--pill" ></textarea>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary " data-dismiss="modal">
            Close
          </button>
          <button type="submit" class="btn btn-primary form_submit_btn">
            Submit
          </button>
        </div>
      </form>
    </div>
  </div>
</div>

<div class="modal fade" tabindex="-1" id="beneficiary_edit_modal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog " role="document" style="max-width: 800px">
    <div class="modal-content">
      <div class="modal-header" style="background-color: #36a3f7;border-radius: 4px">
        <h5 class="modal-title" id="exampleModalLabel" style="color: #ffffff" >
          Update Beneficiary Account
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">
            &times;
          </span>
        </button>
      </div>
      <form autocomplete="off" data-modal-id="beneficiary_edit_modal" id="form_beneficiary_edit" method="post" action="<?php echo base_url().'work/update_beneficiary_account'?>" enctype="multipart/form-data" class="form m-form m-form--fit m-form--state m-form--label-align-right " >
        <div class="modal-body">
          <div class="m-form__content">
            <div class="m-alert m-alert--icon alert alert-warning m--hide" role="alert" id="form_beneficiary_edit_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>
          <div class="row">
            <div class="col-lg-4">
              <?php if ($page_name == 'work_profile') { ?>
                <div class="form-group m-form__group" >
                  <label for="user_name">
                    Project
                  </label>
                  <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                    <input readonly type="text" value="<?php echo $work_data->work_name?>" class="form-control m-input"  aria-describedby="basic-addon1">
                  </div>
                  <span class="m-form__help"></span>
                </div>
                <input name="project" type="hidden" value="<?php echo $work_data->work_id?>">
              <?php }else{ ?>
                <div class="form-group m-form__group"  >
                  <label for="user_name">
                    Select Project
                  </label>
                  <div class="m-select2 m-select2--air m-select2--pill">
                    <select required id="project_edit_beneficiary" name="project"  style="width: 100%" class="form-control m-input" aria-describedby="basic-addon1" data-placeholder="Select Project">
                      <option selected disabled>Select Project</option>
                      <?php
                      foreach($work_contracts as $row):
                        ?>
                        <option  value="<?php echo $row->work_id?>"><?php echo $row->work_name ?></option>
                        <?php
                      endforeach;
                      ?>
                    </select>
                  </div>
                  <span class="m-form__help"></span>
                </div>
              <?php } ?>
            </div>
            <div class="col-lg-4">
              <div class="form-group m-form__group"  >
                <label for="user_name">
                  Select Subcontract
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select required id="subcontract_edit_beneficiary" name="subcontract" style="width: 100%" class="form-control m-input" aria-describedby="basic-addon1" data-placeholder="Select Subcontract">

                  </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">
                  Supervisor
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select style="width: 100%" class="form-control m-select2 m-select2-general" required id="supervisor_edit_beneficiary" name="supervisor">

                  </select>
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-7">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Name of Beneficiary (As Per ID Proof)
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="beneficiary_name" id="beneficiary_name_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Name of Beneficiary" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-5">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Name of Father/Mother/Spouse
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="guardian_name" id="guardian_name_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Name of Father/Mother/Spouse" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-7">
              <div class="row">
                <div class="col-lg-6">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Ward No
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input required type="text" name="ward_no" id="ward_no_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Ward No" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
                <div class="col-lg-6">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      House No
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input required type="text" name="house_no" id="house_no_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="House No" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-lg-12">
                  <div class="form-group m-form__group" >
                    <label for="user_name">
                      Street Name (Road/Path/Local Name)
                    </label>
                    <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                      <input type="text" name="street_name" id="street_name_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Street Name" aria-describedby="basic-addon1">
                    </div>
                    <span class="m-form__help"></span>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-lg-5">
              <div class="form-group m-form__group">
                <label for="user_name">
                  Address
                </label>
                <textarea required placeholder="Address" rows="7" name="address" id="beneficiry_address_edit" class="form-control form_beneficiary_edit_fields m-input  m-input--air m-input--pill" ></textarea>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Landmark (To Identify Location)
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input  type="text" name="landmark" id="landmark_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Landmark" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-3">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Phone No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="phone_no" id="beneficiry_phone_no_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Phone No" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-3">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Aadhar No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input required type="text" name="aadhar_no" id="aadhar_no_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Aadhar No" aria-describedby="basic-addon1">
                </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">
                  Meter Make
                </label>
                <div class="m-select2 m-select2--air m-select2--pill">
                  <select id="meter_make_edit"  name="meter_make"  style="width: 100%" class="form-control m-input"  aria-describedby="basic-addon1" >
                    <option selected disabled>Select Meter Make & No</option>
                    <?php foreach ($meter_makes as $key => $value) { ?>
                      <option value="<?php echo $value->meter_id?>"><?php echo $value->meter_name?></option>
                    <?php } ?>

                  </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">
                  Meter No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="meter_no" id="meter_no_edit" class="form-control m-input form_beneficiary_edit_fields" aria-describedby="basic-addon1" placeholder="Meter No">
                </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">
                  Type of KWA Approval & No
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="kwa_approval_no" id="kwa_approval_no_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Type of KWA Approval & No" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div style="margin-bottom:20px;text-align:center;border: 2px dashed #7f7f7f;padding-left: 30px;padding-top: 10px;padding-right: 30px;padding-bottom: 10px;">
            <h5>Work Measurements</h5>
          </div>
          <div class="row">
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Road Cutting & Concreting
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="road_cutting_concrete" id="road_cutting_concrete_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Road Cutting & Concreting" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-6">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  20MM PE Additional
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="additional_pipe" id="additional_pipe_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="20MM PE Additional" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-lg-12">
              <div class="form-group m-form__group" >
                <label for="user_name">
                  Other Measurements If Any
                </label>
                <div class="input-group m-input-group m-input-group--pill m-input-group--air">
                  <input type="text" name="other_measurements" id="other_measurements_edit" class="form-control m-input form_beneficiary_edit_fields" placeholder="Other Measurements If Any" aria-describedby="basic-addon1">
                </div>
                <span class="m-form__help"></span>
              </div>
            </div>
            <div class="col-lg-12">
              <div class="form-group m-form__group">
                <label for="user_name">
                  Remarks If Any
                </label>
                <textarea placeholder="Remarks If Any" rows="6" name="remarks" id="beneficiary_remarks_edit" class="form-control form_beneficiary_edit_fields m-input  m-input--air m-input--pill" ></textarea>
                <span class="m-form__help"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <input type="hidden" name="customer_id" id="beneficiary_id_edit">
          </div>

        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary " data-dismiss="modal">
            Close
          </button>
          <button type="submit" class="btn btn-primary form_submit_btn">
            Submit
          </button>
        </div>
      </form>
    </div>
  </div>
</div>

<div class="modal fade" tabindex="-1" id="beneficiary_delete_modal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog " role="document" >
    <form autocomplete="off" data-modal-id="beneficiary_delete_modal" method="post" action="<?php echo base_url().'work/delete_beneficiary_account'?>" class="form-horizontal">
      <div class="modal-content">
        <div class="alert alert-danger" role="alert" style="margin-bottom: 0px">
          <button type="button" class="close" data-dismiss="modal"></button>
          <br/>
          <h4 class="alert-heading">Warning! Please Confirm Your Action</h4>
          <br/>
          <p> Are You Sure to Delete this Data ?. All the Associated Data will Lost. </p>
          <p>
            <button class="btn btn-danger form_submit_btn" type="submit" name="submit">Confirm & Delete</button>
            <button type="button" class="btn btn-primary modal-dismiss" data-dismiss="modal">Cancel</button>
          </p>
          <input type="hidden" name="customer_id" id="beneficiary_id_delete">
        </div>
      </div>
    </form>
  </div>
</div>
