Your IP : 18.117.94.180


Current Path : /home/lentoinv/blossomfoodint.com/account/
Upload File :
Current File : //home/lentoinv/blossomfoodint.com/account/fundwallet.php

<?php
session_start(); ob_start();
?>
<!doctype html>
	<html lang="en">

	<head>
		<!-- Required meta tags -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!--favicon-->
		<link rel="icon" href="assets/images/favicon-32x32.png" type="image/png" />
		<!--plugins-->
		<link href="assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" />
		<link href="assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" />
		<link href="assets/plugins/highcharts/css/highcharts.css" rel="stylesheet" />
		<link href="assets/plugins/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" />
		<link href="assets/plugins/metismenu/css/metisMenu.min.css" rel="stylesheet" />
		<link href="assets/plugins/datatable/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
		<!-- loader-->
		<link href="assets/css/pace.min.css" rel="stylesheet" />
		<script src="assets/js/pace.min.js"></script>
		<!-- Bootstrap CSS -->
		<link href="assets/css/bootstrap.min.css" rel="stylesheet">
		<link href="assets/css/bootstrap-extended.css" rel="stylesheet">
		<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
		<link href="assets/css/app.css" rel="stylesheet">
		<link href="assets/css/icons.css" rel="stylesheet">
		<!-- Theme Style CSS -->
		<link rel="stylesheet" href="assets/css/dark-theme.css" />
		<link rel="stylesheet" href="assets/css/semi-dark.css" />
		<link rel="stylesheet" href="assets/css/header-colors.css" />
		<title>User Fund Wallet</title>
	</head>

	<body>
		<!--wrapper-->
		<div class="wrapper">

			<?php include('nav.php');
			if(isset($_GET['order'])){ $order = $_GET['order'];
			$db->query("DELETE FROM walletorder WHERE trno = '$order' "); } ?>
			<!--start page wrapper -->
			<div class="page-wrapper">
				<div class="page-content">
					<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
						<div class="breadcrumb-title pe-3">Fund Wallet</div>
						<div class="ps-3">
							<nav aria-label="breadcrumb">
								<ol class="breadcrumb mb-0 p-0">
									<li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a>
									</li>
									<li class="breadcrumb-item active" aria-current="page">Wallet Funding</li>
								</ol>
							</nav>
						</div>
					</div>					


					<div class="card">
						<div class="card-body">
							<div class="card-title"><div class="ms-auto" style="float: right;">
								<a href="javscript:;" class="btn openfunding btn-primary btn-sm">Fund Wallet</a>
							</div>
							<h5 class="mb-0">Wallet Fundings Orders</h5>

						</div>
						<hr/>

						<div class="table-responsive mt-3">
							<table id="example" class="table table-bordered table-striped table-sm">
								<thead>
									<tr>
										<th>S/N</th>
										<!-- <th>Transaction ID</th> -->
										<th>Amount</th>
										<th>Transaction Date</th>
										<th>Reference</th> 
										<th>Status</th> 
										<th>Action</th> 
										
									</tr>
								</thead>
								<tbody>
									<?php
									$i=1;
									$sql = $db->query("SELECT * FROM walletorder WHERE status=0 AND id='$uid' ORDER BY sn DESC LIMIT 200 "); 
									while($row = $sql->fetch_assoc()) { $e = $i++;
									
										?>
										<tr>
											<td><?php echo $e; ?></td>

											<!-- <td><?php echo $row['trno']; ?> </td> -->
											<td><?php echo money(abs($row['amount']),2) ?></td>
											<td><?php echo $row['date']; ?></td>
											<td><?php  echo $row['ref']; ?></td>
											<td><?php echo $pro->walletStatus($row['status']); ?></td> 
											<td><a class="btn btn-sm btn-primary" href="?order=<?= $row['trno'] ?>">Cancel</a></td>
											</tr>
										<?php } ?>
									</tbody>
								</table>
							</div>
						</div>
						</div><!--end row-->

					<div class="card">
						<div class="card-body">
							<div class="card-title">
							<h5 class="mb-0">Completed Wallet Fundings Requests</h5>

						</div>
						<hr/>

						<div class="table-responsive mt-3">
							<table id="example" class="table table-bordered table-striped table-sm">
								<thead>
									<tr>
										<th>S/N  </th>

										<th>Transaction ID</th>
										<th>Date</th>
										<th>Amount</th>
										<th>Remark</th>
										<th>Status</th> 
									
									</tr>
								</thead>
								<tbody>
									<?php
									$i=1;
									$sql = $db->query("SELECT * FROM wallet WHERE type=19 AND id='$uid' ORDER BY sn DESC LIMIT 50 "); 
									while($row = $sql->fetch_assoc()) { $e = $i++;
										$type = $row['cos']>0 ? 'Credit' : 'Debit';
										?>
										<tr>
											<td><?php echo $e; ?></td>

											<td><?php  echo $row['trno'] ?></td>
											<td><?php echo date('d/m/y', $row['ctime']); ?></td>
											<td><?php echo money(abs($row['cos']),2) ?></td>
											<td><?php echo 'Complete'; ?></td></tr>
											
										<?php } ?>
									</tbody>
								</table>
							</div>
						</div><!--end row-->

					</div>
				</div>
				<!--end page wrapper -->
				<?php include('foot.php') ?>




				<form method="post" >
					<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<h5 class="modal-title" id="exampleModalLabel">Fund Your Wallet</h5>
									<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
								</div>
								<div class="modal-body">
									<p>
										Make payment to the following bank account and provide transaction details as requested below:
									</p>
									
									
										<p><label>Amount (<?= currency() ?>)</label>
										<input type="number" name="amount" class="form-control" placeholder="Enter Amount"></p>

										<p><label>Transaction Date</label>
										<input type="date" name="date" class="form-control" placeholder="Enter Transaction Date"></p>

										<p><label>Payment Reference</label>
										<input type="text" name="ref" class="form-control" placeholder="Payment Reference/Depositor"></p>
									
								</div>
								<div class="modal-footer">
									<button type="submit" name="FundWallet" class="fund btn btn-primary">Fund Wallet</button>
								</div>
							</div>
						</div>
					</div>


				</form>
			</div>
			<!--end wrapper-->

			<!-- Bootstrap JS -->
			<script src="assets/js/bootstrap.bundle.min.js"></script>
			<!--plugins-->
			<script src="assets/js/jquery.min.js"></script>
			<script src="assets/plugins/simplebar/js/simplebar.min.js"></script>
			<script src="assets/plugins/metismenu/js/metisMenu.min.js"></script>
			<script src="assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js"></script>
			<script src="assets/plugins/vectormap/jquery-jvectormap-2.0.2.min.js"></script>
			<script src="assets/plugins/vectormap/jquery-jvectormap-world-mill-en.js"></script>
			<script src="assets/plugins/highcharts/js/highcharts.js"></script>
			<script src="assets/plugins/highcharts/js/exporting.js"></script>
			<script src="assets/plugins/highcharts/js/variable-pie.js"></script>
			<script src="assets/plugins/highcharts/js/export-data.js"></script>
			<script src="assets/plugins/highcharts/js/accessibility.js"></script>
			<script src="assets/plugins/apexcharts-bundle/js/apexcharts.min.js"></script>
			<script src="assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
			<script src="assets/plugins/datatable/js/dataTables.bootstrap5.min.js"></script>
			<script>
				$(document).ready(function() {
					$('#example').DataTable();
				} );
			</script>
			<script src="assets/js/index2.js"></script>
			<!--app JS-->
			<script src="assets/js/app.js"></script>
			<script>
				new PerfectScrollbar('.customers-list');
				new PerfectScrollbar('.store-metrics');
				new PerfectScrollbar('.product-list');
			</script>
			<script type="text/javascript">
				$(function() {

					$('.openfunding').on('click', function() {
						$('#exampleModal').modal('show')
					})
				})
			</script>
		</body>

		</html>

?>