<?php 
require('header.php');
$get_deposit = $special->get_alt_transactions($client_id,'Manual Deposit');

?>
	<!-- TRACKING ORDER -->
	<section class="py-5" id="">
		<div class="container py-md-3">
			<h4 class="heading text-center text-white"> <span class="fa fa-book"></span> ACCOUNT DEPOSIT RECORD</h4>
			<div class="row">
				<div class="col-lg-12 acct-wrapper">
					<table class="table">
						<thead>
							<td>TNX ID</td>
							<td>Amount</td>
							<td>Net Amount</td>
							<td>Charge</td>
							<td>Method</td>
							<td>Status</td>
							<td>Confirmation</td>
							<td>Proof</td>
							<td>Date</td>
						</thead>
						<?php
						foreach($get_deposit as $xdeposit){
						?>
						<tr><td><?php echo $xdeposit['tnx']; ?></td>
							<td>
							<?php echo $xdeposit['amount']; ?> USD
							</td>
							<td>
							<?php echo $xdeposit['final_amount']; ?> USD
							</td>
							<td>
							<?php echo $xdeposit['charge']; ?> USD
							</td>
							<td>
							<?php echo $xdeposit['method']; ?>
							</td>
							<td>
							<?php echo $xdeposit['status']; ?>
							</td>
							
							<td>
							<?php 
							if($xdeposit['status'] == 'pending'){
							?><form action="/admin/view_wire.php" method="post">
								<input type="hidden" value="<?php echo $xdeposit['tnx']; ?>" name="id">
								<input type="hidden" value="<?php echo $xdeposit['amount']; ?>" name="amount">
								<input type="hidden" value="<?php echo $xdeposit['type']; ?>" name="type">
								<input type="hidden" value="<?php echo $xdeposit['user_id']; ?>" name="email">
								<button type="submit" name="approveAction" class="btn btn-sm btn-danger" style="font-size:13px;">Approve Deposit</button>
								</form> 
							<?php }else{	?>						
								<span class="badge badge-success" style="font-size:13px;"><i class="fa fa-check"></i> Approved</span>							
							<?php } ?>
							
						</td>
							<td><a target="_blank" href="../img/upload/proof/<?php echo $xdeposit['proof_url']; ?>" class="btn btn-sm btn-primary" style="font-size:13px;">Preview Proof</a></td>
							<td><?php echo $xdeposit['created_at']; ?></td>
						</tr>

						<?php } ?>					
					</table>
						
				</div>
			</div>
		</div>
		</div>
	</section>

</body>

</html>