<title>Deposit -Best Leearning</title>

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

    <link rel="stylesheet" href="https://www.powerworkerearn.com/resources/css/argon.css" type="text/css">
    <link rel="stylesheet" href="https://www.powerworkerearn.com/resources/css/myapp.css" type="text/css">
    <link rel="stylesheet" href="https://www.powerworkerearn.com/resources/css/bttn.css" type="text/css">
    <link rel="stylesheet" href="https://www.powerworkerearn.com/frontend/assets/ref_depo/flaticon.css">
    <link rel="stylesheet" href="https://www.powerworkerearn.com/frontend/assets/ref_depo/style1.css">
    <link rel="stylesheet" href="https://www.powerworkerearn.com/frontend/assets/ref_depo/responsive.css">
    <style>
        .feature-area {
            background: rgba(0,0,0,0) url(https://powerworkerearn.com/assets/img/bg.png) no-repeat scroll left center/cover;
            position: relative;
            z-index: 1;
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('user-content'); ?>

<!-- Page content -->
<div class="row mb-4 justify-content-center">
        <main style="margin-top:60px;box-shadow: 0 0 2rem 0 rgba(136,152,170,.15);" id="nedepo">
        <!-- Start services area -->
        <section id="particles-js2" style="position: relative;">
            <div class="services-area bg-color area-padding-2" style="border-top-left-radius: 10px;border-top-right-radius: 10px;">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="section-headline white-headline text-center">
                                <h3 class="ca_alhead">Select Your Option</h3>
                            </div>
                        </div>
                    </div>
                    <div class="mb-3">
                        <marquee bgcolor="transparent" style="padding: 5px;border-radius: 5px;border: 2px solid white;" behavior="scroll">
                            <a style="font-size:15px; color: white; font-weight: bold;">
                                <i class="fe fe-link me-2" aria-hidden="true"></i>Please select Manual Deposit
                            </a>
                        </marquee>
                    </div>
                    <div class="row">
                        <!-- Start single column-->
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <div class="single-service bttn" onclick="">
                                <div class="service-img">
                                    <a class="service-icon" href="#">
                                        <img src="https://powerworkerearn.com/backend/img/mine/deposit.png" alt="">
                                    </a>
                                </div>
                                <div class="main-service">
                                    <div class="service-content">
                                        <h4>
                                            <a href="<?php echo e(route('user.deposit')); ?>">Manual Deposit</a>
                                        </h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- End single column-->

                        <!-- Start single column-->
                        <div class="col-md-4 col-sm-4 col-xs-12">
                            <div class="single-service bttn" onclick="">
                                <div class="service-img">
                                    <a class="service-icon" href="">
                                        <img src="https://powerworkerearn.com/backend/img/mine/instant.png" alt="">
                                    </a>
                                </div>
                                <div class="main-service">
                                    <div class="service-content">
                                        <h4>
                                            <a href="<?php echo e(route('user.instant-deposit')); ?>">Instant Deposit<small class="text-white"> (soon)</small></a>
                                        </h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- End single column-->
                    </div>
                </div>
            </div>
        </section>
        <!-- End services area -->

        <!-- Start feature area -->
        <div class="feature-are fix area-padding-2" style="background-image: url('https://www.powerworkerearn.com/assets/img/bg.png');">
            <div class="container">
                <div class="row">
                    <!-- Start single column-->
                    <div class="col-md-6 col-sm-6 col-xs-12">
                        <div class="feature-image">
                            <div class="rotmate-image rotateme">
                                <img src="https://powerworkerearn.com/backend/img/mine/circle.png" alt="">
                            </div>
                            <div class="top-img">
                                <img src="https://www.powerworkerearn.com/backend/img/mine/ab1.png" alt="">
                            </div>
                        </div>
                        
                    </div>
                   
                    <div class="col-md-6 col-sm-6 col-xs-12" style="padding: 0;">
                        <div class="send-money-form">
                            <div class="form-text">
                                <h4 class="form-top">Deposit Balance</h4>
                                <div class="form-inner">
                                    <form action="<?php echo e(route('user.earning-to-deposit')); ?>" method="POST" id="transferForm">
                                     <?php echo csrf_field(); ?>
                                        <div class="row">
                                            <div class="col-md-12 col-sm-12 col-xs-12">
                                                <label for="m-send" class="form_label">
                                                    <span class="text">Balance</span>
                                                    <p class="balance">$<?php echo e(number_format(Auth::user()->deposit_balance, 4)); ?></p>
                                                </label>
                                            </div>
                                        </div>
                                        <div class="row" style="margin: 0px !important;">
                                            <div class="col-md-6 col-sm-12 col-xs-12">
                                                <!-- Placeholder for any content you want to add -->
                                            </div>
                                            <div class="deposit_msg text-center">
                                                
                                                <div class="mb-2">
                                                    <input type="number" id="transferAmount" name="transferAmount" class="form-control" min="1" step="1" placeholder="Enter amount...">
                                                </div>
                                                <button type="submit" class="btn btn-sm btn-info mt-2">Earning To Deposit</button>
                                            </div>   
                                            
                                            <?php if(session('convert_success')): ?>
                                                <div class="alert alert-success" style="font-weight:bold;">
                                                    <i class="fas fa-check"></i>
                                                    <span id="convertSuccessMessage" class="ms-3">Convert Success</span>
                                                </div>
                                            <?php endif; ?>
                                            <?php if(session('convert_error')): ?>
                                                <div class="alert alert-danger" style="font-weight:bold;">
                                                    <i class="far fa-frown"></i>
                                                    <span id="convertErrorMessage" class="ms-2">Sorry, Insufficient Balance!</span>
                                                </div>
                                            <?php endif; ?>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- End feature area -->
        
        <!-- Start overview area -->
        <div id="particles-js4" class="overview-area bg-color fix area-padding" style="position: relative;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;margin-bottom: 30px;">
            <div class="container">
                <div class="row">
                    <div class="col-md-6 col-sm-6 col-xs-12">
                        <div class="overview-content">
                            <div class="overview-images">
                                <img src="https://www.powerworkerearn.com/backend/img/mine/security.png" alt="">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-6 col-xs-12">
                        <div class="overview-text">
                            <h3 class="ca_alhead">Our micro job service prioritizes security with</h3>
                            <ul>
                                <li><a href="#"> We employ cutting-edge user authentication protocols, including
                                        multi-factor authentication (MFA), to ensure the authenticity of all users. This
                                        stringent verification process effectively mitigates the risk of unauthorized
                                        access
                                        and enhances the overall security of our platform.</a></li>
                                <li><a href="#">Your financial transactions are protected by industry-standard
                                        encryption
                                        mechanisms. We have partnered with reputable payment processors to guarantee the
                                        confidentiality and integrity of your payment information. This not only ensures
                                        your peace of mind but also minimizes the potential for fraudulent
                                        activities.</a>
                                </li>
                                <li><a href="#">Our dedicated security team utilizes advanced monitoring tools and
                                        intrusion
                                        detection systems to proactively identify and address security threats. We
                                        maintain
                                        constant vigilance over our platform, promptly responding to any suspicious
                                        activities or potential breaches. This ongoing effort guarantees a secure and
                                        worry-free experience for all users.</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php if(Auth::user()->earning_balance < 1): ?>
                                                <button type="button" class="btn btn-sm btn-info mb-2" onclick="earningToDepositAlert()">Earning To Deposit</button>
                    
                                                <p class="text-danger" id="earning_to_deposit_error" style="display: none;"><b>Earning amount should be minimum 1$</b></p>
                                                <?php else: ?>
                                                    <a href="<?php echo e(route('user.earning-to-deposit')); ?>" class="btn btn-sm btn-info mb-2" onclick="return confirm('Are you sure?')">Earning To Deposit</a>
                                                <?php endif; ?>
        <!-- End overview area -->
    </main>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://www.powerworkerearn.com/frontend/assets/ref_depo/particles.js"></script>
<script src="https://www.powerworkerearn.com/frontend/assets/ref_depo/app.js"></script>

<script>
    function earningToDepositAlert() {
        $('#earning_to_deposit_error').show();
    }
</script>
<script>
    function transferEarningToDeposit() {
        var amount = document.getElementById('transferAmount').value;
        if (amount < 1 || isNaN(amount)) {
            alert('Invalid amount. Please enter valid amount. Min 1.');
            return false;
        }
        
        if (confirm('Are you sure you want to transfer ' + amount + ' USD from earning balance to deposit balance?')) {
            // Submit the form
            document.getElementById('transferForm').submit();
        }
    }
</script>

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

<?php echo $__env->make('user.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/powerwor/public_html/resources/views/user/pages/mine.blade.php ENDPATH**/ ?>