-
Notifications
You must be signed in to change notification settings - Fork 0
/
withdrawals.php
48 lines (41 loc) · 2.57 KB
/
withdrawals.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php include "includes/head.php"; ?>
<?php
$getData = $conn->query("SELECT * FROM payouts ORDER BY id DESC");
?>
<!-- Start info box -->
<div class="row mt-5">
<div class="col-12">
<div class="widget">
<div class="widget-content" style="padding:10px;">
<div class="table-responsive">
<table id="datatables-1" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Transaction ID</th>
<th>Email Address</th>
<th>Amount(₦)</th>
<th>Status</th>
<th>Request/Review Date</th>
<th>...</th>
</tr>
</thead>
<tbody>
<?php while($row = $getData->fetch(PDO::FETCH_OBJ)){ ?>
<tr>
<td><?php echo $row->transaction_id; ?></td>
<td><?php $getUser = $conn->query("SELECT * FROM users WHERE id = '$row->user_id'"); $user = $getUser->fetch(PDO::FETCH_OBJ); echo $user->email; ?></td>
<td><?php echo $row->amount; ?></td>
<td><?php echo $row->wstatus; ?></td>
<td><?php echo $row->created_at."/".$row->updated_at; ?></td>
<td><a href="withdrawal.php?id=<?php echo $row->id; ?>" class="btn btn-sm btn-info"><i class="fa fa-chevron-right"></i></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- End of info box -->
<?php include "includes/foot.php"; ?>