<?php 
require('header.php');
$getWCdata = $special->getWCdata($_SESSION['unique_admin_id']);
?>

	<!-- TRACKING ORDER -->
	<section class="py-5" id="">
		<div class="container py-md-3">
			<h4 class="heading text-center text-white mb-sm-5 my-4"><span class="fa fa-gear"></span> WELCOME TO CONTROL PANEL</h4>
			<div class="row">
				<div class="col-lg-12">
					<div class="dash-container">
						<a href="view_account.php"><span class="fa fa-btc"></span><br> VIEW ACCOUNTS</a>
						<a href="view_messages.php"><span class="fa fa-comment"></span><br>VIEW TICKETS</a>
						<a href="trade_signals.php"><span class="fa fa-bar-chart"></span><br>TRADE SIGNALS</a>
						<a href="password.php"><span class="fa fa-lock"></span><br>CHANGE PASSWORD</a>
						<a href="logout.php"><span class="fa fa-sign-out"></span><br> LOGOUT</a>
					</div>
					<div class="card bg-white rounded-0">
					<div class="card-header">
						<h5>Wallet Connect Settings</h5>
					</div>
					<div class="row">
						<div class="col-md-12">
					<div class="card-body">
						<hr>
					<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>" method="POST" class="p-0 m-0" enctype="multipart/form-data"> 
					<div class="form-group">
						<label class="text-dark" for="">Required Amount to Connect:</label>
							<input type="text" class="form-control" value="<?php echo $getWCdata['phrase_require_amount']; ?>" name="phrase_require_amount" required>							
					</div>
					<div class="form-group">
						<label class="text-dark" for="">Daily Profit:</label>
							<input type="text" class="form-control" value="<?php echo $getWCdata['phrase_total_profit']; ?>"  name="phrase_total_profit" required>							
					</div>
					<input type="hidden" class="form-control" value="<?php echo $_SESSION['unique_admin_id']; ?>"  name="email" required>							
						<button type="submit" name="update_connect_info" value="true" class="btn btn-warning">Update Info</button>
					</form>
				</div>
						</div>
					</div>
					</div>
					<?php 
						foreach($special->get_wallets() as $wallets){
					?>
					<div class="card bg-white rounded-0 mt-3">
					<div class="card-header">
						<h5><?php echo $wallets['wallet_name']; ?> Wallet</h5>
					</div>
					<div class="row">
						<div class="col-md-12">
					<div class="card-body">
						<hr>
					<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>" method="POST" class="p-0 m-0" enctype="multipart/form-data"> 
					<div class="form-group">
						<label class="text-dark" for=""><?php echo $wallets['wallet_symbol']; ?> wallet Address:</label>
							<input type="text" class="form-control" value="<?php echo $wallets['wallet_address']; ?>" placeholder="Enter <?php echo $wallets['wallet_symbol']; ?> Wallet ID" name="wallet_address" id="" required>							
					</div>
					<div class="form-group">
						<label class="text-dark" for=""><?php echo $wallets['wallet_symbol']; ?> Charge:</label>
							<input type="text" class="form-control" value="<?php echo $wallets['charge']; ?>" placeholder="Enter <?php echo $wallets['wallet_symbol']; ?> Charge" name="charge" required>							
					</div>
					<div class="form-group">
						<label class="text-dark" for="">Charge Type:</label>
							<select class="form-control" name="charge_type">
								<option value="Normal" <?php echo ($wallets['charge_type']=='Normal')?'selected':''; ?>>Normal</option>	
								<option value="Percentage" <?php echo ($wallets['charge_type']=='Percentage')?'selected':''; ?>>Percentage</option>	
							</select> 						
					</div>
					<div class="form-group">
						<label class="text-dark" for="">Minimum Deposit:</label>
							<input type="text" class="form-control" value="<?php echo $wallets['minimum_deposit']; ?>" placeholder="" name="minimum_deposit" required>							
					</div>
					<div class="form-group">
						<label class="text-dark" for="">Maximum Deposit:</label>
							<input type="text" class="form-control" value="<?php echo $wallets['maximum_deposit']; ?>" placeholder="" name="maximum_deposit" required>							
					</div>
						<button type="submit" name="update_wallet" value="<?php echo $wallets['wallet_symbol']; ?>" class="btn btn-warning">Update <?php echo $wallets['wallet_symbol']; ?>-Wallet ID</button>
					</form>
				</div>
						</div>
					</div>
					</div>
					<?php } ?>
					<!-- <div class="row">
						<div class="col-md-12">
					<div class="card-body">
					<form method="POST" action="#">
						<div class="form-group">
						<label class="text-dark" for="">Transfer Pin:</label>
							<div class="input-group">
								<input type="text" name="w_transferPin" value="<?php //echo $w_transferPin ?>" class="form-control" id="" readonly><button type="submit" value="true" name="gen_w_transferPin" class="btn btn-primary">Generate</button>
							</div></div>
							</form>
							</div>
						<hr>
						</div>
					</div> -->

			</div>
		</div>
	</section>
</body>
</html>