<table width="100%" class="table m-table nowrap table-header-fixed table-striped table-bordered table-hover table-header-fixed" id="subcontracts_view_table" style="display:none">
  <thead>
    <tr class="">
      <th>Sl No</th>
      <th>Branch</th>
      <th>ID</th>
      <th>Project</th>
      <th>Sub Work Type</th>
      <th>Contract Type</th>
      <th>Sub Work Name</th>
      <th>Contractor</th>
      <th>Description</th>
      <th>Est. Budget</th>
      <th>No.of Bills Received</th>
      <th>Total Bill Amount</th>
      <th>Total Paid<br/>(On Bill)</th>
      <th>Balance to Bills</th>
      <th>Op. Balance Paid</th>
      <th>Advance Paid</th>
      <th>Total Paid<br/>(Bill + OP Balance + Advance)</th>
      <th>Balance Payable<br/>(Bill Amt - Total Paid)</th>
      <th>TDS</th>
      <th>Retention</th>
      <th>Balance to Budget</th>
      <th>Created By</th>
      <th>Created Date</th>
      <th>Actions</th>
      <th>Work Type ID</th>
      <th>Work Id</th>
      <th>Contract ID</th>
    </tr>
  </thead>
  <tbody>
  </tbody>
</table>
<div class="modal fade" tabindex="-1" id="subcontract_delete_modal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog " role="document" >
    <form autocomplete="off" data-form-type="subcontract" id="form_subcontract_delete" method="post" data-modal-id="subcontract_delete_modal" action="<?php echo base_url().'subcontracts/delete'?>" 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="contract_id" id="delete_contract_id">
          <input type="hidden" name="redirect_url" value="<?php echo base_url(uri_string())?>" >
        </div>
      </div>
    </form>
  </div>
</div>
<div class="modal fade"  tabindex="-1" id="subcontract_approve_modal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog " role="document" >
    <form autocomplete="off" method="post" data-modal-id="subcontract_approve_modal" id="form_subcontract_approve" action="<?php echo base_url().'subcontracts/approve'?>" class="form-horizontal">
      <div class="modal-content">
        <div class="alert alert-info" 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/>
          <div class="alert m-alert--default" role="alert" style="margin-bottom: 10px">
            <div class="form-group m-form__group" >
              <label for="user_name" style="color: black">Approval Status</label>
              <div class="m-radio-inline" style="padding-top: 10px;">
                <label class="m-radio m-radio--solid m-radio--state-success">
                  <input required type="radio" class="form_fields_radio"  name="subcontract_approval_status" value="1"> Approved
                  <span></span>
                </label>
                <label class="m-radio m-radio--solid m-radio--state-danger">
                  <input type="radio" class="form_fields_radio" name="subcontract_approval_status"  value="2"> Rejected
                  <span></span>
                </label>
              </div>
              <span class="m-form__help"></span>
            </div>
          </div>
          <p>
            <button class="btn btn-danger form_submit_btn" type="submit" name="submit">Confirm & Proceed</button>
            <button type="button" class="btn btn-primary modal-dismiss" data-dismiss="modal">Cancel</button>
          </p>
          <input type="hidden" name="subcontract_id" id="subcontract_id_appoval">
        </div>
      </div>
    </form>
  </div>
</div>
