@php
$stripeSupportedCurrencies = [
'USD', 'EUR', 'GBP', 'JPY', 'CAD', 'AUD', 'CHF', 'CNY', 'SEK', 'NZD', 'SGD', 'HKD', 'MXN', 'MYR', 'BRL', 'INR', 'RUB', 'ZAR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $stripeSupportedCurrencies);
@endphp
@if($gsetting->stripe_enable == 1 && $isCurrencySupported )
@endif
@if(!isset($cart->bundle->is_subscription_enabled) || $cart->bundle->is_subscription_enabled != '1')
@php
$paypalSupportedCurrencies = [
'AUD', 'BRL', 'CAD', 'CNY', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MYR', 'MXN', 'TWD', 'NZD', 'NOK', 'PHP', 'PLN', 'GBP', 'SGD', 'SEK', 'CHF', 'THB', 'USD'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $paypalSupportedCurrencies);
@endphp
@if($gsetting->paypal_enable == 1 && $isCurrencySupported)
@endif
@php
$instamojoSupportedCurrencies = ['INR']; // Supported currencies for Instamojo
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $instamojoSupportedCurrencies);
@endphp
@if($gsetting->instamojo_enable == 1 && $isCurrencySupported)
@endif
@php
$omiseSupportedCurrencies = [
'THB'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $omiseSupportedCurrencies);
@endphp
@if($gsetting->enable_omise == 1 && $isCurrencySupported)
@endif
@php
$razorpaySupportedCurrencies = [
'INR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $razorpaySupportedCurrencies);
@endphp
@if($gsetting->razorpay_enable == 1 && $isCurrencySupported)
@php
$isMeetingPayment = isset($meeting_price) && $meeting_price > 0;
$amount = $isMeetingPayment ? $meeting_price : Crypt::decrypt($secureamount);
$payAmount = $isMeetingPayment ? $meeting_price * 100 : $mainpay * 100;
$description = $isMeetingPayment ? ($description ?? '') : '';
$prefillName = $isMeetingPayment ? ($prefillName ?? 'XYZ') : 'XYZ';
$prefillEmail = $isMeetingPayment ? ($prefillEmail ?? 'info@example.com') : 'info@example.com';
@endphp
@endif
@php
$paystackSupportedCurrencies = [
'GHS', 'NGN', 'ZAR', 'KES'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $paystackSupportedCurrencies);
@endphp
@if($gsetting->paystack_enable == 1 && $isCurrencySupported)
@endif
@php
$paytmSupportedCurrencies = [
'INR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $paytmSupportedCurrencies);
@endphp
@if($gsetting->paytm_enable == 1 && $isCurrencySupported)
@endif
@php
$banktransfer = App\BankTransfer::first();
@endphp
@if(isset($banktransfer))
@if($banktransfer->bank_enable == '1')
@php
$bankdetail = App\BankTransfer::first();
@endphp
- {{ __('Account holder name') }}: {{ $bankdetail['account_holder_name'] }}
- {{ __('Bank Name') }}: {{ $bankdetail['bank_name'] }}
- {{ __('Bank Acccoun tNumber') }}: {{ $bankdetail['account_number'] }}
@if(isset($bankdetail['ifcs_code']))
- {{ __('IFCS Code') }}: {{ $bankdetail['ifcs_code'] }}
@endif
@if(isset($bankdetail['swift_code']))
- {{ __('Swift Code') }}: {{ $bankdetail['swift_code'] }}
@endif
@endif
@endif
@php
$payuSupportedCurrencies = [
'AUD', 'BRL', 'CAD', 'CHF', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'ILS', 'INR', 'JPY', 'MXN', 'MYR', 'NOK', 'NZD', 'PLN', 'SEK', 'SGD', 'THB', 'TRY', 'USD', 'ZAR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $payuSupportedCurrencies);
@endphp
@if($gsetting->enable_payu == 1 && $isCurrencySupported)
@endif
@php
$cashfreeSupportedCurrencies = [
'INR', 'USD', 'CNY', 'GBP', 'AED', 'AUD', 'AZN', 'BHD', 'CAD', 'CHF', 'DKK', 'EGP', 'EUR', 'HKD', 'ILS', 'JOD', 'JPY', 'KRW', 'KWD', 'MYR', 'NOK', 'NZD', 'OMR', 'QAR', 'RUB', 'SAR', 'SEK', 'SGD', 'THB', 'ZAR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $cashfreeSupportedCurrencies);
@endphp
@if($gsetting->enable_cashfree == 1 && $isCurrencySupported)
@endif
@php
$moliSupportedCurrencies = [
'AED', 'AUD', 'BGN', 'BRL', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'ILS', 'ISK', 'JPY', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PLN', 'RON', 'RUB', 'SEK', 'SGD', 'THB', 'TWD', 'USD', 'ZAR'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $moliSupportedCurrencies);
@endphp
@if($gsetting->enable_moli == 1 && $isCurrencySupported)
@endif
@php
$skrillSupportedCurrencies = [
'AUD', 'EUR', 'BDT', 'BRL', 'IDR', 'INR', 'KES', 'MYR', 'MXN', 'NPR', 'PKR', 'PHP', 'PLN', 'THB', 'UAH', 'GBP', 'USD', 'VND'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $skrillSupportedCurrencies);
@endphp
@if($gsetting->enable_skrill == 1 && $isCurrencySupported)
@endif
@php
$raveSupportedCurrencies = [
'NGN'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $raveSupportedCurrencies);
@endphp
@if($gsetting->enable_rave == 1 && $isCurrencySupported)
@php
$array = array(array('metaname' => 'color', 'metavalue' => 'blue'),
array('metaname' => 'size', 'metavalue' => 'small'));
// print_r($secureamount);
@endphp
@endif
@php
$order_id = uniqid();
$payhereSupportedCurrencies = [
'LKR', 'USD', 'GBP', 'EUR', 'AUD'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $payhereSupportedCurrencies);
@endphp
@if($gsetting->enable_payhere == 1 && $isCurrencySupported)
@if(env('PAYHERE_MODE') == 'sandbox')
@php
$action = 'https://sandbox.payhere.lk/pay/checkout';
@endphp
@else
@php
$action = 'https://www.payhere.lk/pay/checkout';
@endphp
@endif
@endif
@php
$conversation_id = uniqid();
$iyzicoSupportedCurrencies = [
'TRY', 'EUR', 'USD', 'GBP', 'IRR', 'NOK', 'RUB', 'CHF'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $iyzicoSupportedCurrencies);
@endphp
@if($gsetting->iyzico_enable == 1 && $isCurrencySupported)
@endif
@php
$sslSupportedCurrencies = [
'BDT' // Bangladeshi Taka
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $sslSupportedCurrencies);
@endphp
@if($gsetting->ssl_enable == 1 && $isCurrencySupported)
@endif
@php
$manualpay = App\ManualPayment::where('status', '1')->get();
@endphp
@foreach($manualpay as $manual)
@if($manual->image != '' && file_exists(public_path().'/images/manualpayment/'.$manual->image) )
@endif
@endforeach
@php
$aamarpaySupportedCurrencies = [
'BDT' // Bangladeshi Taka
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $aamarpaySupportedCurrencies);
@endphp
@if($gsetting->aamarpay_enable == 1 && $isCurrencySupported)
@php
$user_name = Auth::user()->fname;
$user_email = Auth::user()->email;
$user_mobile = Auth::user()->email;
@endphp
{!!
aamarpay_post_button([
'cus_name' => $user_name, // Customer name
'cus_email' => $user_email, // Customer email
'cus_phone' => $user_mobile // Customer Phone
], $mainpay, 'Proceed', 'btn btn-sm btn-primary')
!!}
@endif
@php
$braintreeSupportedCurrencies = [
'AUD', 'BRL', 'CAD', 'CHF', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP',
'HKD', 'HUF', 'ILS', 'JPY', 'MXN', 'NZD', 'NOK', 'PLN', 'SEK',
'SGD', 'THB', 'USD'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $braintreeSupportedCurrencies);
@endphp
@if($gsetting->braintree_enable == 1 && $isCurrencySupported)
{{ __('Checkout With Braintree')}}
@endif
@php
$wallet_settings = App\WalletSettings::first();
@endphp
@if(isset($wallet_settings) && $wallet_settings->status == 1)
{{ __('Checkout With Wallet') }}
@if(isset(auth()->user()->wallet))
@if(auth()->user()->wallet->status == 1)
@if(round(auth()->user()->wallet->balance) >= sprintf("%.2f",Crypt::decrypt(strip_tags($secureamount))))
@else
{{ __('Insufficient Wallet Balance') }}
@endif
@endif
@endif
@endif
@if(Module::has('MPesa') && Module::find('MPesa')->isEnabled())
@include('mpesa::front.checkout_form')
@endif
@php
$payflexiSupportedCurrencies = [
'INR', 'USD', 'EUR', 'GBP', 'AUD', 'CAD', 'SGD'
];
$sessionCurrency = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code;
$currencyCode = strtoupper($sessionCurrency);
$isCurrencySupported = in_array($currencyCode, $payflexiSupportedCurrencies);
@endphp
@if($gsetting->payflexi_enable == 1 && $isCurrencySupported)
@php
$array = array('title' => 'Online Course');
@endphp
@endif
@if(Module::has('Esewa') && Module::find('Esewa')->isEnabled())
@include('esewa::front.checkout_form')
@endif
@if(Module::has('Smanager') && Module::find('Smanager')->isEnabled())
@include('smanager::front.checkout_form')
@endif
@if(Module::has('Paytab') && Module::find('Paytab')->isEnabled())
@include('paytab::front.checkout_form')
@endif
@if(Module::has('DPOPayment') && Module::find('DPOPayment')->isEnabled())
@include('dpopayment::front.checkout_form')
@endif
@if(Module::has('AuthorizeNet') && Module::find('AuthorizeNet')->isEnabled())
@include('authorizenet::front.checkout_form')
@endif
@if(Module::has('Bkash') && Module::find('Bkash')->isEnabled())
@include('bkash::front.checkout_form')
@endif
@if(Module::has('Midtrains') && Module::find('Midtrains')->isEnabled())
@include('midtrains::front.checkout_form')
@endif
@if(Module::has('SquarePay') && Module::find('SquarePay')->isEnabled())
@include('squarepay::front.checkout_form')
@endif
@if(Module::has('Worldpay') && Module::find('Worldpay')->isEnabled())
@include('worldpay::front.checkout_form')
@endif
@if(Module::has('Onepay') && Module::find('Onepay')->isEnabled())
@include('onepay::front.checkout_form')
@endif
@endif