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

    <!-- ========User-Panel-Section Starte Here ========-->
    <div class="row">
        <div class="col-12">
            <h2 class="content-header"><?php echo e(__($page_title)); ?></h2>
        </div>
    </div>

    <section class="user-panel-section padding-bottom padding-top">
        <div class="container user-panel-container">
            <div class=" user-panel-tab">
                <div class="row">

                    <div class="col-lg-12" >

                        <div class="tab-area fullscreen-width">
                            <div class="tab-item active">


                                <div class="row mb-60-80">
                                    <div class="col-md-12 mb-30">
                                        <?php if($errors->any()): ?>
                                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div><?php echo e($error); ?></div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </div>

                                    <div class="col-lg-12 mb-4">
                                        <div class="card card-deposit">

                                            <div class="card-header card-header-bg">
                                                <h5 class="text-center text-white text-bold-600 my-1"><?php echo app('translator')->get('Current Balance'); ?> :
                                                    <?php if($type == 'money'): ?>
                                                        <?php $cur_text = $general->cur_text;$balance=$withdraw->wallet->balance; ?>
                                                        <strong><?php echo e(formatter_money($withdraw->wallet->balance)); ?>  <?php echo e($general->cur_text); ?></strong>
                                                    <?php elseif($type == 'coins'): ?>
                                                        <?php $cur_text = 'BTCE';$balance=auth()->user()->coins->coins; ?>
                                                        <strong><?php echo e(auth()->user()->coins ? auth()->user()->coins->coins: 0); ?> BTCE</strong>
                                                    <?php else: ?>
                                                        <?php $cur_text = 'BET';$balance=auth()->user()->tokens->tokens; ?>
                                                        <strong><?php echo e(auth()->user()->tokens ? auth()->user()->tokens->tokens: 0); ?> BET</strong>
                                                    <?php endif; ?>
                                                </h5>
                                            </div>

                                            <div class="card-body card-body-deposit card-body-p">
                                                <div class="row">
                                                    <div class="col-md-4">
                                                        <div class="form-group">
                                                            <label class="font-weight-boldl"><?php echo app('translator')->get('Request Amount'); ?> : </label>

                                                            <div class="input-group">
                                                                <input type="text" value="<?php echo e(formatter_money($withdraw->amount )); ?>" readonly  class="form-control form-control-lg" placeholder="<?php echo app('translator')->get('Enter Amount'); ?>">
                                                                <div class="input-group-prepend">
                                                                    <span class="input-group-text "><?php echo e($cur_text); ?> </span>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="form-group">
                                                            <label class="font-weight-bold"><?php echo app('translator')->get('Withdrawal Charge'); ?> : </label>
                                                            <div class="input-group">
                                                                <input type="text" value="<?php echo e(formatter_money($withdraw->charge)); ?>" readonly   class="form-control form-control-lg" placeholder="<?php echo app('translator')->get('Enter Amount'); ?>">
                                                                <div class="input-group-prepend">
                                                                    <span class="input-group-text "><?php echo e($cur_text); ?> </span>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="form-group">
                                                            <label class="font-weight-bold"><?php echo app('translator')->get('You Will Get'); ?> : </label>
                                                            <div class="input-group">
                                                                <input type="text" value="<?php echo e(formatter_money($withdraw->final_amount)); ?>" readonly class="form-control form-control-lg" placeholder="<?php echo app('translator')->get('Enter  Amount'); ?>" required>
                                                                <div class="input-group-prepend">
                                                                    <span class="input-group-text "><?php echo e($cur_text); ?> </span>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="form-group">

                                                            <label class="font-weight-bold"><?php echo app('translator')->get('Available Balance'); ?> : </label>
                                                            <div class="input-group">
                                                                <input type="text" value="<?php echo e(formatter_money($balance - ($withdraw->amount + $withdraw->charge))); ?>"  class="form-control form-control-lg" placeholder="<?php echo app('translator')->get('Enter Amount'); ?>" required readonly>
                                                                <div class="input-group-prepend">
                                                                    <span class="input-group-text "><?php echo e($cur_text); ?> </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-8">

                                                      <?php echo $withdraw->method->description; ?>


                                                        <form action="<?php echo e(route('user.withdraw.submit')); ?>" method="post" enctype="multipart/form-data">
                                                            <?php echo csrf_field(); ?>

                                                            <?php $__currentLoopData = json_decode($withdraw->detail); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=> $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                <div class="form-group">
                                                                    <label class="font-weight-bold"> <?php echo e(str_replace('_',' ',$k)); ?> </label>
                                                                    <input type="text" name="<?php echo e($k); ?>" value="<?php echo e(old($k)); ?>"  class="form-control form-control-lg" placeholder="" >
                                                                </div>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                            <div class="form-group">
                                                                <button type="submit" class="btn btn-custom2 mt-4 btn-block text-center btn-lg"><?php echo app('translator')->get('Confirm'); ?></button>
                                                            </div>
                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>


                            </div>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- ========User-Panel-Section Ends Here ========-->

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


<?php $__env->startSection('load-js'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>

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

<?php echo $__env->make(activeTemplate() .'layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ectinternational/goldenage.club/resources/views/templates/minimal/user/withdraw/preview.blade.php ENDPATH**/ ?>