<?php $__env->startSection('content'); ?>
    <html lang="en" googleoff:all="" translate="no"
        style="--vh: 5.64px; --primary: #0167FF; --bg: linear-gradient(180deg, #5d606f 16.19%, rgba(0, 102, 255, 0.45) 23.12%, rgba(0, 102, 255, 0.08) 97.67%); --bg-login: linear-gradient(180deg, #0057FF 16.19%, rgba(0, 102, 255, 0.00) 64.99%, #fff 100%); --bg-input: #BBCFF3; --btn-bg: #64D0FF; --btn-bg2: #2141FF; --btn-shadow: 2px 6px 10px 0px rgba(1, 103, 255, 0.12); --bg-tab: #0167FF; --mine-card: #206155;">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="google" content="notranslate">
        <title>Solar Power</title>
        <script type="module" crossorigin="" src="/assets/index-8a8d410f.js"></script>
        <link rel="modulepreload" crossorigin="" href="/assets/tabbar-6ac2140b.js">
        <link rel="stylesheet" href="/assets/tabbar-a37584c8.css">
        <link rel="stylesheet" href="/assets/index-2e2b8352.css">
        <link type="image/x-icon" rel="shortcut icon"
            href="https://babaoss.oss-accelerate-overseas.aliyuncs.com/upload/20231009/99940c5dbb316285432d041502e649ec.png">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/mine-cbb993a9.js">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/route-block-83d24a4e.js">
        <link rel="stylesheet" href="/assets/mine-e457b263.css">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/second-b7a042aa.js">
        <link rel="stylesheet" href="/assets/second-9f01a6fb.css">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/account-2e26b26f.js">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/recharge-d4e19fe8.js">
        <link rel="modulepreload" as="script" crossorigin="" href="/assets/BaseMainBtn-10c88668.js">
        <link rel="stylesheet" href="/assets/BaseMainBtn-5f24e787.css">
        <link rel="stylesheet" href="/assets/recharge-81ed9034.css">
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
        <style>
            .a-t-2 .container-card {
                background: (#5d606f 34%);
                border: 1px solid #5d606f;
            }
        </style>
    </head>

    <body class="">
        <div id="app" data-v-app="" class="a-t-2">
            <div class="box-border min-h-full w-full pt-45px">
                <div data-v-fa6979af="" class="navigation">
                    <div data-v-fa6979af="" class="navigation-content">
                        <div data-v-fa6979af="" class="h-full flex items-center">
                            <div data-v-fa6979af="" onclick="location.href='/user/dashboard';"
                                class="icon i-material-symbols-arrow-back-ios-new-rounded"></div>
                        </div>
                    </div>
                </div><!---->
                <div data-v-8389d9cc="" class="recharge-wrap p-$mg">
                    <div data-v-8389d9cc="" class=":uno: container-card relative rd-$card-radius p-$mg c-$btn-text">
                        <div data-v-8389d9cc="" class=":uno: base-logo flex items-center small-logo"><img
                                class="site-img h-90px w-90px rd-70%"
                                src="/logo.png"
                                draggable="false" alt="logo" h-full="" w-full="">
                            <div class=":uno: site-name ml-8px">Solar Power</div>
                        </div>




                        <form action="<?php echo e(route('user.deposit.insert')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <input type="hidden" name="currency">
                                <div class="my-2">
                                    <div class="form-group">
                                        <label class="form-label"><?php echo app('translator')->get('Select Gateway'); ?></label>
                                        <select class="form-select form-control form--select" 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 class="form-group">
                                        <label class="form-label"><?php echo app('translator')->get('Amount'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" name="amount" class="form-control"
                                                value="<?php echo e(old('amount')); ?>" autocomplete="off" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                    <div class="mt-3 preview-details d-none">
                                        <ul class="list-group">
                                            <li class="list-group-item d-flex justify-content-between">
                                                <span><?php echo app('translator')->get('Limit'); ?></span>
                                                <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>
                                            </li>
                                            <li class="list-group-item d-flex justify-content-between">
                                                <span><?php echo app('translator')->get('Charge'); ?></span>
                                                <span><span class="charge fw-bold">0</span>
                                                    <?php echo e(__($general->cur_text)); ?></span>
                                            </li>
                                            <li class="list-group-item d-flex justify-content-between">
                                                <span><?php echo app('translator')->get('Payable'); ?></span> <span><span class="payable fw-bold">
                                                        0</span> <?php echo e(__($general->cur_text)); ?></span>
                                            </li>
                                            <li class="list-group-item justify-content-between d-none rate-element">

                                            </li>
                                            <li class="list-group-item justify-content-between d-none in-site-cur">
                                                <span><?php echo app('translator')->get('In'); ?> <span class="method_currency"></span></span>
                                                <span class="final_amo fw-bold">0</span>
                                            </li>
                                            <li class="list-group-item justify-content-center crypto_currency d-none">
                                                <span><?php echo app('translator')->get('Conversion with'); ?> <span class="method_currency"></span>
                                                    <?php echo app('translator')->get('and final value will Show on next step'); ?></span>
                                            </li>
                                        </ul>
                                    </div>
                                    <button type="submit" class="btn btn-primary w-100 mt-4"><?php echo app('translator')->get('Submit'); ?></button>
                                </div>
                        </form>
                    </div>
                </div>
            </div>
            </section>
        <?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/yesuntec/y77.ye-suntechdemo.pw/core/resources/views/templates/invester/user/payment/deposit.blade.php ENDPATH**/ ?>