ok

Mini Shell

Direktori : /home2/selectio/public_html/myclassicfit.com/resources/views/web-views/
Upload File :
Current File : /home2/selectio/public_html/myclassicfit.com/resources/views/web-views/checkout-payment.blade.php

@extends('layouts.front-end.app')

@section('title',\App\CPU\translate('Choose Payment Method'))

@push('css_or_js')
    <style>
        .stripe-button-el {
            display: none !important;
        }

        .razorpay-payment-button {
            display: none !important;
        }
    </style>
    
    
    <style>
        .__h-100px {
    height: 165px !important;
    border: 1px solid black !important;
    text-align: center !important;
    border-radius: 15px !important;
}
    </style>

    {{--stripe--}}
    <script src="https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch"></script>
    <script src="https://js.stripe.com/v3/"></script>
    {{--stripe--}}
@endpush

@section('content')
    <!-- Page Content-->
    <div class="container pb-5 mb-2 mb-md-4 rtl"
         style="text-align: {{Session::get('direction') === "rtl" ? 'right' : 'left'}};">
        <div class="row">
            <div class="col-md-12 mb-5 pt-5">
                <div class="feature_header __feature_header">
                    <span>{{ \App\CPU\translate('payment_method')}}</span>
                </div>
            </div>
            <!-- Sidebar-->
            @include('web-views.partials._order-summary')
            <section class="col-lg-8">
                <div class="checkout_details">
                @include('web-views.partials._checkout-steps',['step'=>3])
                <!-- Payment methods accordion-->
                    <h2 class="h6 pb-3 mb-2 mt-5" >{{\App\CPU\translate('choose_payment')}}</h2>

                    <div class="row g-3">
                        
                        <div class="col-sm-12" >
                            <select name="payment_mode" id="payment_mode" onchange="pay()" class="form-control">
                                <option value="cod">Cash On Delivery</option>
                                    <option value="online">Online Payment</option>
                                    
                            </select>
                        </div>
                        
                        <!--<div class="col-sm-6" id="cod-for-carts">
                                <div class="card cursor-pointer">
                                    <div class="card-body __h-100px">
                                            <button class="btn btn-success click-if-alone" type="submit">
                                                <img width="150" class="__mt-n-10" src="{{asset('public/assets/front-end/img/cod.png')}}"/>
                                                <br><b style="font-size:20px;color:black;">Place Order</b>
                                             
                                            </button>
                                         
                                    </div>
                                </div>
                        </div>-->
                        
                        
                            
                            
                        
                        
                        
                        <div class="col-sm-6" id="phonepe-for-cart">
                                <div class="card cursor-pointer">
                                    <div class="card-body __h-100px" style="border: 2px solid blue;border-radius: 15px;">
                                        <form action="{{route('phonepe-checkout-request')}}" method="POST" class="needs-validation">
                                            <input type="hidden" value="{{ csrf_token() }}" name="_token"/>
                                            <button class="btn btn-block click-if-alone" onclick="paymentProcess()"  type="submit">
                                                <img width="100" class="__mt-n-10" src="public/pay.png"/>
                                            </button>
                                            <button onclick="paymentProcess()"  type="submit" class="btn btn--primary btn-block">
                                PAY NOW
                            </button>
                                        </form>
                                     
                                    </div>
                                </div>
                            </div>
                        
                    
                        @php($config=\App\CPU\Helpers::get_business_settings('cash_on_delivery'))
                        @if(!$cod_not_show && $config['status'])
                        <div id="cod-for-cart" class="col-sm-12">
                            <div class="row g-3">
                            <div class="col-sm-6" >
                                <div class="card cursor-pointer">
                                    <div class="card-body __h-170px" style="display: flex;justify-content: center;border: 2px solid blue;border-radius: 15px;">
                                        <form action="{{route('checkout-complete')}}" method="get" class="needs-validation">
                                            <input type="hidden" name="payment_method" value="cash_on_delivery">
                                            <button class="btn btn-success click-if-alone" type="submit">
                                               <center><img width="150" class="__mt-n-10" src="{{asset('public/assets/front-end/img/cod.png')}}"/></center>
                                           <b style="font-size:12px;color:black;">(Cash On Delivery Charges Rs 100 extra) </b>
                                            
                                            <span class="btn btn--primary btn-block">Place Order</span>
                                            </button>
                                            
                                        </form>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-sm-6" >
                                <div class="card cursor-pointer" >
                                    <div class="card-body __h-170px" style="border: 2px solid blue;height:195px;border-radius: 15px;">
                                            <button class="btn btn-block click-if-alone" >
                                                <img width="100" class="__mt-n-10" src="public/pay.png"/>
                                            </button>
                                    <center><b style="font-size:12px;">(Pay Online No Shipping Cost, No Delivery Charge) </b></center>
                                     <!--Pay Online Choose payment <b>Online</b><br>-->
                                     <span class="btn btn--primary btn-block" onclick="go_online_pay()">Go Online Payment</span>
                                    </div>
                                </div>
                        </div>
                        </div></div>
                        
                        @endif

                        @php($coupon_discount = session()->has('coupon_discount') ? session('coupon_discount') : 0)
                        @php($amount = \App\CPU\CartManager::cart_grand_total() - $coupon_discount)
                        @php($digital_payment=\App\CPU\Helpers::get_business_settings('digital_payment'))

                        @if ($digital_payment['status']==1)
                            @php($config=\App\CPU\Helpers::get_business_settings('wallet_status'))
                            @if($config==1)
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                                <button class="btn btn-block click-if-alone" type="submit"
                                                    data-toggle="modal" data-target="#wallet_submit_button">
                                                    <img width="150" class="__mt-n-10"
                                                        src="{{asset('public/assets/front-end/img/wallet.png')}}"/>
                                                </button>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('offline_payment'))
                            @if(isset($config) && $config['status'])
                                <div class="col-sm-6" id="cod-for-cart">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <form action="{{route('offline-payment-checkout-complete')}}" method="get" class="needs-validation">
                                                <span class="btn btn-block click-if-alone"
                                                        data-toggle="modal" data-target="#offline_payment_submit_button">
                                                    <img width="150" class="__mt-n-10" src="{{asset('public/assets/front-end/img/pay-offline.png')}}"/>
                                                </span>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('ssl_commerz_payment'))
                            @if($config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <form action="{{ url('/pay-ssl') }}" method="POST" class="needs-validation">
                                                <input type="hidden" value="{{ csrf_token() }}" name="_token"/>
                                                <button class="btn btn-block click-if-alone" type="submit">
                                                    <img width="150"
                                                        src="{{asset('public/assets/front-end/img/sslcomz.png')}}"/>
                                                </button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('paypal'))
                            @if($config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <form class="needs-validation" method="POST" id="payment-form"
                                                action="{{route('pay-paypal')}}">
                                                {{ csrf_field() }}
                                                <button class="btn btn-block click-if-alone" type="submit">
                                                    <img width="150"
                                                        src="{{asset('public/assets/front-end/img/paypal.png')}}"/>
                                                </button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            @endif



                            @php($config=\App\CPU\Helpers::get_business_settings('stripe'))
                            @if($config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <button class="btn btn-block click-if-alone" type="button" id="checkout-button">
                                                {{-- <i class="czi-card"></i> {{\App\CPU\translate('Credit / Debit card ( Stripe )')}} --}}
                                                <img width="150"
                                                src="{{asset('public/assets/front-end/img/stripe.png')}}"/>
                                            </button>
                                            <script type="text/javascript">
                                                // Create an instance of the Stripe object with your publishable API key
                                                var stripe = Stripe('{{$config['published_key']}}');
                                                var checkoutButton = document.getElementById("checkout-button");
                                                checkoutButton.addEventListener("click", function () {
                                                    fetch("{{route('pay-stripe')}}", {
                                                        method: "GET",
                                                    }).then(function (response) {
                                                        console.log(response)
                                                        return response.text();
                                                    }).then(function (session) {
                                                        /*console.log(JSON.parse(session).id)*/
                                                        return stripe.redirectToCheckout({sessionId: JSON.parse(session).id});
                                                    }).then(function (result) {
                                                        if (result.error) {
                                                            alert(result.error.message);
                                                        }
                                                    }).catch(function (error) {
                                                        console.error("{{\App\CPU\translate('Error')}}:", error);
                                                    });
                                                });
                                            </script>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('razor_pay'))
                            @php($inr=\App\Model\Currency::where(['symbol'=>'₹'])->first())
                            @php($usd=\App\Model\Currency::where(['code'=>'USD'])->first())
                            @if(isset($inr) && isset($usd) && $config['status'])

                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <form action="{!!route('payment-razor')!!}" method="POST">
                                            @csrf
                                            <!-- Note that the amount is in paise = 50 INR -->
                                                <!--amount need to be in paisa-->
                                                <script src="https://checkout.razorpay.com/v1/checkout.js"
                                                        data-key="{{ \Illuminate\Support\Facades\Config::get('razor.razor_key') }}"
                                                        data-amount="{{(round(\App\CPU\Convert::usdToinr($amount)))*100}}"
                                                        data-buttontext="Pay {{(\App\CPU\Convert::usdToinr($amount))*100}} INR"
                                                        data-name="{{\App\Model\BusinessSetting::where(['type'=>'company_name'])->first()->value}}"
                                                        data-description=""
                                                        data-image="{{asset('storage/app/public/company/'.\App\Model\BusinessSetting::where(['type'=>'company_web_logo'])->first()->value)}}"
                                                        data-prefill.name="{{auth('customer')->user()->f_name}}"
                                                        data-prefill.email="{{auth('customer')->user()->email}}"
                                                        data-theme.color="#ff7529">
                                                </script>
                                            </form>
                                            <button class="btn btn-block click-if-alone" type="button"
                                                    onclick="$('.razorpay-payment-button').click()">
                                                <img width="150"
                                                    src="{{asset('public/assets/front-end/img/razor.png')}}"/>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('paystack'))
                            @if($config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            @php($config=\App\CPU\Helpers::get_business_settings('paystack'))
                                            @php($order=\App\Model\Order::find(session('order_id')))
                                            <form method="POST" action="{{ route('paystack-pay') }}" accept-charset="UTF-8"
                                                class="form-horizontal"
                                                role="form">
                                                @csrf
                                                <div class="row">
                                                    <div class="col-md-8 col-md-offset-2">
                                                        <input type="hidden" name="email"
                                                            value="{{auth('customer')->user()->email}}"> {{-- required --}}
                                                        <input type="hidden" name="orderID"
                                                            value="{{session('cart_group_id')}}">
                                                        <input type="hidden" name="amount"
                                                            value="{{\App\CPU\Convert::usdTozar($amount*100)}}"> {{-- required in kobo --}}
                                                        <input type="hidden" name="quantity" value="1">
                                                        <input type="hidden" name="currency"
                                                            value="{{\App\CPU\Helpers::currency_code()}}">
                                                        <input type="hidden" name="metadata"
                                                            value="{{ json_encode($array = ['key_name' => 'value',]) }}"> {{-- For other necessary things you want to add to your payload. it is optional though --}}
                                                        <input type="hidden" name="reference"
                                                            value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
                                                        <p>
                                                            <button class="paystack-payment-button" style="display: none"
                                                                    type="submit"
                                                                    value="Pay Now!"></button>
                                                        </p>
                                                    </div>
                                                </div>
                                            </form>
                                            <button class="btn btn-block click-if-alone" type="button"
                                                    onclick="$('.paystack-payment-button').click()">
                                                <img width="100"
                                                    src="{{asset('public/assets/front-end/img/paystack.png')}}"/>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($myr=\App\Model\Currency::where(['code'=>'MYR'])->first())
                            @php($usd=\App\Model\Currency::where(['code'=>'usd'])->first())
                            @php($config=\App\CPU\Helpers::get_business_settings('senang_pay'))
                            @if(isset($myr) && isset($usd) && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            @php($config=\App\CPU\Helpers::get_business_settings('senang_pay'))
                                            @php($user=auth('customer')->user())
                                            @php($secretkey = $config['secret_key'])
                                            @php($data = new \stdClass())
                                            @php($data->merchantId = $config['merchant_id'])
                                            @php($data->detail = 'payment')
                                            @php($data->order_id = session('cart_group_id'))
                                            @php($data->amount = \App\CPU\Convert::usdTomyr($amount))
                                            @php($data->name = $user->f_name.' '.$user->l_name)
                                            @php($data->email = $user->email)
                                            @php($data->phone = $user->phone)
                                            @php($data->hashed_string = md5($secretkey . urldecode($data->detail) . urldecode($data->amount) . urldecode($data->order_id)))

                                            <form name="order" method="post"
                                                action="https://{{env('APP_MODE')=='live'?'app.senangpay.my':'sandbox.senangpay.my'}}/payment/{{$config['merchant_id']}}">
                                                <input type="hidden" name="detail" value="{{$data->detail}}">
                                                <input type="hidden" name="amount" value="{{$data->amount}}">
                                                <input type="hidden" name="order_id" value="{{$data->order_id}}">
                                                <input type="hidden" name="name" value="{{$data->name}}">
                                                <input type="hidden" name="email" value="{{$data->email}}">
                                                <input type="hidden" name="phone" value="{{$data->phone}}">
                                                <input type="hidden" name="hash" value="{{$data->hashed_string}}">
                                            </form>

                                            <button class="btn btn-block click-if-alone" type="button"
                                                    onclick="document.order.submit()">
                                                <img width="100"
                                                    src="{{asset('public/assets/front-end/img/senangpay.png')}}"/>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('paymob_accept'))
                            @if($config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <form class="needs-validation" method="POST" id="payment-form-paymob"
                                                action="{{route('paymob-credit')}}">
                                                {{ csrf_field() }}
                                                <button class="btn btn-block click-if-alone" type="submit">
                                                    <img width="150"
                                                        src="{{asset('public/assets/front-end/img/paymob.png')}}"/>
                                                </button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('bkash'))
                            @if(isset($config)  && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <a class="btn btn-block click-if-alone" href="{{route('bkash-make-payment')}}">
                                                <img width="100" src="{{asset('public/assets/front-end/img/bkash.png')}}"/>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('paytabs'))
                            @if(isset($config)  && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <button class="btn btn-block click-if-alone __mt-n-11" onclick="location.href='{{route('paytabs-payment')}}'">
                                                <img width="150"
                                                    src="{{asset('public/assets/front-end/img/paytabs.png')}}"/>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            {{--@php($config=\App\CPU\Helpers::get_business_settings('fawry_pay'))
                            @if(isset($config)  && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <button class="btn btn-block __mt-n-11" onclick="location.href='{{route('fawry')}}'">
                                                <img width="150" src="{{asset('public/assets/front-end/img/fawry.svg')}}"/>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            @endif--}}

                            @php($config=\App\CPU\Helpers::get_business_settings('mercadopago'))
                            @if(isset($config) && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body pt-2 __h-100px">
                                            <a class="btn btn-block click-if-alone" href="{{route('mercadopago.index')}}">
                                                <img width="150"
                                                    src="{{asset('public/assets/front-end/img/MercadoPago_(Horizontal).svg')}}"/>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('flutterwave'))
                            @if(isset($config) && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body pt-2 __h-100px">
                                            <form method="POST" action="{{ route('flutterwave_pay') }}">
                                                {{ csrf_field() }}

                                                <button class="btn btn-block click-if-alone" type="submit">
                                                    <img width="200"
                                                        src="{{asset('public/assets/front-end/img/fluterwave.png')}}"/>
                                                </button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('paytm'))
                            @if(isset($config) && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <a class="btn btn-block click-if-alone" href="{{route('paytm-payment')}}">
                                                <img class="__inline-55" src="{{asset('public/assets/front-end/img/paytm.png')}}"/>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            @endif

                            @php($config=\App\CPU\Helpers::get_business_settings('liqpay'))
                            @if(isset($config) && $config['status'])
                                <div class="col-sm-6">
                                    <div class="card cursor-pointer">
                                        <div class="card-body __h-100px">
                                            <a class="btn btn-block click-if-alone" href="{{route('liqpay-payment')}}">
                                                <img class="__inline-55 mt-0" src="{{asset('public/assets/front-end/img/liqpay4.png')}}"/>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            @endif
                        @endif
                        
                        
                        
                    </div>
                    <!--<br>
                    <div class="feature_header __feature_header" style="margin-top: 5%;text-align: center;">
                        <span>Payment method</span>
                    </div>
                    <div class="row">
                        <div class="col-lg-6">
                            <h4 style="margin-top: 8%;font-family: 'sixvalley-icons';font-weight: 600;">Bank Account Details :</h4>
                            
                            <table>
                                <tr>
                                    <td style="width: 40%;"> <b>Account No</b></td>
                                    <td style="width: 14%;"> : </td>
                                    <td><b>30886005803</b></td>
                                </tr>
                                <tr>
                                    <td><b>Name</b> </td>
                                    <td> : </td>
                                    <td><b>DEVARAJ.N</b></td>
                                </tr>
                                <tr>
                                    <td><b>Ifsc Code</b></td>
                                    <td> : </td>
                                    <td><b>SBIN0005381</b></td>
                                </tr>
                                <tr>
                                    <td><b>Bank name</b></td>
                                    <td> : </td>
                                    <td><b>STATE BANK OF INDIA</b></td>
                                </tr>
                                <tr>
                                    <td><b>Branch</b></td>
                                    <td> : </td>
                                    <td><b>JALAKANDAPURAM</b></td>
                                </tr>
                            </table>
                            <h4 style="margin-top: 8%;font-family: 'sixvalley-icons';font-weight: 600;">
                                Once Complete Payment using Bank Detail (or) QR Code Take Screenshot and Upload here.
                            </h4>
                            
                            <form>
                                <div class="form-control">
                                    <lable>Enter Order Id: </lable>
                                    <input type="text" name="" id="" placeholder="Enter Order Id">
                                </div>
                                <br>
                                <lable>Upload Screenshot </lable>
                                <input type="file" id="myfile" name="myfile" accept="image/*">
                                
                                <button class="btn btn-secondary btn-block" type="submit" style="margin-top: 7%; left: unset; right: 0;top:0">
                                    Submit
                                </button>
                                
                            </form>
                            
                        </div>
                        <div class="col-lg-6">
                            <h4 style="margin-top: 8%;font-family: 'sixvalley-icons';font-weight: 600;text-align: center;">QR CODE :</h4>
                            <img src="resources/views/web-views/barcode/qrcode.png" style="width: 45%;margin-left: 25%;">
                            <h4 style="margin-top: 8%;font-family: 'sixvalley-icons';font-weight: 600;text-align: center;">UPI ID :</h4>
                            <p style="text-align: center;font-size: 20px;">devarajdevaraj635@oksbi</p>
                        </div>
                    </div>-->
                    <!-- Navigation (desktop)-->
                    <div class="row justify-content-center">
                        <div class="col-md-6 text-center mt-5">
                            <span class="btn btn--primary btn-block" onclick="go_cod_pay()">
                                <span class="d-none d-sm-inline" >Back To Cash on Delivery</span>
                                <span class="d-inline d-sm-none" >Back To Cash on Delivery</span>
                            </span><br>
                            <a class="btn btn--primary btn-block" href="{{route('checkout-details')}}">
                                <span class="d-none d-sm-inline">{{\App\CPU\translate('Back to Shipping')}}</span>
                                <span class="d-inline d-sm-none">{{\App\CPU\translate('Back to Shipping')}}</span>
                            </a>
                        </div>
                    </div>
                </div>
            </section>
            
        </div>
    </div>

    <!-- wallet modal -->
  <div class="modal fade" id="wallet_submit_button" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">{{\App\CPU\translate('wallet_payment')}}</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        @php($customer_balance = auth('customer')->user()->wallet_balance)
        @php($remain_balance = $customer_balance - $amount)
        <form action="{{route('checkout-complete-wallet')}}" method="get" class="needs-validation">
            @csrf
            <div class="modal-body">
                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('your_current_balance')}}</label>
                        <input class="form-control" type="text" value="{{\App\CPU\Helpers::currency_converter($customer_balance)}}" readonly>
                    </div>
                </div>

                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('order_amount')}}</label>
                        <input class="form-control" type="text" value="{{\App\CPU\Helpers::currency_converter($amount)}}" readonly>
                    </div>
                </div>
                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('remaining_balance')}}</label>
                        <input class="form-control" type="text" value="{{\App\CPU\Helpers::currency_converter($remain_balance)}}" readonly>
                        @if ($remain_balance<0)
                        <label class="__color-crimson">{{\App\CPU\translate('you do not have sufficient balance for pay this order!!')}}</label>
                        @endif
                    </div>
                </div>

            </div>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">{{\App\CPU\translate('close')}}</button>
            <button type="submit" class="btn btn--primary" {{$remain_balance>0? '':'disabled'}}>{{\App\CPU\translate('submit')}}</button>
            </div>
        </form>
      </div>
    </div>
  </div>

    <!-- offline payment modal -->
  <div class="modal fade" id="offline_payment_submit_button" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">{{\App\CPU\translate('offline_payment')}}</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <form action="{{route('offline-payment-checkout-complete')}}" method="post" class="needs-validation">
            @csrf
            <div class="modal-body">
                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('payment_by')}}</label>
                        <input class="form-control" type="text" name="payment_by" required>
                    </div>
                </div>
                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('transaction_ID')}}</label>
                        <input class="form-control" type="text" name="transaction_ref" required>
                    </div>
                </div>
                <div class="form-row">
                    <div class="form-group col-12">
                        <label for="">{{\App\CPU\translate('payment_note')}}</label>
                        <textarea name="payment_note" id="" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="hidden" value="offline_payment" name="payment_method">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">{{\App\CPU\translate('close')}}</button>
            <button type="submit" class="btn btn--primary">{{\App\CPU\translate('submit')}}</button>
            </div>
        </form>
      </div>
    </div>
  </div>
