<?php

session_start();


if (!isset($_SESSION['admin_userName'])) {
    header('Location: login.php');
    }
    $report_data=$_SESSION['vppData'];
?>
<?php include("header.php"); ?>
<style>
     .g {
        background-color: rgba(0,0,0,0.5);
    }
     #nav  .d1
    {
        color: #f9a825;
        font-weight: 600;
    }
         nav a:hover {
    background-color: #721418;
    color: #f9a825;
        font-weight: 600;
}
@media print {
  body * {
    visibility: hidden;
  }
  #pending-tb, #pending-tb * {
    visibility: visible;
    margin-top: 0px;
  }
  #logo, #logo * {
    visibility: visible;
  }
  #brdate, #brdate * {
    visibility: visible;
  }
  #amemo-tb{
    position: absolute;
    left: 0;
    top: 0;
  }
}
</style>
<body onload="window.print();">
   <div class="logo" id="logo" style="text-align: center; visibility: hidden;" >
        <img src="img/sun logo4.jpg" style="width: 30%; margin-bottom: 20px;">
    </div>
    
    <div id="brdate" style="text-align: center;font-weight: bold; margin: 10px; font-size: 25px; visibility: hidden;">
        <span><?php echo $_GET['vppSt'];  ?></span>
    </div>


    <div class="card" style=" border-radius: 8px; margin: 10px 10px 10px 10px; position: absolute; top: 20%;">
  <div class="data" style=" padding: 10px">

	     <div class="row">
					<div class="col-md-12 table-responsive">
  					<table class="table table-bordered " style="text-align: center; border-radius: 5px;" id="pending-tb">
  					  <thead>
  					    <tr style="background-color: #EFEEEE">
  					      <th scope="col">Receipt Number</th>
  					      <th scope="col">From</th>
  					      <th scope="col">To</th>
                            <th scope="col">To Branch</th>
  					      <th scope="col">Particulars</th>
  					     
  					      <th scope="col">Kg</th>
  					    <!--   <th scope="col">Courier Charges</th>
                            <th scope="col">GST Charges</th> -->
  					      <th scope="col">Grand Total</th>
                             <th scope="col">VPP Amount</th>
  					  
                            <th scope="col">Status</th>
  					    </tr>
  					  </thead>
  					  <tbody>
  					    
                              
                                <?php  foreach ($report_data as $key => $value) {?>
                                      <tr>
                                          <td><?php echo $value['rc_number'];?></td>
                                          <td><?php echo $value['rc_from'];?></td> 
                                          <td><?php echo $value['rc_to'];?></td> 
                                           <td><?php echo $value['rc_toBranch'];?></td>
                                          <td>
                                              <?php
                                                  $des=$value['rc_particulars'];
                                                  $ex=explode('_', $des);
                                                  $new = strtoupper(end($ex));
                                                  echo $new;
                                              ?>
                                                  
                                              </td> 
                                         
                                          <td><?php echo $value['rc_kg']; echo " KG";?></td> 
                                         <!--  <td><?php echo "&#8377; "; echo $value['rc_cour_total'];?></td>  
                                          <td><?php echo "&#8377; "; echo $value['rc_gst_total'];?></td> -->
                                          <td><?php echo "&#8377; "; echo $value['rc_total'];?></td>
                                       <td><?php echo $value['compAmt'];?></td> 

                                          <td><?php echo $value['vvp_payment_status'];  ?></td>
                                      </tr>
                                  
                                  <?php 
                                  }
                              ?>
  					    
  					  </tbody>
  					</table>
            <!--<button name="submit" type="submit" style="background-color: transparent; border: none;" onclick="window.print();"><a class="btn" style="background-color: #00AC8B; border-radius: 4px; color: #fff">Print</a></button>-->
					</div>
				</div>
			</div>

		</div>

    	
</body>