
<?php $__env->startSection('content'); ?>
    <div class="dashboard-inner">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="mb-4">
                    <h3 class="dashboard-title"><?php echo app('translator')->get('Balance Transfer'); ?> <i class="fas fa-question-circle text-muted text--small" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo app('translator')->get('You can transfer the balance to another user from your account balance. The transferred amount will be added to the account blance of the targeted user.'); ?>"></i></h3>
                </div>
                <div class="card custom--card">
                    <div class="card-body">
                        <form action="" method="post">
                            <?php echo csrf_field(); ?>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Username'); ?></label>
                                <input class="form--control form-control" name="username" type="text" autocomplete="off" required>
                            </div>
                            <div class="form-group">
                                <label>
                                    <?php echo app('translator')->get('Amount'); ?> <small class="text--base">(<?php echo app('translator')->get('Charge'); ?>:
                                        <?php echo e(showAmount($general->balance_transfer_fixed_charge)); ?> <?php echo e(__($general->cur_text)); ?> +
                                        <?php echo e(getAmount($general->balance_transfer_per_charge)); ?>%
                                        <?php if($general->balance_transfer_min != 0): ?>
                                            <?php echo app('translator')->get('| Min Limit'); ?>: <?php echo e(showAmount($general->balance_transfer_min)); ?> <?php echo e(__($general->cur_text)); ?>

                                        <?php endif; ?>
                                        <?php if($general->balance_transfer_max != 0): ?>
                                            <?php echo app('translator')->get('| Max Limit'); ?>: <?php echo e(showAmount($general->balance_transfer_max)); ?> <?php echo e(__($general->cur_text)); ?>

                                        <?php endif; ?>
                                        )
                                    </small>
                                </label>
                                <input class="form--control form-control" name="amount" type="text" autocomplete="off" required>
                            </div>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('After Charge'); ?></label>
                                <input class="form--control form-control after-charge" type="text" readonly autocomplete="off" required>
                            </div>
                            <?php if(auth()->user()->ts): ?>
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Google Authenticator Code'); ?></label>
                                    <input class="form-control form--control" name="authenticator_code" type="text" required>
                                </div>
                            <?php endif; ?>
                            <div class="form-group">
                                <button class="btn btn--base w-100" type="submit"><?php echo app('translator')->get('Submit'); ?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict"
            $('[name=amount]').on('input', function() {
                var amount = parseFloat($(this).val());
                if (!amount) {
                    $('.after-charge').val('');
                    return false;
                }
                var percent = <?php echo e(getAmount($general->balance_transfer_per_charge)); ?>;
                var fixed = <?php echo e(showAmount($general->balance_transfer_fixed_charge)); ?>;
                var charge = (amount * percent / 100) + fixed;
                var withCharge = amount + charge;
                $('.after-charge').val(withCharge.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/mez5ba60cfao/public_html/Files/core/resources/views/templates/basic/user/balance_transfer.blade.php ENDPATH**/ ?>