
<?php 
if(!isset($type)){
	
	redirect(base_url());
}


if(!empty($type)){ 
		if($type == 'success'){
?>
<div class="fd_success_wrapper">
	<div class="container">
		<div class="row justify-content-center">
			<div class="col-md-10">
				<div class="success_block">
					<div class="success_icon">
						<img src="<?php echo base_url(); ?>themeassets/images/success.png" alt="success" />
					</div>
					<div class="success_heading_block">
						<h1>your order successful !</h1>
					</div>
					<div class="success_message">
							<?php if(!empty($uname) && (!empty($order_id))){ ?>
						<h3>hello <?php  echo $uname; ?>,</h3>
						<p>Your Order Number <span class="order_id"> <?php echo $order_id; ?> </span> has successful! you'll find all the details about your order below, and we'll send you a shipping confirmation email as soon as your order ships, in the meantime.</p>
					<?php }else if(!empty($message)){ ?>
						<p><?php  echo $message; ?></p>
					<?php } ?>
					</div>
					<div class="success_bottom_content">
						<h3>Thank you for shopping with us</h3>
					</div>
					<div class="success_btn_block">
						<a href="<?php echo base_url(); ?>" class="success_btn">home</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php } 

	if($type == 'failed'){
?>


<div class="fd_success_wrapper">
	<div class="container">
		<div class="row justify-content-center">
			<div class="col-md-10">
				<div class="success_block">
					<div class="success_icon">
						<img src="<?php echo base_url(); ?>themeassets/images/unsuccess.png" alt="success" />
					</div>
					<div class="success_heading_block">
						<h1>your order was not successful !</h1>
					</div>
					<div class="success_message">
						<?php if(!empty($uname)){ ?><h3>hello <?php echo $uname; ?>,</h3><?php } ?>
						<?php if(!empty($message)){ ?>
						<p><?php echo $message; ?></p>
						<?php } ?>
					</div>
					<div class="success_bottom_content">
						<h3>Thank you...</h3>
					</div>
					<div class="success_btn_block">
						<a href="<?php echo base_url(); ?>" class="success_btn">home</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
	<?php } 
	  }
	?>