123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712 |
- <?php $__env->startSection('content'); ?>
- <section class="mb-4 pt-5">
- <div class="container">
- <div class="row">
- <div class="col-xl-8 mx-auto">
- <div class="row aiz-steps arrow-divider">
- <div class="col done">
- <div class="text-success text-center">
- <i class="la-3x las la-shopping-cart mb-2"></i>
- <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('1. My Cart')); ?></h3>
- </div>
- </div>
- <div class="col done">
- <div class="text-success text-center">
- <i class="la-3x las la-map mb-2"></i>
- <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('2. Shipping info')); ?></h3>
- </div>
- </div>
- <div class="col done">
- <div class="text-success text-center">
- <i class="la-3x las la-truck mb-2"></i>
- <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('3. Delivery info')); ?></h3>
- </div>
- </div>
- <div class="col active">
- <div class="text-primary text-center">
- <i class="la-3x las la-credit-card mb-2"></i>
- <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('4. Payment')); ?></h3>
- </div>
- </div>
- <div class="col">
- <div class="text-center">
- <i class="la-3x las la-check-circle mb-2 opacity-50"></i>
- <h3 class="fs-14 fw-600 d-none d-lg-block opacity-50"><?php echo e(translate('5. Confirmation')); ?>
- </h3>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <section class="mb-4">
- <div class="container text-left">
- <div class="row">
- <div class="col-lg-8">
- <form action="<?php echo e(route('payment.checkout')); ?>" class="form-default" role="form" method="POST"
- id="checkout-form">
- <?php echo csrf_field(); ?>
- <input type="hidden" name="owner_id" value="<?php echo e($carts[0]['owner_id']); ?>">
- <div class="card rounded border-0 shadow-sm">
- <div class="card-header p-3">
- <h3 class="fs-16 fw-600 mb-0">
- <?php echo e(translate('Any additional info?')); ?>
- </h3>
- </div>
- <div class="form-group px-3 pt-3">
- <textarea name="additional_info" rows="5" class="form-control"
- placeholder="<?php echo e(translate('Type your text')); ?>"></textarea>
- </div>
- <div class="card-header p-3">
- <h3 class="fs-16 fw-600 mb-0">
- <?php echo e(translate('Select a payment option')); ?>
- </h3>
- </div>
- <div class="card-body text-center">
- <div class="row">
- <div class="col-xxl-8 col-xl-10 mx-auto">
- <div class="row gutters-10">
- <?php if(get_setting('paypal_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="paypal" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/paypal.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Paypal')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('stripe_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="stripe" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/stripe.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Stripe')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('mercadopago_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="mercadopago" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/mercadopago.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Mercadopago')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('sslcommerz_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="sslcommerz" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/sslcommerz.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('sslcommerz')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('instamojo_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="instamojo" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/instamojo.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Instamojo')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('razorpay') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="razorpay" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/rozarpay.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Razorpay')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('paystack') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="paystack" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/paystack.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Paystack')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('voguepay') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="voguepay" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/vogue.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('VoguePay')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('payhere') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="payhere" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/payhere.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('payhere')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('ngenius') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="ngenius" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/ngenius.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('ngenius')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('iyzico') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="iyzico" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/iyzico.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Iyzico')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('nagad') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="nagad" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/nagad.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Nagad')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('bkash') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="bkash" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/bkash.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Bkash')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('aamarpay') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="aamarpay" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/aamarpay.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Aamarpay')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('authorizenet') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="authorizenet" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/authorizenet.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Authorize Net')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('payku') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="payku" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/payku.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Payku')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(addon_is_activated('african_pg')): ?>
- <?php if(get_setting('mpesa') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="mpesa" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/mpesa.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('mpesa')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('flutterwave') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="flutterwave" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/flutterwave.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('flutterwave')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('payfast') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="payfast" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/payfast.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('payfast')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php endif; ?>
- <?php if(addon_is_activated('paytm') && get_setting('paytm_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="paytm" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/paytm.jpg')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Paytm')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(addon_is_activated('paytm') && get_setting('toyyibpay_payment') == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="toyyibpay" class="online_payment" type="radio"
- name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/toyyibpay.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('ToyyibPay')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php if(get_setting('cash_payment') == 1): ?>
- <?php
- $digital = 0;
- $cod_on = 1;
- foreach ($carts as $cartItem) {
- $product = \App\Models\Product::find($cartItem['product_id']);
- if ($product['digital'] == 1) {
- $digital = 1;
- }
- if ($product['cash_on_delivery'] == 0) {
- $cod_on = 0;
- }
- }
- ?>
- <?php if($digital != 1 && $cod_on == 1): ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="cash_on_delivery" class="online_payment"
- type="radio" name="payment_option" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(static_asset('assets/img/cards/cod.png')); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e(translate('Cash on Delivery')); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endif; ?>
- <?php endif; ?>
- <?php if(Auth::check()): ?>
- <?php if(addon_is_activated('offline_payment')): ?>
- <?php $__currentLoopData = \App\Models\ManualPaymentMethod::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <div class="col-6 col-md-4">
- <label class="aiz-megabox d-block mb-3">
- <input value="<?php echo e($method->heading); ?>" type="radio"
- name="payment_option"
- onchange="toggleManualPaymentData(<?php echo e($method->id); ?>)"
- data-id="<?php echo e($method->id); ?>" checked>
- <span class="d-block aiz-megabox-elem p-3">
- <img src="<?php echo e(uploaded_asset($method->photo)); ?>"
- class="img-fluid mb-2">
- <span class="d-block text-center">
- <span
- class="d-block fw-600 fs-15"><?php echo e($method->heading); ?></span>
- </span>
- </span>
- </label>
- </div>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- <?php $__currentLoopData = \App\Models\ManualPaymentMethod::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <div id="manual_payment_info_<?php echo e($method->id); ?>"
- class="d-none">
- <?php echo $method->description ?>
- <?php if($method->bank_info != null): ?>
- <ul>
- <?php $__currentLoopData = json_decode($method->bank_info); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <li><?php echo e(translate('Bank Name')); ?> -
- <?php echo e($info->bank_name); ?>,
- <?php echo e(translate('Account Name')); ?> -
- <?php echo e($info->account_name); ?>,
- <?php echo e(translate('Account Number')); ?> -
- <?php echo e($info->account_number); ?>,
- <?php echo e(translate('Routing Number')); ?> -
- <?php echo e($info->routing_number); ?></li>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- </ul>
- <?php endif; ?>
- </div>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- <?php endif; ?>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <?php if(addon_is_activated('offline_payment')): ?>
- <div class="d-none mb-3 rounded border bg-white p-3 text-left">
- <div id="manual_payment_description">
- </div>
- </div>
- <?php endif; ?>
- <?php if(Auth::check() && get_setting('wallet_system') == 1): ?>
- <div class="separator mb-3">
- <span class="bg-white px-3">
- <span class="opacity-60"><?php echo e(translate('Or')); ?></span>
- </span>
- </div>
- <div class="py-4 text-center">
- <div class="h6 mb-3">
- <span class="opacity-80"><?php echo e(translate('Your wallet balance :')); ?></span>
- <span
- class="fw-600"><?php echo e(single_price(Auth::user()->balance)); ?></span>
- </div>
- <?php if(Auth::user()->balance < $total): ?>
- <button type="button" class="btn btn-secondary" disabled>
- <?php echo e(translate('Insufficient balance')); ?>
- </button>
- <?php else: ?>
- <button type="button" onclick="use_wallet()" class="btn btn-primary fw-600">
- <?php echo e(translate('Pay with wallet')); ?>
- </button>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <div class="pt-3">
- <label class="aiz-checkbox">
- <input type="checkbox" required id="agree_checkbox" checked>
- <span class="aiz-square-check"></span>
- <span><?php echo e(translate('I agree to the')); ?></span>
- </label>
- <a href="<?php echo e(route('terms')); ?>"><?php echo e(translate('terms and conditions')); ?></a>,
- <a href="<?php echo e(route('returnpolicy')); ?>"><?php echo e(translate('return policy')); ?></a> &
- <a href="<?php echo e(route('privacypolicy')); ?>"><?php echo e(translate('privacy policy')); ?></a>
- </div>
- <div class="row align-items-center pt-3">
- <div class="col-6">
- <a href="<?php echo e(route('home')); ?>" class="link link--style-3">
- <i class="las la-arrow-left"></i>
- <?php echo e(translate('Return to shop')); ?>
- </a>
- </div>
- <div class="col-6 text-right">
- <button type="button" onclick="submitOrder(this)"
- class="btn btn-primary fw-600"><?php echo e(translate('Complete Order')); ?></button>
- </div>
- </div>
- </form>
- </div>
- <div class="col-lg-4 mt-lg-0 mt-4" id="cart_summary">
- <?php echo $__env->make('frontend.partials.cart_summary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
- </div>
- </div>
- </div>
- <div class="modal fade" id="request_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
- aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Transaction password')); ?></h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
- </div>
- <form class="" action="javascript:;" method="post">
- <?php echo csrf_field(); ?>
- <div class="modal-body gry-bg px-3 pt-3">
- <div class="row">
- <div class="col-md-9">
- <input type="password" lang="en" class="form-control mb-3" id="tpwd" name="tpwd"
- placeholder="<?php echo e(translate('Transaction password')); ?>" max=6 required>
- </div>
- </div>
-
- <div class="form-group text-right">
- <button type="button" onclick="check_pwd()" class="btn btn-sm btn-primary"><?php echo e(translate('submit')); ?></button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </section>
- <?php $__env->stopSection(); ?>
- <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js"></script>
- <?php $__env->startSection('script'); ?>
- <script type="text/javascript">
-
- function show_request_modal() {
- $('#request_modal').modal('show');
- }
-
- $(document).ready(function() {
- $(".online_payment").click(function() {
- $('#manual_payment_description').parent().addClass('d-none');
- });
- toggleManualPaymentData($('input[name=payment_option]:checked').data('id'));
- });
- var minimum_order_amount_check = <?php echo e(get_setting('minimum_order_amount_check') == 1 ? 1 : 0); ?>;
- var minimum_order_amount =
- <?php echo e(get_setting('minimum_order_amount_check') == 1 ? get_setting('minimum_order_amount') : 0); ?>;
- function use_wallet() {
-
- var tpwd = '<?php echo e($tpwd); ?>'
- if (tpwd == "") {
- location.href="/user/transaction";
- return;
- }
- $('#request_modal').modal('show');
- $('input[name=payment_option]').val('wallet');
- // if ($('#agree_checkbox').is(":checked")) {
- // ;
- // if (minimum_order_amount_check && $('#sub_total').val() < minimum_order_amount) {
- // AIZ.plugins.notify('danger',
- // '<?php echo e(translate('You order amount is less then the minimum order amount')); ?>');
- // } else {
- // $('#checkout-form').submit();
- // }
- // } else {
- // AIZ.plugins.notify('danger', '<?php echo e(translate('You need to agree with our policies')); ?>');
- // }
- }
-
- function submitOrder(el) {
- $(el).prop('disabled', true);
- var tpwd = '<?php echo e($tpwd); ?>'
- if (tpwd == "") {
- location.href="/user/transaction";
- return;
- }
- $('#request_modal').modal('show');
- }
-
- function check_pwd()
- {
- var tpwd = '<?php echo e($tpwd); ?>'
- var pwd = $("#tpwd").val();
- if (md5(pwd) != tpwd) {
- AIZ.plugins.notify('danger',
- '<?php echo e(translate('password error')); ?>');
- return;
- }
- if ($('#agree_checkbox').is(":checked")) {
- if (minimum_order_amount_check && $('#sub_total').val() < minimum_order_amount) {
- AIZ.plugins.notify('danger',
- '<?php echo e(translate('You order amount is less then the minimum order amount')); ?>');
- } else {
- $('#checkout-form').submit();
- }
- } else {
- AIZ.plugins.notify('danger', '<?php echo e(translate('You need to agree with our policies')); ?>');
- $(el).prop('disabled', false);
- }
- }
- function toggleManualPaymentData(id) {
- if (typeof id != 'undefined') {
- $('#manual_payment_description').parent().removeClass('d-none');
- $('#manual_payment_description').html($('#manual_payment_info_' + id).html());
- }
- }
- $(document).on("click", "#coupon-apply", function() {
- var data = new FormData($('#apply-coupon-form')[0]);
- $.ajax({
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
- },
- method: "POST",
- url: "<?php echo e(route('checkout.apply_coupon_code')); ?>",
- data: data,
- cache: false,
- contentType: false,
- processData: false,
- success: function(data, textStatus, jqXHR) {
- AIZ.plugins.notify(data.response_message.response, data.response_message.message);
- $("#cart_summary").html(data.html);
- }
- })
- });
- $(document).on("click", "#coupon-remove", function() {
- var data = new FormData($('#remove-coupon-form')[0]);
- $.ajax({
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
- },
- method: "POST",
- url: "<?php echo e(route('checkout.remove_coupon_code')); ?>",
- data: data,
- cache: false,
- contentType: false,
- processData: false,
- success: function(data, textStatus, jqXHR) {
- $("#cart_summary").html(data);
- }
- })
- })
- </script>
- <?php $__env->stopSection(); ?>
- <?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/payment_select.blade.php ENDPATH**/ ?>
|