@endsection

@push('script')
    <script>
        setTimeout(function () {
            $('.stripe-button-el').hide();
            $('.razorpay-payment-button').hide();
        }, 10)
    </script>

    <script type="text/javascript">

  $(document).ready(function(){
      
                /*$("#next-page").click(function(){
                let total = $('.checkout_details .click-if-alone').length;
                if (Number.parseInt(total) < 2) {
                $('.click-if-alone').click()
                $('.checkout_details').html('<h1>{{\App\CPU\translate('Your Order Is Proccessing')}}......</h1>');
            }
        });*/
        pay();
  });

    /* $("#next-page").click(function(){
          
             $('.click-if-alone').click();
        });*/
          /*click_if_alone();*/
          
          
          
          
        function paymentProcess(){
            
            $("#cod-btn").hide();
        }  
        
        function go_online_pay(){
            $('#payment_mode').val('online');
            $('#payment_mode').trigger('change');
        }
        
        function go_cod_pay(){
            $('#payment_mode').val('cod');
            $('#payment_mode').trigger('change');
        }
          
          
        function pay(){
            var mode=$('#payment_mode').val();
            console.log('payment Mode Seleted :'+$('#payment_mode').val());
            if(mode=='online'){
                $('#cod-for-cart').hide();
                $('#phonepe-for-cart').show();
                $('#cod_dc').hide();
                
            var amount =$('#f_amount').text();    
            amount=amount-100;
                
                $('#cart_value').text('₹'+amount);
                
            }else{
                $('#cod-for-cart').show();
                $('#phonepe-for-cart').hide();
                $('#cod_dc').show();
                $('#cart_value').text($('#o_amount').text());
                
            }
            
            
            
        }
          
          
    </script>
    
    
     <!--<script type="text/javascript">
        function click_if_alone() {
            let total = $('.checkout_details .click-if-alone').length;
            if (Number.parseInt(total) < 2) {
                $('.click-if-alone').click()
                $('.checkout_details').html('<h1>{{\App\CPU\translate('Redirecting_to_the_payment')}}......</h1>');
            }
        }
        click_if_alone();

    </script>-->
@endpush

Zerion Mini Shell 1.0