<?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>WITHDRAWL HISTORY</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">Name</th>  
                        <th   style="width:auto">Id</th>   
                        <th   style="width:auto">Dollar</th>   
                        <th   style="width:auto">In INR</th>   
                        <th   style="width:auto">Date</th>    
                        <th   style="width:auto">To Adrress</th>
                        <th   style="width:auto">Status</th>
            
                        
                </tr>  
                
                    <?php 
                                $sr = 1;
                                foreach($Result as $dmm) 
                                {         
                                    $stmt=$conn->prepare("select  * from  UI__Rgst  where cuurentId=:cuurentId");   
                                    $stmt->bindValue(':cuurentId',   $dmm->custId, PDO::PARAM_STR);  
                                    $stmt->execute();  
                                    $Result1 = $stmt->fetch(PDO::FETCH_OBJ);  
                                ?>   
                     <tr>
                                <td><?php echo $sr++;?></td>
                                <td><?php echo $Result1->nm;?> </td>
                                <td><?php echo $Result1->cuurentId;?></td>  
                                <td><?php echo round($dmm->AMMT,2);?></td>   
                                <td>&#8377;<?php echo round(($dmm->AMMT*$dmm->INRVAl),2);?></td> 
                                <td><?php echo $dmm->Tdate?></td> 
                                <td><?php echo $dmm->address;?></td>  
                                <td><?php if($dmm->status==0) echo "Pending"; else if($dmm->status==2) echo "Reject"; else     if($dmm->status==1) echo "Approved";?></td>  
                           
						    	</tr>
                    <?php                
                                } 
                               
                	?>  
              </table>
         </div>
       </div>
   </div>
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['TpMsg']);