<?php   
	include_once("../view/header-footer/header.php");  
?>  
  
  
  
   <!-- Features -->
   <div class="innerDeader">
      <div class="container">
       <a href="javascript:void(0);" id="go-back" class="goBack PaySound">
           <img src="<?php echo ROOTPATH;?>/images/Arrow 1.svg" alt="back">
       </a>  
          <h4>COLLECTION QR REPORT</h4>
     </div>    
   </div>
   <div class="innerBody">
       <div class="container">
         <di class="tableBox">
            <table>
                
                <tr>
                    <th   style="width:auto">S No.</th> 
                    <th   style="width:auto">Amount</th>   
                    <th   style="width:auto">Date</th>   
                    <th   style="width:auto">Balance</th>   
                    <th   style="width:auto">By UPI</th>   
                    <th   style="width:auto">By Name</th> 
                    <th   style="width:auto">Type</th>     
                </tr>  
                
                    <?php 
                                $sr = 1;
                                foreach($Result as $dmm) 
                                {  
                                           
                    ?>             
                    <tr  >
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>><?php echo $sr++;?></td>
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>>&#8377;<?php echo $dmm->Amt;?></td>
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>><?php echo $dmm->Tdate;?> </td>  
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>>&#8377;<?php echo $dmm->balance;?></td>
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>><?php echo $dmm->sender_vpa;?></td>  
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>><?php echo $dmm->sender_name;?></td>   
                        <td <?php if($dmm->type==1) {?> style="color:red;" <?php }else { ?>  style="color:green;"  <?php } ?>><?php if($dmm->type==1) echo "Debit"; else echo "Credit";?></td>   
                    <?php                
                              
                    		}     
                    	?>   
              </table>
         </div>
       </div>
   </div> 
</div> 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['TpMsg']);