<?php
$user = \Auth::user();
?>

<?php $__env->startPush('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/front/css/page.css')); ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">

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

<div class="bg02 pt-3 pb-3">
    <div class="container-fluid text-center">
        <div class="cont010 pt-3 pl-3 pr-3 pb-5">
            <div class="d-flex flex-row justify-content-between mb-5">

                <h1 class="dep">Redemption</h1>


                <a href="<?php echo e(route('withdraw.history')); ?>">
                    <div class="d-flex flex-row">
                        <h1 class="dep01">History</h1>
                        <img src="<?php echo e(asset('assets/front/img/chevron02.png')); ?>" class="che01">
                    </div>
                </a>
            </div>
            <div class="bg-container021 p-5 mb-5">
                <h6 class="t01">Assets Balance</h6>
                <h1 class="t02">USDT <?php echo e($user->balance); ?></h1>
                <h6 class=" t01">Redemption will be receive usually within an hour</h6>

            </div>

            <div class="d-flex flex-row">

                <img src="<?php echo e(asset('assets/front/img/ts.png')); ?>" class="ts01">
                <h1 class="dep010 mb-4">USDT Withdraw</h1>
            </div>
            <form method="POST" action="<?php echo e(route('send.withdraw.request')); ?>">
                <?php echo csrf_field(); ?>
                <p class="smap text-left"> Withdrawal will be transferred to USDT Address
                </p>

                <h6 class="chain ">Chain Type</h6>
                <select class="form-control mx-auto col-md-4 mb-3" name="chain_type">
                    <option value="">Select type</option>
                    <option <?php echo e((Auth::user()->chain_type == 'TRC20')?'selected':''); ?> value="TRC20">TRC 20</option>
                    <option <?php echo e((Auth::user()->chain_type == 'ERC20')?'selected':''); ?> value="ERC20">ERC 20</option>
                </select>

                <h6 class="chain ">Address</h6>
                <input type="text" required class="form-control mx-auto col-md-4 mb-3" value="<?php echo e(Auth::user()->address); ?>" name="bank_card_number" placeholder="Enter your Address">

                <div class="container">


                    <div class="form-group mt-4">
                        <h6 class="chain mb-3">Redemption Amount</h6>
                        <input type="number" required name="amount" class="form-control form-control010" id="exampleInputEmail1" placeholder="Enter Amount">
                    </div>

                    <div class="form-group mt-4">
                        <h6 class="chain mb-3">Redemption Pin</h6>
                        <input type="number" name="redemption_pin" required class="form-control form-control010" id="exampleInputEmail1" placeholder="Enter Redemption Pin">
                    </div>
                    <div class="d-flex flex-row justify-content-center mt-4">
                        <button type="submit" class="bat01">REDEMPTION</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('javascript'); ?>
<!-- <script src="<?php echo e(asset('assets/admin/lib/jquery/jquery-3.7.1.min.js')); ?>"></script> -->
<!-- <script src="<?php echo e(asset('assets/admin/lib/datatables/dataTables.js')); ?>"></script> -->
<?php echo $__env->make('layouts.includes.datatable_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script>
    $(document).ready(function() {


        $(document).on("click", ".select_amount", function() {
            var amount = $(this).data('amount');
            // alert(amount);
            $('#amount').val(amount);

        });
    });
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\journey\resources\views/front/withdraw.blade.php ENDPATH**/ ?>