<?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" action="<?php echo $this->escape($this->url(array("module"=> "payment", "controller" => "settings",'action' => 'verification', 'user_id' => $this->user_id), 'default', true)) ?>" 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 your payment. We'll review it promptly. You'll receive a notification once your payment is approved, and your user profile is verified.") ?>
          </p>
          <p id="buttons-wrapper" class="payment_process_message_btn">
            <button type="submit"><?php echo $this->translate('Visit Verification Settings') ?></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('Visit Verification Settings') ?></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('Visit Verification Settings') ?></button>
          </p>     
        </div>              
      <?php endif; ?>
    </form>
  </div>
</div>
