<?php echo $__env->make('layout.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<style>
    .payment-model {
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        max-width: 500px;
        margin: auto;
    }

    .amount-title {
        text-align: center;
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .payment-info {
        padding: 15px 0;
        text-align: center;
        font-size: 1.1em;
        color: #555;
    }

    .upi-info,
    .qr-info,
    .bank-info {
        margin-bottom: 20px;
    }

    .btn-copy {
        background-color: #007bff;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .btn-copy:hover {
        background-color: #0056b3;
    }

    .upi-payment-step {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    #ref_no {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .enter-ref-warn-box {
        text-align: center;
    }

    .enter-ref-warn {
        color: #ff0000;
        margin-bottom: 15px;
    }

    .btn.sub {
        background-color: #28a745;
        color: white;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }

    .btn.sub:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }
</style>


<div class="payment_container">
    <form onsubmit="disable()" method="post" action="<?php echo e(url('/user/checkout')); ?>">
        <div class="setp" style="display: block">
            <div class="navbar navbar-default py-0" style="margin-bottom: 0; position: relative">
                <h4 class="text-center tit w-100 f18">Payment Information</h4>
                <span id="order_time">
                    <div id="clockdiv" class="counter d-flex align-items-center justify-content-between gap-1">
                        <div>
                            <div class="count f18 py-1 fw-dark fw-bolder minutes d-flex">
                                <div class="bg1 rounded-2 f14 fw500 ini text-white bg-transparent"></div>
                                <div class="bg1 rounded-2 f14 fw500 las text-white bg-transparent"></div>
                            </div>
                        </div>
                        <div>:</div>
                        <div>
                            <div class="count f18 py-1 fw-dark fw-bolder seconds d-flex">
                                <div class="bg1 rounded-2 f14 fw500 ini text-white bg-transparent"></div>
                                <div class="bg1 rounded-2 f14 fw500 las text-white bg-transparent"></div>
                            </div>
                        </div>
                    </div>
                </span>
            </div>

            <div class="container-fluid highlight">
                <div style="margin: 0 auto; max-width: 520px">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="amount" value="<?php echo e(Session::get('amount')); ?>">
                    <input type="hidden" name="payment_type" value="<?php echo e(Session::get('payment_type')); ?>">
                    <div class="payment-model">
                        <p data-bs-toggle="modal" data-bs-target="#modalId" class="fw600 pointer" id="teach">
                            <span>?</span> How to pay?
                        </p>
                        <h3 class="amount-title">
                            Payment Amount
                            <br />
                            <span>₹&nbsp;<?php echo e(Session::get('amount')); ?></span>
                        </h3>

                        <div class="payment-info">
                            <?php if($upi->type === 'upi'): ?>
                                <div class="upi-info">
                                    <div>
                                        Pay to UPI ID: <br />
                                        <span style="color: #ff0000" id="upi_id"><?php echo e($upi->upi_id); ?></span>
                                    </div>
                                    <div class="btn-copy btn text-decoration-none mx-5"
                                        onclick="return toastShow('UPI ID Copied!')"
                                        data-clipboard-text="<?php echo e($upi->upi_id); ?>">
                                        Copy UPI ID
                                    </div>
                                </div>
                            <?php elseif($upi->type === 'qr'): ?>
                                <div class="qr-info text-center">
                                    <p>Scan the QR Code to Pay:</p>
                                    <?php if(isset($upi->qr)): ?>
                                        <div class="mb-3">
                                            <img src="<?php echo e(asset('assets/img/' . $upi->qr)); ?>" width="150"
                                                height="150">
                                        </div>
                                    <?php endif; ?>
                                </div>
                            <?php elseif($upi->type === 'bank'): ?>
                                <div class="bank-info">
                                    <div>Acc. Number: <span id="bank_account"><?php echo e($upi->account_number); ?></span>
                                    </div>
                                    <div>IFSC: <span id="ifsc_code"><?php echo e($upi->ifsc); ?></span></div>
                                </div>
                            <?php endif; ?>
                        </div>

                        <div class="upi-payment-step">
                            <span style="min-width: 52px; font-weight: 800; color: #333" class="f14">STEP 1:</span>
                            <div style="margin-left: 10px" class="f14">
                                Open online banking or wallet, transfer to the
                                <?php echo e($upi->type === 'upi' ? 'UPI account' : ($upi->type === 'qr' ? 'via QR code' : 'bank account')); ?>.
                            </div>
                        </div>

                        <div class="upi-payment-step">
                            <span style="min-width: 52px" class="f14">STEP 2:</span>
                            <input type="number" minlength="12" maxlength="12" name="ref_no" id="ref_no"
                                placeholder="ENTER REF NO.:3009xxxxxxxx" oninput="check_ref_no()"
                                onkeyup="check_ref_no()" />
                        </div>

                        <div class="enter-ref-warn-box">
                            <div class="enter-ref-warn f14" id="ref_no_error">
                                You must fill in the correct Ref No., then click the button below to submit, and wait
                                for it to arrive!
                            </div>
                            <button type="button" id="submit_btn" class="btn sub" disabled style="width: 200px">
                                <div data-bs-toggle="modal" data-bs-target="#modalId2" class="btns"
                                    style="margin-top: 0; margin-bottom: 20px">
                                    Confirm REF NO.
                                </div>
                            </button>
                        </div>
                    </div>


                    <div class="box">
                        <div class="text-left">
                            <p class="level-2" style="margin-bottom: 0; color: #333">
                                Ref No. Example
                            </p>
                            <p class="level-2 red">Click on the picture to view details</p>
                            <div class="img-row">
                                <img class="tablinks" onclick="openCity(event, 'img1')"
                                    src="<?php echo e(asset('assets/img/small1.png')); ?>" />
                                <img class="tablinks" onclick="openCity(event, 'img2')"
                                    src="<?php echo e(asset('assets/img/small2.png')); ?>" />
                            </div>
                            <div class="img-row">
                                <img class="tablinks" onclick="openCity(event, 'img3')"
                                    src="<?php echo e(asset('assets/img/small3.png')); ?>" />
                                <img class="tablinks" onclick="openCity(event, 'img4')"
                                    src="<?php echo e(asset('assets/img/small4.png')); ?>" />
                            </div>
                            <div class="img-row">
                                <img class="tablinks" onclick="openCity(event, 'img5')"
                                    src="<?php echo e(asset('assets/img/small5.png')); ?>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- IMAGE MODAL -->
        <div class="tabcontent" id="img1" style="display: none">
            <img src="<?php echo e(asset('assets/img/example1.png')); ?>" />
            <div onclick="hideImages()" id="1" class="closing bg-transparent border-0">
                <i class="bi bi-x-circle glyphicon glyphicon-remove text-white"></i>
            </div>
        </div>
        <div class="tabcontent" id="img2" style="display: none">
            <img src="<?php echo e(asset('assets/img/example2.png')); ?>" />
            <div id="2" onclick="hideImages()" class="closing bg-transparent border-0">
                <i class="bi bi-x-circle glyphicon glyphicon-remove text-white"></i>
            </div>
        </div>
        <div class="tabcontent" id="img3" style="display: none">
            <img src="<?php echo e(asset('assets/img/example3.png')); ?>" />
            <div id="3" onclick="hideImages()" class="closing bg-transparent border-0">
                <i class="bi bi-x-circle glyphicon glyphicon-remove text-white"></i>
            </div>
        </div>
        <div class="tabcontent" id="img4" style="display: none">
            <img src="<?php echo e(asset('assets/img/example4.png')); ?>" />
            <div id="4" onclick="hideImages()" class="closing bg-transparent border-0">
                <i class="bi bi-x-circle glyphicon glyphicon-remove text-white"></i>
            </div>
        </div>
        <div class="tabcontent" id="img5" style="display: none">
            <img src="<?php echo e(asset('assets/img/example5.png')); ?>" />
            <div id="5" onclick="hideImages()" class="closing bg-transparent border-0">
                <i class="bi bi-x-circle glyphicon glyphicon-remove text-white"></i>
            </div>
        </div>
        <!-- IMAGE MODAL -->

        <!-- Modal -->
        <div class="modal fade" id="modalId" tabindex="-1" role="dialog" aria-labelledby="modalTitleId"
            aria-hidden="true">
            <div class="modal-dialog" role="document" style="height: auto !important">
                <div class="modal-content">
                    <div class="modal-body">
                        <div class="d-flex justify-content-end">
                            <button type="button" class="btn-close f10 text-white-50" data-bs-dismiss="modal"
                                aria-label="Close"></button>
                        </div>
                        <video width="100%" controls="" autoplay="">
                            <source src="https://gateway.ekpays.com/static/assets/images/example/ek-upi.mp4"
                                type="video/mp4" />
                        </video>
                    </div>
                    <div class="modal-footer w-100 d-block">
                        <div class="row">
                            <div class="col-8 mx-auto">
                                <button type="button" class="btn w-100 text-white" data-bs-dismiss="modal"
                                    style="background: #337ab7">
                                    Close
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal fade" id="modalId2" tabindex="-1" role="dialog" aria-labelledby="modalTitleId"
            aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title">NOTICE</h5>
                        <button type="button" class="btn-close" data-bs-dismiss="modal"
                            aria-label="Close"></button>
                    </div>
                    <div class="modal-body">
                        <div class="bootbox-body">
                            <span style="font-size: 18px; font-weight: 500">
                                1.Please do not save the current UPI account for next use! Be
                                sure to confirm that the UPI account you have obtained is the
                                latest account.<br />
                                <br />
                                2.If you fail to comply with this agreement and cause
                                financial losses that cannot be recovered, the platform will
                                not be responsible.<br />
                                <br />
                                3.If you have any questions, please contact customer service.
                            </span>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <script>
                            function disable() {
                                console.log("disable");
                                $("#submitButton").prop("disabled", true);
                            }
                        </script>
                        <input id="submitButton" type="submit" class="btn w-100 text-white"
                            style="background: #337ab7" value="Submit" />
                    </div>

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

<script>
    function hideImages() {
        $('.tabcontent').css("display", "none");
    }
</script>

<div id="snackbar"></div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous">
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
    integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous">
</script>
<script src="<?php echo e(asset('assets/js/jquery.validate.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/custom.js')); ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js"></script>
<script>
    var btns = document.querySelectorAll('.btn');
    var clipboard = new ClipboardJS(btns);
</script>

<script>
    $(document).ready(function() {
        $(".slider").slick({
            infinite: true,
            slidesToScroll: 1,
            autoplay: true,
            autoplaySpeed: 2000
        });
    });
</script>
</body>

</html>
<?php /**PATH /home/shyambabamatka/public_html/zupitogames.com/resources/views/userDashboard/checkout.blade.php ENDPATH**/ ?>