


<?php $__env->startSection('content'); ?>
<!-- dahboard area start -->
<section>
    <div class="dashboard-area pt-150 pb-100">
        <div class="container">
            <div class="row">
                <?php echo $__env->make('layouts.frontend.partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="col-lg-9">
                    <div class="main-container">
                        <div class="header-section">
                            <h4><?php echo e(__('Payment')); ?></h4>
                        </div>
                        <div class="section-body">
                            <div class="card mx-auto">
                                <div class="card-body">
                                  <div class="table-responsive">
                                    <table class="table">
                                        <tr>
                                            <td><?php echo e(__('Amount')); ?></td>
                                            <td><?php echo e($data->amount); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo e(__('Charge')); ?></td>
                                            <td><?php echo e($data->charge); ?></td>
                                        </tr>

                                        <?php if($gateway->type == 1): ?>
                                        <tr>
                                            <td><?php echo e(__('Total')); ?></td>
                                            <td><?php echo e($data->payable); ?>

                                            <?php switch($gateway->id):
                                                case (4): ?> (<?php echo e(__('INR')); ?>)   <?php break; ?>
                                                <?php case (5): ?> (<?php echo e(__('RM')); ?>)    <?php break; ?>
                                                <?php case (7): ?> (<?php echo e(__('NGN')); ?>)  <?php break; ?>
                                                <?php default: ?> 
                                                (<?php echo e(__('USD')); ?>)
                                            <?php endswitch; ?>
                                            </td>
                                        </tr>
                                        <?php endif; ?>
                                        <tr>
                                            <td><?php echo e(__('Amount (USD)')); ?></td>
                                            <td><?php echo e($data->usd_amount); ?></td>
                                        </tr>
                                        <?php if($data->final_amount): ?>
                                        <tr>
                                            <td><?php echo e(__('Amount')); ?> (<?php echo e($data->currency->title); ?>)</td>
                                            <td><?php echo e($data->final_amount); ?></td>
                                        </tr>
                                        <?php endif; ?>
                                    </table>
                                    <?php if(isset($gateway->data)): ?>
                                        
                                    <?php if(!empty($gateway->data) && $gateway->type == 0): ?>
                                    <div class="row">
                                        <div class="col-sm-12 bg-white">
                                            <p><b><?php echo e(__('Payment Info')); ?></b></p>
                                            <?php echo e($gateway->data); ?>

                                        </div>
                                    </div>
                                    <?php endif; ?>
                                    <?php endif; ?>
                                </div>
                                    <form action="<?php echo e(route('user.edeposit.deposit')); ?>" method="post" id="payment-form" class="" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                        <div class="form-row">
                                            <input type="hidden" name="type" value="<?php echo e($gateway->type); ?>">
                                            <input type="hidden" name="id" value="<?php echo e($gateway->id); ?>">
                                           
                                            <input type="hidden" name="currency" value="<?php echo e($data->currency->id ?? 0); ?>">
                                            <?php if($gateway->type == 1): ?> 
                                            
                                            <?php if($gateway->id == 2): ?>
                                            <?php
                                            $stripe=true;
                                            ?>
                                            <input type="hidden" id="publishable_key" value="<?php echo e($data->publishable_key ?? ''); ?>">
                                                <label for="card-element">
                                                    <?php echo e(__('Credit or debit card')); ?>

                                                </label>
                                                <div id="card-element">
                                                <!-- A Stripe Element will be inserted here. -->
                                                </div>
                                                <!-- Used to display form errors. -->
                                                <div id="card-errors" role="alert"></div>
                                                <?php else: ?>
                                            <?php
                                            $stripe=false;
                                            ?>    


                                            <?php endif; ?>
                                            <?php else: ?>
                                            <?php
                                            $stripe=false;
                                            ?>
                                                <label for="" class="col-md-12 mb-2"><?php echo e(__('Comment')); ?></label>
                                                <textarea name="comment" id="" cols="30" rows="5" class="form-control <?php $__errorArgs = ['comment'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"></textarea>
                                                <?php $__errorArgs = ['comment'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                                <label for="" class="col-md-12 mb-2"><?php echo e(__('Image')); ?> <small>(*<?php echo e(__('Screenshot')); ?>)</small></label>
                                                <input type="file" class="<?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"  name="image">
                                                <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            <?php endif; ?>
                                            
                                        </div>
                                        <div class="button-btn">
                                            <button class="mt-4 w-100" id="submit_btn"><?php echo e(__('Submit Payment')); ?></button>
                                        </div>
                                        
                                    </form>
                                </div>
                              </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- dahboard area end -->
<?php $__env->stopSection(); ?>
<?php if($stripe == true): ?>
<?php $__env->startPush('js'); ?>
<script src="https://js.stripe.com/v3/"></script>
<script src="<?php echo e(asset('frontend/assets/js/stripe.js')); ?>"></script>
<?php $__env->stopPush(); ?>
<?php endif; ?>
<?php echo $__env->make('layouts.frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\E-Bank\script\resources\views/user/edeposit/payment.blade.php ENDPATH**/ ?>