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

    <body data-theme-color="color-blue">
        <div class="page-wraper">


            <style>
                .header .header-content .mid-content {
                    flex: 1;
                    text-align: left;
                }

                .header {
                    background-color: #87b922;
                    min-height: 55px;
                    z-index: 2;
                    border-bottom: 0px solid #dddddd;
                }

                #preloader {
                    top: 0;
                }

                i.fa-solid.fa-bell {
                    font-size: 22px;
                    color: white;
                    margin-top: 12px;
                    padding-right: 7px;
                }

                i.fa-solid.fa-globe {
                    font-size: 22px;
                    color: white;
                    margin-top: 12px;
                    padding-right: 7px;
                }

                .header .sticky-header {
                    top: 0px;
                    background: #87b922;
                }

                .toast.style-1.toast-danger {
                    background-color: #1e1e1e5e;
                    color: #fff;
                    border: 0px white solid;
                    backdrop-filter: blur(5px);
                }

                .toast.style-1 .toast-body {
                    display: flex;
                    align-items: center;
                    padding: 14px;
                }

                .toast.style-1.toast-danger .toast-content strong {
                    color: #fff;
                    font-weight: 600;
                }
            </style>


            <!-- Header -->
            <header class="header">
                <div class="main-bar">
                    <div class="container">
                        <div class="header-content">

                            <div class="mid-content">
                                <h5 class="mb-0">Recharge</h5>
                            </div>
                            <!--              <div class="right-content">-->
                            <!--                  <a href="javascript:void(0);" class="menu-toggler">-->
                            <!--	<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">-->
                            <!--		<path opacity="0.4" d="M16.0755 2H19.4615C20.8637 2 22 3.14585 22 4.55996V7.97452C22 9.38864 20.8637 10.5345 19.4615 10.5345H16.0755C14.6732 10.5345 13.537 9.38864 13.537 7.97452V4.55996C13.537 3.14585 14.6732 2 16.0755 2Z" fill="#a19fa8"/>-->
                            <!--		<path fill-rule="evenodd" clip-rule="evenodd" d="M4.53852 2H7.92449C9.32676 2 10.463 3.14585 10.463 4.55996V7.97452C10.463 9.38864 9.32676 10.5345 7.92449 10.5345H4.53852C3.13626 10.5345 2 9.38864 2 7.97452V4.55996C2 3.14585 3.13626 2 4.53852 2ZM4.53852 13.4655H7.92449C9.32676 13.4655 10.463 14.6114 10.463 16.0255V19.44C10.463 20.8532 9.32676 22 7.92449 22H4.53852C3.13626 22 2 20.8532 2 19.44V16.0255C2 14.6114 3.13626 13.4655 4.53852 13.4655ZM19.4615 13.4655H16.0755C14.6732 13.4655 13.537 14.6114 13.537 16.0255V19.44C13.537 20.8532 14.6732 22 16.0755 22H19.4615C20.8637 22 22 20.8532 22 19.44V16.0255C22 14.6114 20.8637 13.4655 19.4615 13.4655Z" fill="#a19fa8"/>-->
                            <!--	</svg>-->
                            <!--</a>-->
                            <!--              </div>-->
                        </div>
                    </div>
                </div>
            </header>




            <!--   <div id="preloader">-->
            <!--	<div class="spinner"></div>-->
            <!--</div>-->
            <meta name="theme-color" content="#ed7016">

            <style>
                body {
                    background-color: #fff;
                }

                .profile-header {

                    color: white;
                    padding: 20px;
                    text-align: center;
                    border-radius: 10px;
                    background: var(--gradient);
                }

                .w-32 {
                    width: 32%;
                }

                .header {
                    background: url(https://i.postimg.cc/j2mDbqxF/download-45.png);
                    min-height: 300px;
                    background-size: cover;
                    z-index: 2;
                    border-bottom: 0px solid #dddddd;
                    border-bottom-left-radius: 0%;
                    border-bottom-right-radius: 0%;
                }

                .header .header-content .mid-content {
                    flex: 1;
                    text-align: center;
                }

                h5.mb-0 {
                    color: white;
                    margin-top: 22px;
                }

                .backbutton {
                    width: 36px;
                    height: 36px;
                    background: #ffffff1c;
                    border-radius: 12px 12px 12px 12px;
                    border: 1px solid #ffffff80;
                    line-height: 36px;
                    text-align: center;
                    position: absolute;
                    top: 20px;
                    left: 15px;
                    color: white;
                }

                .common_card {
                    background: rgb(255 255 255 / 0%);
                    border-radius: 8px 8px 8px 8px;
                    padding: 17px;
                    margin-bottom: 20px;
                    margin-top: -73px;
                }

                .common_card .common_card_content {
                    border-radius: 8px;
                }

                p {
                    margin-top: 0;
                    margin-bottom: 0rem;
                }

                .card {
                    display: none;
                }

                .modal-content {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    width: 91%;
                    pointer-events: auto;
                    border: 0px solid rgba(0, 0, 0, 0.2);
                    outline: 0;
                }

                .mb-2 {
                    margin-bottom: 0.2rem !important;
                    padding: 17px 0px 5px 0px;
                    color: #5b5b5b;
                    font-family: 'Poppins';
                    font-size: 14px;
                    font-weight: 600;
                    margin-left: -5px;
                }

                .modal-body {
                    padding: 25px;
                    background: #ffffff;
                    border-radius: 30px 30px 0px 0px;
                    margin: -13px;
                    height: 565px;
                }

                .form-control {
                    height: 55px;
                    width: 105%;
                    margin-left: -7px;
                    padding: 10px 25px;
                    font-size: 17px;
                    font-weight: 500;
                    color: #000;
                    transition: all 0.3sease-in-out;
                    background: #ffffff1c !important;
                    border-radius: 10px 4px 4px 4px !important;
                    border: 1px solid #dedede80 !important;
                }

                .form-control::placeholder {
                    font-size: 14px;
                    font-weight: normal;
                }

                .mt-3 {
                    margin-top: 1rem !important;
                    margin-left: -7px;
                    width: 108%;
                }

                .gap-2 {
                    gap: 0.5rem !important;
                }

                .p-2 {
                    padding: 0.6rem !important;
                }

                .light.btn-primary {
                    background-color: rgb(231 255 179);
                    color: #373737 ! Important;
                    border: 1px #e7e7e742 solid;
                    border-radius: 8px ! important;
                    font-size: 14px;
                    font-weight: 700;
                }

                h5.dz-title {
                    margin-bottom: -0.2rem !important;
                    padding: 16px 0px 0px 0px;
                    color: #d2d2d2;
                    font-family: 'Poppins';
                    font-size: 14px;
                    font-weight: 600;
                    margin-left: -6px;
                }

                .light.btn-primary:hover {
                    background-color: rgb(151 210 26);
                    color: #ffffff ! Important;
                    border: 1px solid #ffffff29;
                    box-shadow: rgba(255, 255, 255, 0.1) -3px -3px 9px inset, rgb(255 255 255 / 7%) 0 3px 9px inset,
                        rgba(255, 255, 255, 0.6) 0 1px 1px inset, rgb(0 0 0 / 5%) 0 -8px 36px inset,
                        rgba(255, 255, 255, 0.6) 0 1px 5px inset, rgb(0 0 0 / 10%) 2px 19px 31px;
                }

                .menubar-area {
                    display: none;
                }

                .common_card {
                    background: rgb(255 255 255 / 0%);
                    border-radius: 8px 8px 8px 8px;
                    padding: 15px;
                    margin-bottom: 20px;
                    justify-items: center;
                    margin-top: -232px;
                }

                .common_card .common_card_content {
                    background: #FFFFFF;
                    border-radius: 8px;
                }

                .common_explain {
                    border-left: 4px solid #EBD8A3;
                    padding-left: 10px;
                    font-family: Arial, Arial;
                    font-weight: 700;
                    font-size: 18px;
                    color: #3D3D3D;
                    line-height: 21px;
                }

                .common_content {
                    margin-top: 15px;
                    font-family: Arial, Arial;
                    font-weight: 400;
                    font-size: 14px;
                    color: #2A415C;
                    line-height: 22px;
                }

                .common_content p {
                    margin-bottom: 15px;
                }

                .border.border-primary.border-1.p-2.rounded.d-flex.justify-content-start.align-items-center.gap-1.gateway-box {
                    width: 286px;
                    padding: 1rem !important;
                    border-radius: 5px ! important;
                }

                .border.border-muted.border-1.p-2.rounded.d-flex.justify-content-start.align-items-center.gap-1.gateway-box {
                    width: 286px;
                    padding: 1rem !important;
                    border-radius: 5px ! important;
                }

                input[type="radio"] {
                    width: 22px;
                    height: 22px;
                    accent-color: var(--primary);
                    margin-left: 10%;
                }

                .align-items-center {
                    align-items: center !important;
                    display: flex;
                    width: 104% !important;
                    height: 50px;
                    flex-direction: row-reverse;
                    justify-content: space-evenly;
                }

                flex-direction: row-reverse;
                }

                .border-primary {
                    border-color: #ffffff !important;
                    background-color: #ffffff;

                }

                h3,
                .h3 {
                    font-size: 14px;
                    font-weight: 600;
                    color: #c2c2c2;
                    margin-left: -2px;
                    margin-bottom: -0.3rem !Important;
                }

                .border-primary {
                    border-color: #ffffff3d !important;
                    background: #9ed230 ! Important;
                    font-weight: bold;
                }

                .channel-1 {
                    order: 1;
                }

                .channel-2 {
                    order: 2;
                }
            </style>

            <div class="page-content">
                <div class="content-inner pt-0">
                    <div class="container fb">

                        <!--<div class="common_card" style="padding: 20px;">-->
                        <!--             <div class="common_card_content" style="background: rgb(255 255 255 / 0%);">-->
                        <!--                 <p class="value" style="font-family: Arial, Arial;font-weight: 700;font-size: 32px;color: #ffffff;line-height: 21px;">0.00</p>-->

                        <!--             </div>-->

                        <div class="common_card" style="padding: 20px;">
                            <div class="common_card_content" style="background: rgb(255 255 255 / 0%);">
                                <p class="value"
                                    style="font-family: Arial, Arial;font-weight: 700;font-size: 32px;color: #ffffff;line-height: 21px;">
                                    <?php echo e(number_format(auth()->user()->balance)); ?></p>

                            </div>
                        </div>
                        <div class="modal-body pt-0">
                            <form id="topupForm" action="<?php echo e(route('user.deposit.shpay')); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="currency">
                                <input type="hidden" name="deposit_method" value="1">
                                <div class="form-group">
                                    <label class="mb-2">Enter Amount</label>
                                    <input oninput="checkAmount(this.value)" id="topupAmount" type="number" min="295"
                                        class="form-control rounded border border-2 border-primary" name="amount"
                                        placeholder="Recharge Amount"
                                        style="
                                        background:#a8ea3b24 !important;
                                        border:1px solid #9ed230 !important;
                                    ">
                                </div>

                                <h5 class="dz-title">Quick Amount</h5>
                                <div class="mt-3 d-flex flex-wrap gap-2">
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(800)"><?php echo e($general->cur_sym); ?>800</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(300)"><?php echo e($general->cur_sym); ?>300</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(700)"><?php echo e($general->cur_sym); ?>700</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(1000)"><?php echo e($general->cur_sym); ?>1000</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(1200)"><?php echo e($general->cur_sym); ?>1200</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(2000)"><?php echo e($general->cur_sym); ?>2000</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(2990)"><?php echo e($general->cur_sym); ?>2990</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(3700)"><?php echo e($general->cur_sym); ?>3700</div>
                                    <div class="amount-btn btn-primary rounded p-2 text-primary text-center light"
                                        onclick="setAmount(5000)"><?php echo e($general->cur_sym); ?>5000</div>

                                </div>

                                <h3 style="margin-top: 15px;">Online Channel</h3>
                                <div class="w-100 d-flex gap-2 mt-3" style="font-size: 85%;">
                                    <div
                                        class="border border-1 p-2 rounded d-flex align-items-center gap-1 gateway-box border-primary">
                                        <input onchange="updateGateway(this);" id="gateway1" class="gateway" type="radio"
                                            name="gateway" value="1703" checked="">
                                        <label for="gateway1">Channel A</label>
                                    </div>
                                    <div
                                        class="border border-1 p-2 rounded d-flex align-items-center gap-1 gateway-box border-muted">
                                        <input onchange="updateGateway(this);" id="gateway2" class="gateway" type="radio"
                                            name="gateway" value="1704">
                                        <label for="gateway2">Channel B</label>
                                    </div>
                                </div>


                                <button type="submit" class="btn rounded btn-primary p-2"
                                    style="padding: 18px !important;font-size: 125% !important;width: 104%;margin-left: -7px;font-weight: 700;border-radius: 10px ! important;margin-top: 45px;background:#9ed230;border:none; box-shadow: 0px 4px 10px rgba(158, 210, 48, 0.5);">Quick
                                    Recharge</button>


                            </form>

                        </div>
                    </div>
                    <div class="common_card position" style="width: 91%;margin-left: 15px;margin-bottom: 100px;">

                        <div class="title-bar mt-3">
                            <p class="backbutton" onclick="navigate('/home/');">
                                <i class="fa-solid fa-chevron-left" style="color: white;"></i>
                            </p>

                            <div class="swiper-defult-pagination pagination-dots style-1 p-0"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <style>
            .amount-btn {
                width: 30.5% !important;
                white-space: nowrap;
                overflow-x: hidden;
            }

            .gateway:checked+label {
                color: #fff;
            }

            input[type="radio"] {
                width: 15px;
                height: 15px;
                accent-color: green;
            }

            input[type="radio"]:hover {
                filter: brightness(1.1);
            }
        </style>
        <style>
            .menubar-area .toolbar-inner .nav-link.active:after,
            .menubar-area .toolbar-inner .menu-toggler.active:after {
                content: "";
                position: absolute;
                bottom: -11px;
                height: 5px;
                background: #340166;
            }

            .menubar-area {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                background: #fff;
                padding: 20px;
                z-index: 999;
                padding-top: 12px !important;
                padding-bottom: 10px !important;
                border-radius: 8px 8px 0px 0px;
                box-shadow: 0 12px 26px 0 rgba(0, 0, 0, 0.3);
            }

            a:hover,
            a:focus,
            .fa-solid,
            a.active,
            .fa-solid.active {
                text-decoration: none;
                outline: none;
                color: var(--primary-hover);
            }
        </style>
        <script>
            function updateGateway(input) {
                $(".gateway-box").removeClass("border-primary");
                $(".gateway-box").removeClass("border-muted");
                $(".gateway-box").addClass("border-muted");


                $($(input).closest(".gateway-box")[0]).removeClass("border-muted");
                $($(input).closest(".gateway-box")[0]).addClass("border-primary");




            }

            document.querySelectorAll(".amount-btn").forEach((btn) => {
                btn.onclick = () => {
                    let amount = btn.innerHTML;
                    amount = amount.replace("<?php echo e($general->cur_sym); ?>", "");
                    amount = amount.trim();
                    amount = parseInt(amount);

                    let currentAmount = parseInt($('#topupAmount').val()) || 0;
                    let newAmount = amount;
                    $('#topupAmount').val(newAmount)
                    checkAmount(newAmount);
                }
            });

            function checkAmount(amount) {
                if (amount >= 100) {
                    document.querySelector("#rechargeBtn").disabled = false;
                } else {
                    document.querySelector("#rechargeBtn").disabled = true;
                }
            }

            function onRequestResponse(response) {
                //$('#topupModal').modal('hide');
                if (response.status == "success") {
                    location.href = response.redirect_url;
                } else {
                    notify("error", response.msg);
                }
            }

            function goBack() {
                window.history.back();
            }
        </script>


        <style>
            .menubar-area .toolbar-inner .nav-link.active:after,
            .menubar-area .toolbar-inner .menu-toggler.active:after {
                content: "";
                position: absolute;
                bottom: -11px;
                height: 5px;
                background: #340166;
            }

            .menubar-area {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                background: #fff;
                padding: 20px;
                z-index: 999;
                padding-top: 12px !important;
                padding-bottom: 10px !important;
                border-radius: 8px 8px 0px 0px;
                box-shadow: 0 12px 26px 0 rgba(0, 0, 0, 0.3);
            }

            a:hover,
            a:focus,
            .fa-solid,
            a.active,
            .fa-solid.active {
                text-decoration: none;
                outline: none;
                color: var(--primary-hover);
            }
        </style>




    </body>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.users', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/nissan/core/resources/views/templates/basic/user/payment/deposit.blade.php ENDPATH**/ ?>