@extends('frontend.layouts.master') @section('meta_title', 'Checkout' . ' || ' . $setting->app_name) @section('contents')
@php $BasicPaymentSupportedCurrenyListEnum = \Modules\BasicPayment\app\Enums\BasicPaymentSupportedCurrenyListEnum::class; $PaymentGatewaySupportedCurrenyListEnum = \Modules\PaymentGateway\app\Enums\PaymentGatewaySupportedCurrenyListEnum::class; @endphp @if (session()->has('show_stripe_currency') && session()->get('show_stripe_currency'))
Stripe {{ __('Support only those type of currencies') }} : {{ is_array($BasicPaymentSupportedCurrenyListEnum::getStripeSupportedCurrencies()['all_currency_codes']) ? implode(', ', $BasicPaymentSupportedCurrenyListEnum::getStripeSupportedCurrencies()['all_currency_codes']) : '' }}
@endif @if (session()->has('show_mollie_currency') && session()->get('show_mollie_currency'))
{{ __('Mollie') }} {{ __('Support only those type of currencies') }} : {{ is_array($PaymentGatewaySupportedCurrenyListEnum::getMollieSupportedCurrencies()) ? implode(', ', $PaymentGatewaySupportedCurrenyListEnum::getMollieSupportedCurrencies()) : '' }}
@endif @if (session()->has('show_paypal_currency') && session()->get('show_paypal_currency'))
{{ __('Paypal ') }} {{ __('Support only those type of currencies') }} : {{ is_array($BasicPaymentSupportedCurrenyListEnum::getPaypalSupportedCurrencies()) ? implode(', ', $BasicPaymentSupportedCurrenyListEnum::getPaypalSupportedCurrencies()) : '' }}
@endif @if (session()->has('show_instamojo_currency') && session()->get('show_instamojo_currency'))
{{ __('Instamojo ') }} {{ __('Support only those type of currencies') }} : {{ is_array($PaymentGatewaySupportedCurrenyListEnum::getInstamojoSupportedCurrencies()) ? implode(', ', $PaymentGatewaySupportedCurrenyListEnum::getInstamojoSupportedCurrencies()) : '' }}
@endif
@if (Session::get('payable_amount') > 0) @if ($basic_payment->stripe_status == 'active') @endif @if ($basic_payment->paypal_status == 'active') @endif @if ($basic_payment->bank_status == 'active') @endif @if ($razorpay_credentials->razorpay_status == 'active')
@csrf
@endif @if ($mollie_credentials->mollie_status == 'active') @endif @if ($instamojo_credentials->instamojo_status == 'active') @endif @if ($flutterwave_credentials->flutterwave_status == 'active') @endif @if ($payment_setting->paystack_status == 'active') @endif @else
@csrf
@endif

{{ __('Cart totals') }}

  • {{ __('Total Items') }}{{ count(Cart::content()) }}
  • @if (Session::has('coupon_code'))

    {{ __('Discount') }}
    {{ $coupon }} ({{ $discountPercent }} %)×

    {{ currency($discountAmount) }} @else

    {{ __('Discount') }}

    {{ currency(0) }} @endif
  • {{ __('Total') }} {{ $total }}
  • @if (Session::get('payable_amount') > 0)
    {{ __('payable with gateway charge') }}:
    @if (payable_with_charges(Session::get('payable_amount'))) @foreach (payable_with_charges(Session::get('payable_amount')) as $key => $value) @if ( $key == 'stripe' && $BasicPaymentSupportedCurrenyListEnum::isStripeSupportedCurrencies(getSessionCurrency()) && $basic_payment->stripe_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'paypal' && $BasicPaymentSupportedCurrenyListEnum::isPaypalSupportedCurrencies(getSessionCurrency()) && $basic_payment->paypal_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'mollie' && $PaymentGatewaySupportedCurrenyListEnum::isMollieSupportedCurrencies(getSessionCurrency()) && $mollie_credentials->mollie_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'razorpay' && $PaymentGatewaySupportedCurrenyListEnum::isRazorpaySupportedCurrencies(getSessionCurrency()) && $razorpay_credentials->razorpay_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'instamojo' && $PaymentGatewaySupportedCurrenyListEnum::isInstamojoSupportedCurrencies(getSessionCurrency()) && $instamojo_credentials->instamojo_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'flutterwave' && $PaymentGatewaySupportedCurrenyListEnum::isFlutterwaveSupportedCurrencies(getSessionCurrency()) && $flutterwave_credentials->flutterwave_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ( $key == 'paystack' && $PaymentGatewaySupportedCurrenyListEnum::isPaystackSupportedCurrencies(getSessionCurrency()) && $payment_setting->paystack_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif ($key == 'bank' && $basic_payment->bank_status == 'active')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @elseif( $key != 'stripe' && $key != 'paypal' && $key !== 'mollie' && $key !== 'razorpay' && $key !== 'instamojo' && $key !== 'flutterwave' && $key !== 'bank' && $key !== 'paystack')

    {{ str($key)->title() }}: {{ $value }} {{ getSessionCurrency() }}

    @endif @endforeach @endif @endif
@if ($basic_payment->stripe_status == 'active') @endif @if ($basic_payment->bank_status == 'active') {{-- bank modal --}}
@endif @endsection @push('scripts') @if ($basic_payment->stripe_status == 'active') @endif @if ($razorpay_credentials->razorpay_status == 'active') {{-- start razorpay payment --}} @endif @if ($flutterwave_credentials->flutterwave_status == 'active') {{-- start flutterwave payment --}} {{-- end flutterwave payment --}} @endif @if ($payment_setting->paystack_status == 'active') {{-- paystack start --}} @endif @endpush