<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title></title>
  <!--begin::Base Styles -->
  <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
  <script>
  WebFont.load({
    google: {"families":["Poppins:300,400,500,600,700","Roboto:300,400,500,600,700"]},
    active: function() {
      sessionStorage.fonts = true;
    }
  });
  </script>
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous" media="all">
  <!--end::Web font -->
  <!--begin::Base Styles -->
  <link href="<?php echo $this->config->item('Template_template_file_url'); ?>template/assets/vendors/base/vendors.bundle.css" rel="stylesheet" type="text/css" />
  <link href="<?php echo $this->config->item('Template_template_file_url'); ?>template/assets/demo/default/base/style.bundle.css" rel="stylesheet" type="text/css" />
  <!--end::Base Styles -->
  <style>
  body { font-family:Arial, Helvetica, sans-serif; font-size:20px; }
  .quotation { font-family:calibri; font-size:20px; text-align:left; font-style:normal; height:60px; text-align:justify; line-height:26px;}
  @font-face {
    font-family: calibri;
    src: url(calibri.ttf);
  }
  div {
    font-family: calibri;
  }
  </style>

  <style>
  @page {
    size: A4 Landscape;
  }
  </style>
</head>
<body>
  <table style="width:100%;" class="table m-table table-bordered item_table">
    <thead>
      <tr>
        <th colspan="4" style="text-align:center">List of Beneficiaries</th>
      </tr>
      <tr>
        <th>Project: <?php echo $selected_project?></th>
        <th>Subcontract: <?php echo $selected_subcontract?></th>
        <th>Supervisor: <?php echo $selected_supervisor?></th>
        <th>Ward: <?php echo $selected_ward?></th>
      </tr>
    </thead>
  </table>
  <table style="width:100%;" class="table m-table table-bordered item_table">
    <thead>
      <tr>
        <th>Sl No</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 & No</th>
        <th>KWA Approval & No</th>
        <th>Subcontractor</th>
        <th>Supervisor</th>
        <th>Road Cutting & Concrete</th>
        <th>20MM PE Additional</th>
        <th>Other Measurements</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($customer_data as $key => $value) { ?>
        <tr>
          <td><?php echo $key+1?></td>
          <td><?php echo $value->customer_id?>-<?php echo $value->customer_name?></td>
          <td><?php echo $value->guardian_name?></td>
          <td><?php echo $value->customer_address?></td>
          <td><?php echo $value->ward_no?></td>
          <td><?php echo $value->house_no?></td>
          <td><?php echo $value->street_name?></td>
          <td><?php echo $value->landmark?></td>
          <td><?php echo $value->phone_no?></td>
          <td><?php echo $value->aadhar_no?></td>
          <td><?php echo $value->meter_name?> - <?php echo $value->meter_no?></td>
          <td><?php echo $value->approval_no?></td>
          <td><?php echo $value->contractor_name?></td>
          <td><?php echo $value->supervisor_name?></td>
          <td><?php echo $value->road_cutting_concrete?></td>
          <td><?php echo $value->additional_pipe?></td>
          <td><?php echo $value->other_measurements?></td>
        </tr>
      <?php } ?>
    </tbody>
  </table>
  <script>
  window.print();
</script>
</body>
</html>
