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




                        <form action="<?php echo e(route('user.deposit.insert')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            
                            <input type="hidden" name="currency">
                            
                            
                            
                            
                            
                            
                            <body class="huiBg">
<div class="top">
    <a href="<?php echo e(route ('user.home')); ?>" class="topLeft">
      
    </a>
    <div class="topTit">
        Recharge
    </div>
</div>
<div class="withdraw-main">
    <div class="withdraw-container">
        <div class="withdraw-top">
            <p>Balance Wallet</p>
            <h3><?php echo e(showAmount(auth()->user()->interest_wallet)); ?><?php echo e(__($general->cur_text)); ?></h3>
        </div>
        <div class="withdraw-box">
            <div class="withdraw-input">
                <ul>
                                                                        <li class="cur" ype="button" onclick="amountset('4500')">
                                <span>Recharge</span>
                                <h3>4500</h3>
                            </li>
                                                                                                <li ype="button" onclick="amountset('6800')">
                                <span>Recharge</span>
                                <h3>6800</h3>
                            </li>
                                                                                                <li type="button" onclick="amountset('21500')">
                                <span>Recharge</span>
                                <h3>21500</h3>
                            </li>
                                                                                                <li ype="button" onclick="amountset('68000')">
                                <span>Recharge</span>
                                <h3>68000</h3>
                            </li>
                                                                                                <li ype="button" onclick="amountset('125000')">
                                <span>Recharge</span>
                                <h3>125000</h3>
                            </li>
                                                                                                <li ype="button" onclick="amountset('180000')">
                                <span>Recharge</span>
                                <h3>180000</h3>
                            </li>
                                                                                                <li ype="button" onclick="amountset('268000')">
                                <span>Recharge</span>
                                <h3>268000</h3>
                            </li>
                                                            </ul>
            </div>
            <div class="withdraw-tit">Recharge amount</div>
            <div class="withdraw-input">
                <input type="number" name="amount" value="0"
                       placeholder="please enter recharge amount">
            </div>
            <div class="deposit-method">
                <div class="deposit-tit">Recharge method</div>
                <div class="deposit-tab">
                                                                        <div  attr-id="7001">
                                   <select class="withdraw-box" name="gateway" required>
                                            <option value=""><?php echo app('translator')->get('Select One'); ?></option>
                                            <?php $__currentLoopData = $gatewayCurrency; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($data->method_code); ?>" <?php if(old('gateway') == $data->method_code): echo 'selected'; endif; ?>
                                                    data-gateway="<?php echo e($data); ?>"><?php echo e($data->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                
                            </div>
                                                  
                                                  
                                                <div attr-id="6001">
                                <p>Minimum Recharge  <span><span class="min fw-bold">0</span> <?php echo e(__($general->cur_text)); ?> -
                                                    <span class="max fw-bold">0</span> <?php echo e(__($general->cur_text)); ?></span></p>
                                <i class="layui-icon layui-icon-radio" style="font-size: 22px; color: #fff;"></i>
                            </div>
                                                            </div>
            </div>   
                                                  
                                                  
                                                  
                                                  
                                                                                            
                                                            </div>
            </div>
            <button type="submit" class="withdraw-btn">Recharge</button>
        </div>

        <div class="withdraw-rule">
            <div class="rule-title">Deposit Rules</div>
            <div class="rule-text">
                <p><strong><span style="text-wrap: nowrap; font-size: 14px;">1. Please save the receiving account number when depositing</span></strong></p><p><strong><span style="text-wrap: nowrap; font-size: 14px;"><br/></span></strong></p><p><strong><span style="text-wrap: nowrap; font-size: 14px;">2. Do not use the saved historical account to make repeated deposits</span></strong></p><p><strong><span style="text-wrap: nowrap; font-size: 14px;"><br/></span></strong></p><p><strong><span style="text-wrap: nowrap; font-size: 14px;">3. The recharge amount will be added to the balance</span></strong></p><p><span style="font-size: 14px;"></span><br/></p><p></p><p></p><p></p><p></p>            </div>
        </div>
    </div>
</div>














</body>
</html>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
        
            
            
            
            
<script>
        var selector1 = '.bank-card.one';
        var selector2 = '.bank-card.two';
        // var sidebar = '.pink-block';
        // var x = document.getElementById("text");
        $(selector1).on('click', function(){
            $(selector1).toggleClass('selected');
            $(selector2).toggleClass('selected');
            // $(sidebar).toggleClass('left');

            // if (x.innerHTML === "Edit") {
            //     x.innerHTML = "Cancel";
            // } else {
            //     x.innerHTML = "Edit";
            // }
        });
        $(selector2).on('click', function(){
            $(selector1).toggleClass('selected');
            $(selector2).toggleClass('selected');
        });
    </script>

    <script>
        function show_channels() {
            $(".channels-data").hide();
            $(".recharge-data").hide();
            $(".selected_channel").val(1);

            $("#store_data").submit();
        }

        function open_page(ind) {

            $(".channels-data").hide();
            $(".recharge-data").hide();
            $(".channels-loader").show();
            // window.location.href = "https://intuitive.fyi/pay";
            //$("#store_data").submit();
            // setTimeout(function() {
            $("#store_data").submit()
            // }, 10);
        }

        function amountset(pay) {
            $("#amount").val(pay);
        }
    </script>




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



<?php $__env->startPush('script'); ?>
    <script>
        (function ($) {
            "use strict";
            $('select[name=gateway]').change(function(){
                if(!$('select[name=gateway]').val()){
                    $('.preview-details').addClass('d-none');
                    return false;
                }
                var resource = $('select[name=gateway] option:selected').data('gateway');
                var fixed_charge = parseFloat(resource.fixed_charge);
                var percent_charge = parseFloat(resource.percent_charge);
                var rate = parseFloat(resource.rate)
                if(resource.method.crypto == 1){
                    var toFixedDigit = 8;
                    $('.crypto_currency').removeClass('d-none');
                }else{
                    var toFixedDigit = 2;
                    $('.crypto_currency').addClass('d-none');
                }
                $('.min').text(parseFloat(resource.min_amount).toFixed(2));
                $('.max').text(parseFloat(resource.max_amount).toFixed(2));
                var amount = parseFloat($('input[name=amount]').val());
                if (!amount) {
                    amount = 0;
                }
                if(amount <= 0){
                    $('.preview-details').addClass('d-none');
                    return false;
                }
                $('.preview-details').removeClass('d-none');
                var charge = parseFloat(fixed_charge + (amount * percent_charge / 100)).toFixed(2);
                $('.charge').text(charge);
                var payable = parseFloat((parseFloat(amount) + parseFloat(charge))).toFixed(2);
                $('.payable').text(payable);
                var final_amo = (parseFloat((parseFloat(amount) + parseFloat(charge)))*rate).toFixed(toFixedDigit);
                $('.final_amo').text(final_amo);
                if (resource.currency != '<?php echo e($general->cur_text); ?>') {
                    var rateElement = `<span class="fw-bold"><?php echo app('translator')->get('Conversion Rate'); ?></span> <span><span  class="fw-bold">1 <?php echo e(__($general->cur_text)); ?> = <span class="rate">${rate}</span>  <span class="method_currency">${resource.currency}</span></span></span>`;
                    $('.rate-element').html(rateElement)
                    $('.rate-element').removeClass('d-none');
                    $('.in-site-cur').removeClass('d-none');
                    $('.rate-element').addClass('d-flex');
                    $('.in-site-cur').addClass('d-flex');
                }else{
                    $('.rate-element').html('')
                    $('.rate-element').addClass('d-none');
                    $('.in-site-cur').addClass('d-none');
                    $('.rate-element').removeClass('d-flex');
                    $('.in-site-cur').removeClass('d-flex');
                }
                $('.method_currency').text(resource.currency);
                $('input[name=currency]').val(resource.currency);
                $('input[name=method_code]').val(resource.method_code);
                $('input[name=amount]').on('input');
            });
            $('input[name=amount]').on('input',function(){
                $('select[name=gateway]').change();
                $('.amount').text(parseFloat($(this).val()).toFixed(2));
            });
        })(jQuery);
    </script>


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

        <?php $__env->startPush('script'); ?>
            <script>
                (function($) {
                    "use strict";
                    $('select[name=gateway]').change(function() {
                        if (!$('select[name=gateway]').val()) {
                            $('.preview-details').addClass('d-none');
                            return false;
                        }
                        var resource = $('select[name=gateway] option:selected').data('gateway');
                        var fixed_charge = parseFloat(resource.fixed_charge);
                        var percent_charge = parseFloat(resource.percent_charge);
                        var rate = parseFloat(resource.rate)
                        if (resource.method.crypto == 1) {
                            var toFixedDigit = 8;
                            $('.crypto_currency').removeClass('d-none');
                        } else {
                            var toFixedDigit = 2;
                            $('.crypto_currency').addClass('d-none');
                        }
                        $('.min').text(parseFloat(resource.min_amount).toFixed(2));
                        $('.max').text(parseFloat(resource.max_amount).toFixed(2));
                        var amount = parseFloat($('input[name=amount]').val());
                        if (!amount) {
                            amount = 0;
                        }
                        if (amount <= 0) {
                            $('.preview-details').addClass('d-none');
                            return false;
                        }
                        $('.preview-details').removeClass('d-none');
                        var charge = parseFloat(fixed_charge + (amount * percent_charge / 100)).toFixed(2);
                        $('.charge').text(charge);
                        var payable = parseFloat((parseFloat(amount) + parseFloat(charge))).toFixed(2);
                        $('.payable').text(payable);
                        var final_amo = (parseFloat((parseFloat(amount) + parseFloat(charge))) * rate).toFixed(
                            toFixedDigit);
                        $('.final_amo').text(final_amo);
                        if (resource.currency != '<?php echo e($general->cur_text); ?>') {
                            var rateElement =
                                `<span class="fw-bold"><?php echo app('translator')->get('Conversion Rate'); ?></span> <span><span  class="fw-bold">1 <?php echo e(__($general->cur_text)); ?> = <span class="rate">${rate}</span>  <span class="method_currency">${resource.currency}</span></span></span>`;
                            $('.rate-element').html(rateElement)
                            $('.rate-element').removeClass('d-none');
                            $('.in-site-cur').removeClass('d-none');
                            $('.rate-element').addClass('d-flex');
                            $('.in-site-cur').addClass('d-flex');
                        } else {
                            $('.rate-element').html('')
                            $('.rate-element').addClass('d-none');
                            $('.in-site-cur').addClass('d-none');
                            $('.rate-element').removeClass('d-flex');
                            $('.in-site-cur').removeClass('d-flex');
                        }
                        $('.method_currency').text(resource.currency);
                        $('input[name=currency]').val(resource.currency);
                        $('input[name=amount]').on('input');
                    });
                    $('input[name=amount]').on('input', function() {
                        $('select[name=gateway]').change();
                        $('.amount').text(parseFloat($(this).val()).toFixed(2));
                    });
                })(jQuery);
            </script>
        <?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sites/28b/6/61db25e12e/public_html/perview/rayblue1/core/resources/views/templates/invester/user/payment/deposit.blade.php ENDPATH**/ ?>