<?php
// session_start();
include 'head.php';
include 'header.php';?>
<body class="skin-default fixed-layout">
<div id="main-wrapper">
<?php
include 'sidebar.php';
// include_once ("../_db.php");
$sql = $conn->query("SELECT * FROM payments WHERE status = 'pending' ");
?>
<div class="page-wrapper">
<section>
<div class="">
<?php
include 'nav1.php';
?>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<?php echo isset($_SESSION['mgs'])?$_SESSION['mgs']:""?>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<th>#</th>
<th>Date</th>
<th>RentalID</th>
<th>TransacID</th>
<th>Sender Name</th>
<th>Amount</th>
<th>Status</th>
<th>----</th>
</thead><br>
<tbody>
<?php
$select_products = mysqli_query($conn, "SELECT * FROM `payments` where status = 'pending' ");
if (mysqli_num_rows($select_products) > 0) {
$num=1;
while ($row = mysqli_fetch_assoc($select_products)){
?>
<tr>
<td><?php echo $num++; ?></td>
<td><?php echo $row['created_at']; ?></td>
<td><?php echo $row['rental_id']; ?></td>
<td><?php echo $row['deposit_id']; ?></td>
<td><?php echo $row['sender_name']; ?></td>
<td><?php echo $row['price']; ?></td>
<td><?php echo $row['status']; ?></td>
<td>
<a href="deposit_details.php?deposit_id=<?=$row['deposit_id']?>" class="btn btn-info btn-sm">Details</a>
</td>
</tr>
<?php } }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>
Back to Directory