<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="layout_middle">
  <div class="generic_layout_container layout_core_content">
		<form method="get" class="form_submit_ajax" action="<?php echo $this->escape($this->url) ?>" enctype="application/x-www-form-urlencoded">
      <?php if( $this->status == 'pending' ): ?>
        <div class="payment_process_message payment_process_message_wait text-center">
          <div class="payment_process_message_icon">
            <img src="application/modules/Payment/externals/images/hourglass.png" alt="">
          </div>
          <h4 class="payment_process_message_title"><?php echo $this->translate('Payment Pending') ?></h4>
          <p class="payment_process_message_des">
            <?php echo $this->translate('Thank you for submitting your ' .
              'payment. Your payment is currently pending - your account ' .
              'will be activated when we are notified that the payment has ' .
              'completed successfully. Please return to our login page ' .
              'when you receive an email notifying you that the payment ' .
              'has completed.') ?>
          </p>
          <p id="buttons-wrapper" class="payment_process_message_btn">
            <button type="submit"><?php echo $this->translate('Back to Home') ?></button>
          </p>   
        </div>
      <?php elseif( $this->status == 'active' ): ?>
        <div class="payment_process_message payment_process_message_success text-center">
          <div class="payment_process_message_icon">
            <img src="application/modules/Payment/externals/images/success.png" alt="">
          </div>
          <h4 class="payment_process_message_title"><?php echo $this->translate('Payment Completed') ?></h4>
          <p class="mb-4"><?php echo $this->translate('Thank you! Your payment has completed successfully.') ?></p>
          <p id="buttons-wrapper" class="payment_process_message_btn">
            <button type="submit"><?php echo $this->translate('Continue') ?></button>
          </p>
        </div>
      <?php else: //if( $this->status == 'failed' ): ?>
        <div class="payment_process_message payment_process_message_fail text-center">
          <div class="payment_process_message_icon">
            <img src="application/modules/Payment/externals/images/payment-fail.png" alt="">
          </div>
          <h4 class="payment_process_message_title"><?php echo $this->translate('Payment Failed') ?></h4>
          <p class="payment_process_message_des">
            <?php if( empty($this->error) ): ?>
              <?php echo $this->translate('Our payment processor has notified ' .
                'us that your payment could not be completed successfully. ' .
                'We suggest that you try again with another credit card ' .
                'or funding source.') ?>
            <?php else: ?>
              <?php echo $this->translate($this->error) ?>
            <?php endif; ?>
          </p>
          <p id="buttons-wrapper" class="payment_process_message_btn">
            <button type="submit"><?php echo $this->translate('Back to Home') ?></button>
          </p>     
        </div>  
      <?php endif; ?>
    </form>
  </div>
</div>