
<?php
  // transaction successfully
  if ($transaction->status) {
?>
<section class="checkout-result">   
  <div class="container-fluid">
    <div class="row justify-content-md-center">
      <div class="col-md-6">
        <div class="card">
          <div class="card-body">
            <div class="checkout-header text-center">
              <div class="title">
                <strong><i class="fa fa-check-circle"></i> <?php echo lang("thank_you"); ?></strong>
              </div>
              <span class="text-muted"><?php echo lang("your_order_has_been_placed_successfully"); ?></span>
            </div>
          	<div class="detail">
	            <p><?php echo lang("your_order_has_been_processed_here_are_the_details_of_this_transaction_for_your_reference"); ?></p>
	            <ul class="text-left fs-12 p-l-40">
                <li><?php echo lang("order__is"); ?> <strong><?php echo strip_tags($order_detail); ?></strong></li>
	            	<li><?php echo lang("Transaction_ID"); ?>: <strong><?php echo (!empty($transaction) && $transaction->transaction_id == 'empty') ? lang($transaction->transaction_id)." ".lang("transaction_id_was_sent_to_your_email") : strip_tags($transaction->transaction_id); ?></strong></li>
	            	<li><?php echo lang("Amount_paid_includes_fee"); ?>: <strong><?php echo (!empty($transaction)) ? strip_tags($transaction->amount) : ''?> <?php echo get_option("currency_code", "USD"); ?></strong> </li>
                <li><?php echo lang("manage_your_orders"); ?>: <a href="<?php echo cn('client'); ?>"><?php echo lang('Click_here'); ?></a> </li>
	            </ul>
              <p><?php echo lang("we_appreciate_you_most_recent_purchase_and_hope_you_enjoyed_your_purchase_an_email_receipt_including_the_details_about_your_order_has_been_sent_to_your_email_address"); ?></p> 
              <div class="text-center">
                <a href="<?php echo cn(); ?>" class="btn btn-pill btn-submit btn-gradient btn-min-width mr-1 mb-1">
                  <?php echo lang("continute"); ?>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<?php
  }else{
?>
<section class="checkout-result">   
  <div class="container-fluid">
    <div class="row justify-content-md-center">
      <div class="col-md-6">
        <div class="card">
          <div class="card-body">
            <div class="checkout-header text-center">
              <div class="title">
                <strong><i class="fa fa-check-circle"></i> <?php echo lang("thank_you"); ?></strong>
              </div>
            </div>
            <div class="detail">
              <p><?php echo lang("your_order_is_processing_here_are_the_details_of_this_transaction_for_your_reference"); ?></p>
              <ul class="text-left fs-12 p-l-40">
                <li><?php echo lang("order__is"); ?> <strong><?php echo strip_tags($order_detail); ?></strong></li>
                <li><?php echo lang("Transaction_ID"); ?>: <strong><?php echo (!empty($transaction) && $transaction->transaction_id == 'empty') ? lang($transaction->transaction_id)." ".lang("transaction_id_was_sent_to_your_email") : strip_tags($transaction->transaction_id); ?></strong></li>
                <li><?php echo lang("Amount_paid_includes_fee"); ?>: <strong><?php echo (!empty($transaction)) ? strip_tags($transaction->amount) : ''?> <?php echo get_option("currency_code", "USD"); ?></strong> </li>
                <li><?php echo lang("transaction_status"); ?>: <span class="btn btn-info btn-sm"><?php echo lang('Pending'); ?></span> </li>
                <li><?php echo lang("manage_your_orders"); ?>: <a href="<?php echo cn('client'); ?>"><?php echo lang('Click_here'); ?></a> </li>
              </ul>
              <p><?php echo lang("we_appreciate_you_most_recent_purchase_and_hope_you_enjoyed_your_purchase_an_email_receipt_including_the_details_about_your_order_has_been_sent_to_your_email_address"); ?></p> 
              <div class="text-center">
                <a href="<?php echo cn(); ?>" class="btn btn-pill btn-submit btn-gradient btn-min-width mr-1 mb-1">
                  <?php echo lang("continute"); ?>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<?php }; ?>