<?php $__env->startSection('title'); ?> <?php echo e(lang('Book Secure','Book Secure')); ?><?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> 

<style>
	label {
		display: inline!important
	}
</style>

<section id="main">
<header data-animatedtop="" data-animatedbottom="" data-animatedx="" class="partial-banner " data-timeweather="/weather.htm"> </header>
  <div class="rooms-detail">
    <div id="container">
    <div style="margin-left: 103.5px; margin-right: 0px;" class="fixed-left-sidebar-layout site-width">
      <nav class="partial-left_navigation sidebar">
        <?php echo $__env->make('frontend.include.left', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
      </nav>
      <article style="min-height: 793px" class="content">
        <header>
          <h1 class="content-title multiline"> <span class="subhead"><?php echo e($site_option->company); ?></span> <label>
                        VNPAY RESPONSE

                    </label> </h1>
        </header>
        <section>
          <div class="richtext"> 
			<div class="container">
            
				<p><?php if(@$return): ?>Your booking has been submitted successfully. We will get back to you within 12- 24 hours! <?php else: ?> Order not found <?php endif; ?> </p>
            <div class="table-responsive">
                <div class="form-group">
                    <label >Code orders:</label>

                    <label><?php echo e(@$return->code); ?></label>
                </div>    
                <div class="form-group">

                    <label >Price:</label>
					<?php $getPrice = $_GET['vnp_Amount'];
						  $price = $getPrice /100;	
						  $ePrice = Helper::adddotstring($price);
					?>
                    <label><?php echo e(Helper::adddotstring(@$return->price/100)); ?><span class="fb-price-currency">₫</span></label>
                </div>  
                
                
                <div class="form-group">
                    <label >Transaction code at VNPAY:</label>
                    <label><?php if(@$return->bank_code == 0): ?> NULL <?php else: ?> <?php echo e(@$return->bank_code); ?> <?php endif; ?></label>
                </div> 
                <div class="form-group">
                    <label >Bank code:</label>
                    <label><?php echo e(@$return->bank); ?></label>
                </div> 
                <div class="form-group">
                    <label >Payment time:</label>
					
                    <label><?php if(@$return): ?><?php echo e(date('d/m/Y H:i:s',@$return->time)); ?><?php endif; ?></label>
                </div> 
				 <div class="form-group">
                    <label >Status:</label>
                    <label> <?php
					  if(@$return){
						if ($secureHash == $vnp_SecureHash) {
                            if ($_GET['vnp_ResponseCode'] == '00') {
                                echo "Successful transaction";
                            } else {
                                echo "Transaction failed (cancel transaction)";
                            }
                        } else {
                            echo "Invalid signature";
							
                        }  
					  }else {
						  echo "Order not found";
					  }
                        
                        ?></label>
                </div> 
            </div>
          
        </div>
		   </div>
        </section>
      </article>
    </div>
  </div>
	</div>
  <div style="position: fixed; display: none;" class="back-to-top"> <span class="icon"></span> <a href="#" class="upcase">BACK TO TOP</a> </div>
</section>
<style>
.fixed-left-sidebar-layout .content {
    overflow: hidden;
    position: relative;
    left: 180px;
    top: 0;
}
	.fixed-left-sidebar-layout .content>header, .fixed-left-sidebar-layout .content>section {
    width: 1074px;
    padding-left: 46px;
    padding-right: 46px;
}
.fixed-left-sidebar-layout .content>section {
    padding: 0 35px;
    margin: 30px 0 40px;
    width: 956px;
}
	.fixed-left-sidebar-layout .content>header {
    padding: 30px 35px 0;
    margin: 0 0 30px;
    width: 956px;
}
</style>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>