<style>
    .modal-dialog {
        max-width: 1000px;
    }
</style>
<?php
    if (Settings('hide_multicurrency') == 1) {
  $symbol = auth()->user()->currency->symbol;
    }else{
      $symbol =     Settings('currency_symbol');
    }
?>
<div class="main_content_iner main_content_padding">

    <div class="dashboard_lg_card">
        <div class="container-fluid g-0">
            <div class="row">
                <div class="col-12">
                    <div>
                        <div class="row">
                            <div class="col-12">
                                <div class="section__title3 mb_40">
                                    <h3 class="mb-0"><?php echo e(__('payment.Fund Deposit')); ?></h3>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xl-12">
                                <form action="<?php echo e(route('depositSelectOption')); ?>" method="post">
                                    <div class="single_totl_warp col-lg-12 ps-0">
                                        <?php echo csrf_field(); ?>

                                        <h3 class="font_18 mb-2"><?php echo e(__('payment.Deposit Amount')); ?>

                                            (<?php echo e($symbol); ?>)

                                            <span
                                                class="text-danger">*</span></h3>
                                        <div class="input-group mb-3 input-group-lg deposit_save_info row-gap-4">

                                            <input
                                                placeholder="<?php echo e($symbol); ?>"
                                                name="deposit_amount" type="number" step="any"
                                                min="1" value="<?php echo e(!empty($amount)?$amount:''); ?>"
                                                class="primary_input w-75"
                                                required>

                                            <div class="input-group-prepend">
                                                <button type="submit" style="margin-bottom: 30px;"
                                                        class="theme_btn btn-sm  small_btn2   "><?php echo e(__('payment.Save Info')); ?> </button>

                                            </div>
                                            <strong
                                                class="text-danger"><?php echo e($errors->first('deposit_amount')); ?></strong>

                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <?php if(!empty($amount)): ?>
                            <div class="row">
                                <div class="col-12">
                                    <div class="">
                                        <div class="row">
                                            <div class="col-12">
                                                <div class="section__title3 mb_40">
                                                    <h3 class="mb-0"><?php echo e(__('common.Select')); ?> <?php echo e(__('payment.Payment Method')); ?></h3>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-12">

                                                <div class="deposit_lists_wrapper mb-50">
                                                    <?php if(isset($methods)): ?>
                                                        <?php $__currentLoopData = $methods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <?php
                                                                if (!paymentGateWayCredentialsEmptyCheck($gateway->method)){
                                                                continue;
                                                                }
                                                            ?>
                                                            <div
                                                                class="single_deposite <?php echo e($gateway->method=="Bank Payment"?'p-0 border-0':''); ?>">

                                                                <?php if($gateway->method=="Stripe"): ?>
                                                                    <form action="<?php echo e(route('depositSubmit')); ?>"
                                                                          method="post">
                                                                        <?php echo csrf_field(); ?>
                                                                        <input type="hidden" name="method"
                                                                               value="<?php echo e($gateway->method); ?>">
                                                                        <input type="hidden" name="deposit_amount"
                                                                               value="<?php echo e($amount); ?>">
                                                                        <!-- single_deposite_item  -->
                                                                        <button type="submit" class="">
                                                                            <img
                                                                                src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                alt="">
                                                                        </button>
                                                                        <?php echo csrf_field(); ?>
                                                                        <script
                                                                            src="https://checkout.stripe.com/checkout.js"
                                                                            class="stripe-button"
                                                                            data-key="<?php echo e(getPaymentEnv('STRIPE_KEY')); ?>"
                                                                            data-name="Stripe Payment"
                                                                            data-image="<?php echo e(asset(Settings('favicon') )); ?>"
                                                                            data-locale="auto"
                                                                            data-currency="usd">
                                                                        </script>


                                                                    </form>
                                                                <?php elseif($gateway->method=="MercadoPago"): ?>

                                                                    <div class="">

                                                                        <a href="#" data-bs-toggle="modal"
                                                                           data-bs-target="#MakePaymentFromCreditMercadoPago"
                                                                           class=" ">
                                                                            <img class=" w-100" style="    padding: 0;
                                                                    margin-top: -2px;"
                                                                                 src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                 alt="">
                                                                        </a>
                                                                    </div>


                                                                    <div class="modal fade "
                                                                         id="MakePaymentFromCreditMercadoPago"
                                                                         tabindex="-1"
                                                                         role="dialog"
                                                                         aria-labelledby="exampleModalLabel"
                                                                         aria-hidden="true">
                                                                        <div class="modal-dialog modal-lg"
                                                                             role="document">
                                                                            <div class="modal-content">
                                                                                <div class="modal-header">
                                                                                    <h5 class="modal-title"
                                                                                        id="">MercadoPago</h5>
                                                                                </div>


                                                                                <div class="modal-body">
                                                                                    <div class="row">
                                                                                        <?php
                                                                                            $total_amount =$amount;
                                                                                            $route =route('depositSubmit');
                                                                                            $payment_type ='Deposit'
                                                                                        ?>
                                                                                        <div class="col-md-12">
                                                                                            <?php echo $__env->make('mercadopago::partials._checkout',compact('total_amount','payment_type'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                                        </div>
                                                                                    </div>


                                                                                </div>

                                                                            </div>
                                                                        </div>
                                                                    </div>

                                                                <?php elseif($gateway->method=="RazorPay"): ?>

                                                                    <?php echo csrf_field(); ?>

                                                                    <div class="single_deposite_item">

                                                                        <div class="deposite_button text-center">
                                                                            <form action="<?php echo e(route('depositSubmit')); ?>"
                                                                                  method="POST">
                                                                                <input type="hidden" name="method"
                                                                                       value="<?php echo e($gateway->method); ?>">
                                                                                <input type="hidden"
                                                                                       name="deposit_amount"
                                                                                       value="<?php echo e($amount); ?>">
                                                                                <button type="button"
                                                                                        class="">
                                                                                    <img class="submitBtn"
                                                                                         src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                         alt="">
                                                                                </button>
                                                                                <?php echo csrf_field(); ?>
                                                                                <script
                                                                                    src="https://checkout.razorpay.com/v1/checkout.js"
                                                                                    data-key="<?php echo e(getPaymentEnv('RAZOR_KEY')); ?>"
                                                                                    data-amount="<?php echo e(convertCurrency(Settings('currency_code') ??'BDT', 'INR', $amount)*100); ?>"
                                                                                    data-name="<?php echo e(Settings('site_title')); ?>"
                                                                                    data-description="Cart Payment"
                                                                                    data-image="<?php echo e(asset(Settings('favicon') )); ?>"
                                                                                    data-prefill.name="<?php echo e(@Auth::user()->username); ?>"
                                                                                    data-prefill.email="<?php echo e(@Auth::user()->email); ?>"
                                                                                    data-theme.color="#ff7529">
                                                                                </script>
                                                                            </form>
                                                                        </div>
                                                                    </div>

                                                                <?php elseif($gateway->method=="PayPal"): ?>

                                                                    <form action="<?php echo e(route('depositSubmit')); ?>"
                                                                          method="post">
                                                                        <?php echo csrf_field(); ?>
                                                                        <input type="hidden" name="method"
                                                                               value="<?php echo e($gateway->method); ?>">
                                                                        <input type="hidden" name="deposit_amount"
                                                                               value="<?php echo e($amount); ?>">
                                                                        <button type="submit" class="">
                                                                            <img class=""
                                                                                 src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                 alt="">
                                                                        </button>

                                                                    </form>
                                                                <?php elseif($gateway->method=="PayTM"): ?>
                                                                    <?php if ($__env->exists('paytm::paytm_btn',['type'=>'deposit','amount'=>$amount])) echo $__env->make('paytm::paytm_btn',['type'=>'deposit','amount'=>$amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    
                                                                    

                                                                    

                                                                <?php elseif($gateway->method=="PayStack"): ?>

                                                                    <form action="<?php echo e(route('depositSubmit')); ?>"
                                                                          method="post">
                                                                        <?php echo csrf_field(); ?>

                                                                        <input type="hidden" name="email"
                                                                               value="<?php echo e(@Auth::user()->email); ?>"> 
                                                                        <input type="hidden" name="orderID"
                                                                               value="<?php echo e(md5(uniqid(rand(), true))); ?>">
                                                                        <input type="hidden" name="amount"
                                                                               value="<?php echo e($amount*100); ?>">
                                                                        <input type="hidden" name="deposit_amount"
                                                                               value="<?php echo e($amount*100); ?>">

                                                                        <input type="hidden" name="currency"
                                                                               value="<?php echo e(Settings('currency_code')); ?>">
                                                                        <input type="hidden" name="metadata"
                                                                               value="<?php echo e(json_encode($array = ['type' => 'Deposit',])); ?>">
                                                                        <input type="hidden" name="reference"
                                                                               value="<?php echo e(Paystack::genTranxRef()); ?>"> 

                                                                        <input type="hidden" name="method"
                                                                               value="<?php echo e($gateway->method); ?>">

                                                                        <button type="submit" class="">
                                                                            <img
                                                                                src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                alt="">
                                                                        </button>

                                                                    </form>

                                                                <?php elseif($gateway->method == 'Authorize.Net'): ?>
                                                                    <?php if ($__env->exists('authorizenet::diposit_form',['gateway' => $gateway, 'amount' => $amount])) echo $__env->make('authorizenet::diposit_form',['gateway' => $gateway, 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'Braintree'): ?>
                                                                    <?php if ($__env->exists('braintree::disposit',['gateway' => $gateway, 'amount' => $amount])) echo $__env->make('braintree::disposit',['gateway' => $gateway, 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'Mollie'): ?>
                                                                    <?php if ($__env->exists('mollie::deposit',['gateway' => $gateway, 'amount' => $amount])) echo $__env->make('mollie::deposit',['gateway' => $gateway, 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'Flutterwave'): ?>
                                                                    <?php if ($__env->exists('flutterwave::deposit',['gateway' => $gateway, 'amount' => $amount])) echo $__env->make('flutterwave::deposit',['gateway' => $gateway, 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'Jazz Cash'): ?>
                                                                    <?php if ($__env->exists('jazzcash::deposit',['gateway' => $gateway, 'amount' => $amount])) echo $__env->make('jazzcash::deposit',['gateway' => $gateway, 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'Coinbase'): ?>
                                                                    <?php if ($__env->exists('coinbase::deposit',['gateway' => $gateway,'amount' => $amount])) echo $__env->make('coinbase::deposit',['gateway' => $gateway,'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method == 'AmazonPayment'): ?>
                                                                    <?php echo $__env->make("amazonpayment::_payment",['gateway' => $gateway, 'location' => 'deposit', 'amount' => $amount], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                                <?php elseif($gateway->method=="Bank Payment"): ?>
                                                                    <form class="w-100" action="" method="post">
                                                                        <?php echo csrf_field(); ?>

                                                                        <a href="#" data-bs-toggle="modal"
                                                                           data-bs-target="#bankModel"
                                                                           class="payment_btn_text2 w-100">
                                                                            <?php echo e(__('payment.Bank Payment')); ?>

                                                                        </a>
                                                                    </form>
                                                                <?php else: ?>

                                                                    <form action="<?php echo e(route('depositSubmit')); ?>"
                                                                          method="post">
                                                                        <?php echo csrf_field(); ?>
                                                                        <input type="hidden" name="method"
                                                                               value="<?php echo e($gateway->method); ?>">
                                                                        <input type="hidden" name="deposit_amount"
                                                                               value="<?php echo e($amount); ?>">
                                                                        <button type="submit" class="">
                                                                            <img
                                                                                src="<?php echo e(asset($gateway->logo)); ?>"
                                                                                alt="">
                                                                        </button>

                                                                    </form>

                                                                <?php endif; ?>


                                                            </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <?php endif; ?>
                                                </div>
                                            </div>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>


            </div>
        </div>

        <?php if(count($records)!=0): ?>
            <div class="row">
                <div class="col-12">
                    <div class="p-4">
                        <div class="row">
                            <div class="col-12">
                                <div class="section__title3">
                                    <h3 class="mb-0"><?php echo e(__('payment.Deposit history')); ?></h3>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xl-12">
                                <div class="table-responsive">
                                    <table class="table custom_table3 mb-0">
                                        <thead>
                                        <tr>
                                            <th scope="col"><?php echo e(__('common.SL')); ?></th>
                                            <th scope="col"><?php echo e(__('common.Date')); ?></th>
                                            <th scope="col"><?php echo e(__('payment.Amount')); ?>

                                                <?php echo e($symbol); ?>


                                            </th>
                                            <th scope="col"><?php echo e(__('payment.Method')); ?></th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php if(isset($records)): ?>
                                            <?php $__currentLoopData = $records; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$record): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e(@$key+1); ?></td>
                                                    <td><?php echo e(showDate($record->created_at)); ?></td>
                                                    <td><?php echo e(getPriceFormat(@$record->amount)); ?>   </td>
                                                    <td>
                                                        <?php if($record->method=="Bank Payment"): ?>
                                                            <?php echo e(__('payment.Bank Payment')); ?>

                                                        <?php else: ?>
                                                            <?php echo e(@$record->method); ?>

                                                        <?php endif; ?>
                                                    </td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                        </tbody>
                                    </table>
                                    <div class="mt-4">
                                        <?php echo e($records->links()); ?>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    </div>


    <div class="modal fade " id="bankModel" tabindex="-1" role="dialog" aria-labelledby=""
         aria-hidden="true">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">

                <form name="bank_payment" enctype="multipart/form-data" action="<?php echo e(route('depositSubmit')); ?> "
                      class="single_account-form" method="POST">
                    <div class="modal-body">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-md-12 mb-30">
                                <div class="modal-header ps-0">
                                    <h5 class="modal-title" id=""><?php echo e(__('payment.Bank Payment')); ?> </h5>
                                    <button type="button" class="close " data-bs-dismiss="modal">
                                        <i class="ti-close "></i>
                                    </button>

                                </div>
                                <input type="hidden" name="method" value="Bank Payment">
                                <div class="row mt-3">
                                    <div class="col-xl-6 col-md-6">
                                        <label for="name" class="mb-2"><?php echo app('translator')->get('setting.Bank Name'); ?>
                                        </label>
                                        <input type="text" class="primary_input mb_20"
                                               placeholder="<?php echo e(__('setting.Bank Name')); ?>"
                                               name="bank_name" value="<?php echo e(@old('bank_name')); ?>">
                                        <span class="invalid-feedback" role="alert" id="bank_name"></span>
                                    </div>
                                    <div class="col-xl-6 col-md-6">
                                        <label for="name" class="mb-2"><?php echo app('translator')->get('setting.Branch Name'); ?>
                                        </label>
                                        <input type="text" name="branch_name" class="primary_input mb_20"
                                               placeholder="<?php echo e(__('setting.Branch Name')); ?>"
                                               value="<?php echo e(@old('branch_name')); ?>">
                                        <span class="invalid-feedback" role="alert" id="owner_name"></span>
                                    </div>
                                </div>
                                <div class="row mb-20">
                                    <div class="col-xl-6 col-md-6">
                                        <label for="name" class="mb-2"><?php echo app('translator')->get('setting.Account Number'); ?>
                                        </label>
                                        <input type="text" class="primary_input mb_20"
                                               placeholder="<?php echo e(__('setting.Account Number')); ?>" name="account_number"
                                               value="<?php echo e(@old('account_number')); ?>">
                                        <span class="invalid-feedback" role="alert" id="account_number"></span>
                                    </div>
                                    <div
                                        class="col-xl-6 col-md-6">
                                        <label for="name" class="mb-2"><?php echo app('translator')->get('setting.Account Holder'); ?>
                                        </label>
                                        <input type="text" name="account_holder" class="primary_input mb_20"
                                               placeholder="<?php echo app('translator')->get('setting.Account Holder'); ?>"
                                               value="<?php echo e(@old('account_holder')); ?>">
                                        <span class="invalid-feedback" role="alert" id="account_holder"></span>
                                    </div>
                                    <input type="hidden" name="deposit_amount" value="<?php echo e($amount); ?>">
                                </div>
                                <div class="row mb-20">
                                    <div class="col-xl-6 col-md-12">
                                        <label for="name" class="mb-2"><?php echo app('translator')->get('setting.Account Type'); ?>
                                        </label>
                                        <select class="theme_select wide update-select-arrow" name="type"
                                                id="type" style="margin-top: -10px;">
                                            <option
                                                data-display="<?php echo e(__('common.Select')); ?>  <?php echo e(__('setting.Account Type')); ?>"
                                                value=""><?php echo e(__('common.Select')); ?> <?php echo e(__('setting.Account Type')); ?></option>
                                            <option
                                                value="Current Account" <?php echo e((env('ACCOUNT_TYPE')? env('ACCOUNT_TYPE') : '')=='Current Account'?'selected':''); ?>>
                                                <?php echo e(__('payment.Current Account')); ?>


                                            </option>
                                            <option
                                                value="Savings Account" <?php echo e((env('ACCOUNT_TYPE')? env('ACCOUNT_TYPE') : '')=='Savings Account'?'selected':''); ?>>
                                                <?php echo e(__('payment.Savings Account')); ?>

                                            </option>
                                            <option
                                                value="Salary Account" <?php echo e((env('ACCOUNT_TYPE')? env('ACCOUNT_TYPE') : '')=='Salary Account'?'selected':''); ?>>
                                                <?php echo e(__('payment.Salary Account')); ?>


                                            </option>
                                            <option
                                                value="Fixed Deposit" <?php echo e((env('ACCOUNT_TYPE')? env('ACCOUNT_TYPE') : '')=='Fixed Deposit'?'selected':''); ?>>
                                                <?php echo e(__('payment.Fixed Deposit')); ?>

                                            </option>

                                        </select>
                                    </div>
                                    <div
                                        class="col-xl-6 col-md-12">
                                        <label for="name" class="mb-2"><?php echo e(__("payment.Cheque Slip")); ?>

                                            <span>*</span></label>
                                        <input type="file" required name="image"
                                               class="form-control form-control-lg shadow-none mb_20">
                                        <span class="invalid-feedback" role="alert" id="amount_validation"></span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="modal-header ps-0">

                                    <h5 class="modal-title"
                                        id="exampleModalLabel"><?php echo e(__('common.Bank Account Info')); ?></h5>
                                </div>
                                <fieldset class="mt-3">
                                    <table
                                        class="table table-bordered">

                                        <tr>
                                            <td><?php echo app('translator')->get('setting.Bank Name'); ?></td>
                                            <td><?php echo e(getPaymentEnv('BANK_NAME')); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo app('translator')->get('setting.Branch Name'); ?></td>
                                            <td><?php echo e(getPaymentEnv('BRANCH_NAME')); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo app('translator')->get('setting.Account Type'); ?></td>
                                            <td><?php echo e(__('payment.'.getPaymentEnv('ACCOUNT_TYPE'))); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo app('translator')->get('setting.Account Number'); ?></td>
                                            <td><?php echo e(getPaymentEnv('ACCOUNT_NUMBER')); ?></td>
                                        </tr>

                                        <tr>
                                            <td><?php echo app('translator')->get('setting.Account Holder'); ?></td>
                                            <td><?php echo e(getPaymentEnv('ACCOUNT_HOLDER')); ?></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer d-flex justify-content-between">
                        <button type="button" class=" theme_line_btn  btn-sm  small_btn2 "
                                data-bs-dismiss="modal"><?php echo app('translator')->get('common.Cancel'); ?></button>
                        <button class="  theme_btn  btn-sm  small_btn2" type="submit"><?php echo app('translator')->get('payment.Payment'); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>


    <style>
        .modal-dialog {
            max-width: 1000px;
        }
    </style>

</div>
<?php /**PATH /home/minialms/app.minialms.com/resources/views/frontend/infixlmstheme/components/deposit-page-section.blade.php ENDPATH**/ ?>