<?php $this->load->view("includes/head"); ?>

<body class="wide">

        <!-- Header -->
        <?php $this->load->view("includes/header"); ?>
        <!-- END: Header -->

        <!--Start breadcrumb Style1-->
        <section class="breadcrumb-style1">
            <div class="breadcrumb-style1-bg" style="background-image: url(<?php echo base_url() . "public/"; ?>assets/images/breadcrumb/register.jpg);">
                <div class="breadcrumb-style1-bg__overlay"></div>
            </div>
            <div class="container">
                <div class="inner-content">
                    <div class="title">
                        <h2><?php echo $pageName; ?></h2>
                    </div>
                    <div class="breadcrumb-menu">
                        <ul class="clearfix">
                            <li><a href="<?php echo base_url(); ?>">Home</a></li>
                            <li><span class="icon-next"></span></li>
                            <li><a href="<?php echo base_url()."registration"; ?>"><?php echo $parentPageName; ?></a></li>
                            <li><span class="icon-next"></span></li>
                            <li class="active"><?php echo $pageName; ?></li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>

        <div class="container p-t-40 p-b-40">
            <h3>Payment Failed</h3>
            <div class="seperator right"></div>
            <div class="col-md-8" style="border-right: 0px solid #ccc;">
                <div class="main-contact-form__inner">
                    <?php echo $message; ?>
                </div>
            </div>
        </div>

        <!-- Footer -->
        <?php $this->load->view("includes/footer"); ?>
        <!-- End: Footer -->

    <!-- Retry Payment Modal -->
    <div class="modal" id="retryPaymentModal" tabindex="-1" role="dialog" aria-labelledby="retryPaymentModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content shadow">
        <div class="modal-header">
            <h5 class="modal-title text-danger" id="retryPaymentModalLabel">Payment Failed</h5>
            <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
            </button>
        </div>
        <div class="modal-body">
            We couldn't process your payment at the moment. Would you like to try again?
        </div>
        <div class="modal-footer">
            <a href="<?php echo base_url('registration-payment'); ?>" class="btn btn-primary">Try Again</a>
            <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
        </div>
        </div>
    </div>
    </div>

    <?php $this->load->view("includes/scripts"); ?>

    <?php if (!empty($show_payment_retry_modal)) : ?>
    <script>
    $(document).ready(function () {
        $('#retryPaymentModal').modal('show');
    });
    </script>
    <?php endif; ?>
</body>

</html>