<?php 
session_start();
$alert_msg = '';
if($_SESSION['goodlogin'] != true){
  header('location:../index.php');}
  else{
  require('connect.php');
  $unique_admin_id = $_SESSION['unique_admin_id'];

  if(isset($_GET['unique'])){		
	$_SESSION['myidunique'] = $_GET['unique'];
   }
   $client_id = $_SESSION['myidunique'];
   
   
   $getData = "SELECT * FROM confirm_pay WHERE invest_unique = '$client_id'";
   $retrieveData = mysqli_query($cxn, $getData);
   if($retrieveData){
   $sendData = mysqli_fetch_array($retrieveData);
   }
  }
  
  ?>
<!DOCTYPE html>
<html lang="en">

<head>
<title>DASHBOARD - CONTROL PANEL</title>
	<link rel="shortcut icon" href="images/bicon.png">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script>
		addEventListener("load", function () {
			setTimeout(hideURLbar, 0);
		}, false);

		function hideURLbar() {
			window.scrollTo(0, 1);
		}
	</script>
	<!-- css files -->
	<link href="css/bootstrap.css" rel='stylesheet' type='text/css' /><!-- bootstrap css -->
	<link href="css/istyle.css" rel='stylesheet' type='text/css' /><!-- custom css -->
	<link href="css/style.css" rel='stylesheet' type='text/css' /><!-- custom css -->
	<link href="css/font-awesome.min.css" rel="stylesheet"><!-- fontawesome css -->
	<!-- //css files -->

	<!-- google fonts -->
	<link
		href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&amp;subset=devanagari,latin-ext"
		rel="stylesheet">

	<!-- //google fonts -->

<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/popper.min.js"></script>
<style>
	.mytab-new {
		display: flex;
		width: 100%;
		background:lightgray;
	}
	.mytab-new > div{
		padding:10px;
		width: 35%;
		display: flex;
		flex-direction: column;
	}
	.mytab-new > div:nth-child(3){
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.mytab-new > div > img{
		display: flex;
		width: 100%;
	}
	@media all and (max-width : 600px) {
	.mytab-new {
		display: flex;
		flex-direction: column;
		width: 100%;
		background:lightgray;
	}
	.mytab-new > div{
		padding:10px;
		width: 100%;
		display: flex;
		flex-direction: column;
	}
}


 /* @media(max-width:600){
	.mytab-new {
		display: flex;
	}
	.mytab-new > tr > td {
		width: 100%;
	}
 } */
</style>
</head>

<body>
	<!-- //header -->
	<header>
		<div class="container">
			<!-- nav -->
			<nav class="pt-3">
				<div id="logo">
					<h1> <a href="index.php" class="text-primary">CONTROL PANEL</a></h1>
				</div>
				<label for="drop" class="toggle">Menu</label>
				<input type="checkbox" id="drop" />
				<ul class="menu mt-md-2 ml-auto">
					<li class="mr-lg-4 mr-2"><a href="index.php" class="text-primary">Dashboard</a></li>
					<li class="mr-lg-4 mr-2"><a href="view_account.php" class="text-primary">View Account</a></li>
					<li class="mr-lg-4 mr-2"><a href="view_messages.php" class="text-primary">View Messages</a></li>
					<li class="mr-lg-4 mr-2"><a href="../logout.php" class="text-primary">Logout</a></li>
				</ul>
			</nav>
			<!-- //nav -->
		</div>
	</header>
	<!-- //header -->
	<!-- inner banner -->
	<div class="inner-banner2" id="home">
		<div class="container">
		</div>
	</div>
	<!-- inner banner -->

	<!-- TRACKING ORDER -->
	<section class="py-5" id="">
		<div class="container py-md-3">
			<h4 class="heading text-center text-white"> <span class="fa fa-users"></span> CONFIRM DATA </h4>
			<div class="row">
			
				<div class="col-lg-12 acct-wrapper">
				<div class="table-responsive">		
					<div class="mytab-new">
						<div>
								<img src="../dashboard/upload_images/<?php echo $sendData['confirm_image']; ?>">
								
						</div>
						<div>
						<p class="p-2"><h6>Client Address:</h6><span class="text-dark"><strong><?php echo $sendData['confirm_address']; ?></strong></p>
						<p class="p-2"><h6>Client Email:</h6><strong><?php echo $sendData['confirm_email']; ?></strong></p>
						<p class="p-2"><h6>Client Amount:</h6><strong><?php echo "$".number_format($sendData['confirm_amount'],2); ?></strong></p>
						<p class="p-2"><h6>Description:</h6><p><strong><?php echo $sendData['confirm_comment']; ?></strong></p></p>
							</div>
							<div>
						</div>
							</div>

				</div>		
				</div>
			</div>
		</div>
		</div>
	</section>

</body>

</html>