
<?php $__env->startSection('title'); ?>
    <title><?php echo e($websiteLang->where('lang_key', 'payment')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
    <meta name="description" content="lorem ipsum">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('user-content'); ?>

<style>
    .foto{
        width: 10%;
        height: 10%;
    }
</style>
    <!--===BREADCRUMB PART START====-->
    <section class="wsus__breadcrumb" style="background: url(<?php echo e(url($banner_image->image)); ?>);">
        <div class="wsus_bread_overlay">
            <div class="container">
                <div class="row">
                    <div class="col-12 text-center">
                        <h4><?php echo e($websiteLang->where('lang_key', 'payment')->first()->custom_text); ?></h4>
                        <nav style="--bs-breadcrumb-divider: '-';" aria-label="breadcrumb">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a
                                        href="<?php echo e(route('home')); ?>"><?php echo e($menus->where('id', 1)->first()->navbar); ?></a></li>
                                <li class="breadcrumb-item active" aria-current="page">
                                    <?php echo e($websiteLang->where('lang_key', 'payment')->first()->custom_text); ?></li>
                            </ol>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--===BREADCRUMB PART END====-->

    <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header bg-danger text-white">
                    <h5 class="modal-title" id="exampleModalLabel">Pagamento M-Pesa</h5>
                    <button type="button" class="btn-close bg-white border-white" class="btn-close" data-bs-dismiss="modal"
                        aria-label="Close"></button>
                </div>
                <form action="<?php echo e(route('user.mollie-payment-success', $package->id)); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="modal-body">
                    <div class="modal-body">
                        <img src="/mpesalogo.png" class="foto" width="50" height="50" class="img-thumbnail rounded-top mx-sm d-block" alt="LOGO DO MPSA">
                        <h6 class="text-center">Digite o seu número de Telefone M-Pesa</h6>
                        <div class="input-group flex-nowrap">
                            <span class="input-group-text" id="addon-wrapping">+258</span>
                            <input type="tel" name="numero" minlength="9" maxlength="9" class="form-control"
                            placeholder="84xxxxxxxx" aria-label="Username" aria-describedby="addon-wrapping" required>
                        </div>
                        <h6 >Um pedido de aprovação será enviado para o teu telefone Insira o teu pin M-Pesa para aprovar a transação.</h6>
                    </div>
                    <div class="d-grid gap-2 container mb-4">
                        <button class="btn btn-primary"  type="Submit">PAGAR AGORA</button>
                        
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
    <!--=====CHECKOUT START=====-->
    <section class="wsus__checkout mt_45 mb_45">
        <div class="container">
            <div class="row">
                <div class="col-xl-2 col-lg-3">
                    <div class="wsus__pay_method" id="sticky_sidebar">
                        <h5><?php echo e($websiteLang->where('lang_key', 'payment_method')->first()->custom_text); ?></h5>
                        <div class="d-flex align-items-start">
                            <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist"
                                aria-orientation="vertical">

                                <?php if($paymentSetting->stripe_status == 1): ?>
                                    <button class="nav-link active" id="v-pills-home-tab" data-bs-toggle="pill"
                                        data-bs-target="#v-pills-home" type="button" role="tab"
                                        aria-controls="v-pills-home"
                                        aria-selected="true"><?php echo e($websiteLang->where('lang_key', 'stripe')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($paymentSetting->paypal_status == 1): ?>
                                    <button class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill"
                                        data-bs-target="#v-pills-profile" type="button" role="tab"
                                        aria-controls="v-pills-profile"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'paypal')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($razorpay->razorpay_status == 1): ?>
                                    <button class="nav-link" id="v-pills-messages-tab" data-bs-toggle="pill"
                                        data-bs-target="#v-pills-messages" type="button" role="tab"
                                        aria-controls="v-pills-messages"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'razorpay')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($flutterwave->status == 1): ?>
                                    <button class="nav-link" id="v-pills-settings-tab" data-bs-toggle="pill"
                                        data-bs-target="#v-pills-settings" type="button" role="tab"
                                        aria-controls="v-pills-settings"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'flutterwave')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($paystack->paystack_status == 1): ?>
                                    <button class="nav-link" id="paystack-tab" data-bs-toggle="pill"
                                        data-bs-target="#paystackTab" type="button" role="tab"
                                        aria-controls="paystackTab"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'paystack')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($paystack->mollie_status == 1): ?>
                                    <button class="nav-link" id="mollie-tab" data-bs-toggle="pill"
                                        data-bs-target="#mollieTab" type="button" role="tab"
                                        aria-controls="mollieTab" aria-selected="false">Pagar com Mpsa</button>
                                <?php endif; ?>

                                <?php if($instamojo->status == 1): ?>
                                    <button class="nav-link" id="instamojo-tab" data-bs-toggle="pill"
                                        data-bs-target="#instamojoTab" type="button" role="tab"
                                        aria-controls="instamojoTab"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'instamojo')->first()->custom_text); ?></button>
                                <?php endif; ?>

                                <?php if($paymentSetting->bank_status == 1): ?>
                                    <button class="nav-link" id="v-pills-settings-tab2" data-bs-toggle="pill"
                                        data-bs-target="#v-pills-settings2" type="button" role="tab"
                                        aria-controls="v-pills-settings2"
                                        aria-selected="false"><?php echo e($websiteLang->where('lang_key', 'bank_payment')->first()->custom_text); ?></button>
                                <?php endif; ?>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xl-5 col-lg-4">
                    <div class="wsus__pay_details" id="sticky_sidebar2">
                        <h5><?php echo e($websiteLang->where('lang_key', 'payment_detail')->first()->custom_text); ?></h5>
                        <div class="tab-content" id="v-pills-tabContent">
                            <?php if($paymentSetting->stripe_status == 1): ?>
                                <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel"
                                    aria-labelledby="v-pills-home-tab">
                                    <div class="wsus__pay_card">
                                        <form action="<?php echo e(route('user.stripe.payment', $package->id)); ?>" method="POST"
                                            class="require-validation" data-cc-on-file="false"
                                            data-stripe-publishable-key="<?php echo e($stripe->stripe_key); ?>" id="payment-form">
                                            <?php echo csrf_field(); ?>

                                            <div class="row">
                                                <div class="col-xl-12">
                                                    <label><?php echo e($websiteLang->where('lang_key', 'card_number')->first()->custom_text); ?></label>
                                                    <input type="text" name="card_number" class="card-number">
                                                </div>
                                                <div class="col-xl-12">
                                                    <label><?php echo e($websiteLang->where('lang_key', 'cvc')->first()->custom_text); ?></label>
                                                    <input type="text" name="cvc" class="card-cvc">
                                                </div>
                                                <div class="col-xl-6">
                                                    <label><?php echo e($websiteLang->where('lang_key', 'exp_month')->first()->custom_text); ?></label>
                                                    <input type="text" name="month" class="card-expiry-month">
                                                </div>
                                                <div class="col-xl-6">
                                                    <label><?php echo e($websiteLang->where('lang_key', 'exp_year')->first()->custom_text); ?></label>
                                                    <input type="text" name="year" class="card-expiry-year">
                                                </div>

                                                <div class='col-xl-12'>
                                                    <div class='error d-none form-group '>
                                                        <div class='alert-danger alert '>
                                                            <?php echo e($websiteLang->where('lang_key', 'valid_card')->first()->custom_text); ?>

                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-12">
                                                    <button type="submit"
                                                        class="common_btn"><?php echo e($websiteLang->where('lang_key', 'payment')->first()->custom_text); ?></button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            <?php endif; ?>

                            <?php if($paymentSetting->paypal_status == 1): ?>
                                <div class="tab-pane fade" id="v-pills-profile" role="tabpanel"
                                    aria-labelledby="v-pills-profile-tab">
                                    <a href="<?php echo e(route('user.paypal', $package->id)); ?>"
                                        class="common_btn mt_25"><?php echo e($websiteLang->where('lang_key', 'pay_with_paypal')->first()->custom_text); ?></a>
                                </div>
                            <?php endif; ?>
                            <?php if($razorpay->razorpay_status == 1): ?>
                                <div class="tab-pane fade" id="v-pills-messages" role="tabpanel"
                                    aria-labelledby="v-pills-messages-tab">
                                    <form action="<?php echo e(route('user.razorpay-payment', $package->id)); ?>" method="POST">
                                        <?php echo csrf_field(); ?>
                                        <?php
                                            $payableAmount = round($package_price * $razorpay->currency_rate, 2);
                                        ?>
                                        <script src="https://checkout.razorpay.com/v1/checkout.js" data-key="<?php echo e($razorpay->razorpay_key); ?>"
                                            data-currency="<?php echo e($razorpay->currency_code); ?>" data-amount="<?php echo e($payableAmount * 100); ?>"
                                            data-buttontext="<?php echo e($websiteLang->where('lang_key', 'pay')->first()->custom_text); ?> <?php echo e($payableAmount); ?> <?php echo e($razorpay->currency_code); ?>"
                                            data-name="<?php echo e($razorpay->name); ?>" data-description="<?php echo e($razorpay->description); ?>"
                                            data-image="<?php echo e(asset($razorpay->image)); ?>" data-prefill.name="" data-prefill.email=""
                                            data-theme.color="<?php echo e($razorpay->theme_color); ?>"></script>
                                    </form>

                                </div>
                            <?php endif; ?>

                            <?php if($flutterwave->status == 1): ?>
                                <div class="tab-pane fade" id="v-pills-settings" role="tabpanel"
                                    aria-labelledby="v-pills-settings-tab">
                                    <a href="javascript:;" onClick="makePayment()"
                                        class="common_btn mt_25"><?php echo e($websiteLang->where('lang_key', 'pay_with_flutterwave')->first()->custom_text); ?></a>
                                </div>
                            <?php endif; ?>

                            <div class="tab-pane fade" id="paystackTab" role="tabpanel" aria-labelledby="paystack-tab">
                                <a href="javascript:;" class="common_btn mt_25"
                                    onclick="payWithPaystack()"><?php echo e($websiteLang->where('lang_key', 'pay_with_paystack')->first()->custom_text); ?></a>
                            </div>

                            <div class="tab-pane fade" id="mollieTab" role="tabpanel" aria-labelledby="mollie-tab">
                                <a data-bs-toggle="modal" data-bs-target="#exampleModal"
                                    class="common_btn mt_25"><?php echo e($websiteLang->where('lang_key', 'pay_with_mollie')->first()->custom_text); ?></a>
                                
                            </div>

                            <div class="tab-pane fade" id="instamojoTab" role="tabpanel"
                                aria-labelledby="instamojo-tab">
                                <a href="<?php echo e(route('user.pay-with-instamojo', $package->id)); ?>"
                                    class="common_btn mt_25"><?php echo e($websiteLang->where('lang_key', 'pay_with_instamojo')->first()->custom_text); ?></a>
                            </div>

                            <?php if($paymentSetting->bank_status == 1): ?>
                                <div class="tab-pane fade" id="v-pills-settings2" role="tabpanel"
                                    aria-labelledby="v-pills-settings-tab2">
                                    <p><?php echo clean(nl2br(e($stripe->bank_account))); ?></p>

                                    <form action="<?php echo e(route('user.bank-payment')); ?>" method="POST">
                                        <?php echo csrf_field(); ?>
                                        <div class="wsus__con_form_single mt_25">
                                            <textarea placeholder="<?php echo e($websiteLang->where('lang_key', 'trans_info')->first()->custom_text); ?>" name="tran_id"
                                                id="" required></textarea>
                                        </div>
                                        <input type="hidden" name="package_id" value="<?php echo e($package->id); ?>">

                                        <button type="submit"
                                            class="common_btn"><?php echo e($websiteLang->where('lang_key', 'payment')->first()->custom_text); ?></button>
                                    </form>

                                </div>
                            <?php endif; ?>

                        </div>
                    </div>
                </div>
                <div class="col-xl-5 col-lg-5">
                    <div class="wsus__package_details">
                        <h5><?php echo e($websiteLang->where('lang_key', 'package_detail')->first()->custom_text); ?></h5>
                        <div class="table-responsive main_table">
                            <table class="table">
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'package_name')->first()->custom_text); ?></td>
                                    <td width="50%"><?php echo e($package->package_name); ?></td>
                                </tr>
                                <tr>
                                    <td width="50%"><?php echo e($websiteLang->where('lang_key', 'price')->first()->custom_text); ?>

                                    </td>
                                    <td width="50%"><?php echo e($currency->currency_icon); ?><?php echo e($package->price); ?></td>
                                </tr>

                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'expired_date')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_days == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e(date('Y-m-d', strtotime($package->number_of_days . ' days'))); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'property')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_property == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_property); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'aminity')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_aminities == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_aminities); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'nearest_place')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_nearest_place == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_nearest_place); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%"><?php echo e($websiteLang->where('lang_key', 'photo')->first()->custom_text); ?>

                                    </td>
                                    <td width="50%">
                                        <?php if($package->number_of_photo == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_photo); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>

                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'featured_property')->first()->custom_text); ?>

                                    </td>
                                    <td width="50%">
                                        <?php if($package->is_featured == 1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'available')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($websiteLang->where('lang_key', 'not_available')->first()->custom_text); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'featured_property')->first()->custom_text); ?>

                                    </td>
                                    <td width="50%">
                                        <?php if($package->number_of_feature_property == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_feature_property); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>

                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'top_property')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->is_top == 1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'available')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($websiteLang->where('lang_key', 'not_available')->first()->custom_text); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'top_property')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_top_property == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_top_property); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'urgent_property')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->is_urgent == 1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'available')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($websiteLang->where('lang_key', 'not_available')->first()->custom_text); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="50%">
                                        <?php echo e($websiteLang->where('lang_key', 'urgent_property')->first()->custom_text); ?></td>
                                    <td width="50%">
                                        <?php if($package->number_of_urgent_property == -1): ?>
                                            <?php echo e($websiteLang->where('lang_key', 'unlimited')->first()->custom_text); ?>

                                        <?php else: ?>
                                            <?php echo e($package->number_of_urgent_property); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>

                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--=====CHECKOUT END=====-->

    <script src="https://js.paystack.co/v1/inline.js"></script>
    <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
    <script src="https://checkout.flutterwave.com/v3.js"></script>

    <script>
        // stripe
        $(function() {
            var $form = $(".require-validation");
            $('form.require-validation').bind('submit', function(e) {
                var $form = $(".require-validation"),
                    inputSelector = ['input[type=email]', 'input[type=password]',
                        'input[type=text]', 'input[type=file]',
                        'textarea'
                    ].join(', '),
                    $inputs = $form.find('.required').find(inputSelector),
                    $errorMessage = $form.find('div.error'),
                    valid = true;
                $errorMessage.addClass('d-none');

                $('.has-error').removeClass('has-error');
                $inputs.each(function(i, el) {
                    var $input = $(el);
                    if ($input.val() === '') {
                        $input.parent().addClass('has-error');
                        $errorMessage.removeClass('d-none');
                        e.preventDefault();
                    }
                });

                if (!$form.data('cc-on-file')) {
                    e.preventDefault();
                    Stripe.setPublishableKey($form.data('stripe-publishable-key'));
                    Stripe.createToken({
                        number: $('.card-number').val(),
                        cvc: $('.card-cvc').val(),
                        exp_month: $('.card-expiry-month').val(),
                        exp_year: $('.card-expiry-year').val()
                    }, stripeResponseHandler);
                }

            });

            function stripeResponseHandler(status, response) {
                if (response.error) {
                    $('.error')
                        .removeClass('d-none')
                        .find('.alert')
                        .text(response.error.message);
                } else {
                    var token = response['id'];
                    $form.find('input[type=text]').empty();
                    $form.append("<input type='hidden' name='stripeToken' value='" + token + "'/>");
                    $form.get(0).submit();
                }
            }
        });
    </script>

    <?php
        $payable_amount = $package_price * $flutterwave->currency_rate;
        $payable_amount = round($payable_amount, 2);
    ?>

    <?php
        $public_key = $paystack->paystack_public_key;
        $currency = $paystack->paystack_currency_code;
        $currency = strtoupper($currency);

        $ngn_amount = $package_price * $paystack->paystack_currency_rate;
        $ngn_amount = $ngn_amount * 100;
        $ngn_amount = round($ngn_amount);
    ?>

    <script>
        function makePayment() {
            FlutterwaveCheckout({
                public_key: "<?php echo e($flutterwave->public_key); ?>",
                tx_ref: "RX1",
                amount: <?php echo e($payable_amount); ?>,
                currency: "<?php echo e($flutterwave->currency_code); ?>",
                country: "<?php echo e($flutterwave->country_code); ?>",
                payment_options: " ",
                customer: {
                    email: "<?php echo e($user->email); ?>",
                    phone_number: "<?php echo e($user->phone); ?>",
                    name: "<?php echo e($user->name); ?>",
                },
                callback: function(data) {
                    var tnx_id = data.transaction_id;
                    var _token = "<?php echo e(csrf_token()); ?>";
                    var package_id = '<?php echo e($package->id); ?>';
                    $.ajax({
                        type: 'post',
                        data: {
                            tnx_id,
                            _token,
                            package_id
                        },
                        url: "<?php echo e(url('user/flutterwave-payment/')); ?>",
                        success: function(response) {
                            if (response.status == 'success') {
                                toastr.success(response.message);
                                window.location.href = "<?php echo e(route('user.my-order')); ?>";
                            } else {
                                toastr.error(response.message);
                                window.location.reload();

                            }
                        },
                        error: function(err) {}
                    });

                },
                customizations: {
                    title: "<?php echo e($flutterwave->title); ?>",
                    logo: "<?php echo e(asset($flutterwave->logo)); ?>",
                },
            });
        }


        function payWithPaystack() {
            var package_id = '<?php echo e($package->id); ?>';
            var handler = PaystackPop.setup({
                key: '<?php echo e($public_key); ?>',
                email: '<?php echo e($user->email); ?>',
                amount: '<?php echo e($ngn_amount); ?>',
                currency: "<?php echo e($currency); ?>",
                callback: function(response) {
                    let reference = response.reference;
                    let tnx_id = response.transaction;
                    let _token = "<?php echo e(csrf_token()); ?>";
                    $.ajax({
                        type: "post",
                        data: {
                            reference,
                            tnx_id,
                            _token,
                            package_id
                        },
                        url: "<?php echo e(route('user.paystack-payment')); ?>",
                        success: function(response) {
                            if (response.status == 'success') {
                                window.location.href = "<?php echo e(route('user.my-order')); ?>";
                            } else {
                                window.location.reload();
                            }
                        }
                    });
                },
                onClose: function() {
                    alert('window closed');
                }
            });
            handler.openIframe();
        }
    </script>

    <script>
        $(document).ready(function() {
            $("#btnFetch").click(function() {
                $(this).prop("disabled", true);
                $(this).html(
                    `<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Processando Opagamento...`
                );
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\AR-8u191-IT\well-known (1)\resources\views/user/profile/payment.blade.php ENDPATH**/ ?>