@php
$session_amount = Session::has('coupon_applied') ? Session::get('coupon_applied')['amount'] : 0
@endphp
@if (isset($stripe_payment) && $stripe_payment == 1 && in_array('stripe',$currency_payments))
@if(env('STRIPE_KEY') != NULL && env('STRIPE_SECRET') != NULL)
{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@subscribe', 'id' => 'payment-form']) !!}
{{csrf_field()}}
{!! Form::close() !!}
@else
@component('components.alert')
Stripe Payment
@endcomponent
@endif
@endif
@if (isset($paypal_payment) && $paypal_payment == 1 && in_array('paypal',$currency_payments))
@if(env('PAYPAL_CLIENT_ID') != NULL && env('PAYPAL_SECRET_ID') != NULL && env('PAYPAL_MODE') != NULL)
{!! Form::open(['method' => 'POST', 'action' => 'PaypalController@postPaymentWithpaypal']) !!}
{!! Form::close() !!}
@else
@component('components.alert')
Paypal Payment
@endcomponent
@endif
@endif
@if(isset($braintree) && $braintree==1 && in_array('braintree',$currency_payments))
@if(env('BTREE_ENVIRONMENT') != NULL && env('BTREE_MERCHANT_ID') !=NULL && env('BTREE_PUBLIC_KEY') !=NULL && env('BTREE_PRIVATE_KEY') != NULL && env('BTREE_MERCHANT_ACCOUNT_ID') != NULL)
{{__('Pay Via')}} Card / Paypal
@else
@component('components.alert')
Braintree Payment
@endcomponent
@endif
@endif
@if (isset($mollie_payment) && $mollie_payment == 1 && in_array('mollie',$currency_payments))
@if(env('MOLLIE_KEY') != NULL)
@endif
@endif
@if (isset($cashfree_payment) && $cashfree_payment == 1 && in_array('cashfree',$currency_payments))
@if(env('CASHFREE_APP_ID') != NULL && env('CASHFREE_SECRET_ID') != NULL && env('CASHFREE_API_END_URL') != NULL)
@if(isset(Auth::user()->mobile) && Auth::user()->mobile != NULL)
{!! Form::open(['method' => 'POST', 'action' => 'PayViaCashFreeController@payment']) !!}
{!! Form::close() !!}
@else
{{__('Please filled your mobile no')}}. {{__('click here')}}
@endif
@else
@component('components.alert')
Cashfree
@endcomponent
@endif
@endif
@if(isset($coin_payment) && $coin_payment==1 && in_array('coinpay',$currency_payments))
@if(env('COINPAYMENTS_MERCHANT_ID') != NULL && env('COINPAYMENTS_PUBLIC_KEY') != NULL && env('COINPAYMENTS_PRIVATE_KEY') != NULL)
@else
@component('components.alert')
Coin Payment
@endcomponent
@endif
@endif
@if (isset($payu_payment) && $payu_payment == 1 && in_array('payu',$currency_payments))
@if(env('PAYU_METHOD') != NULL && env('PAYU_DEFAULT') != NULL && env('PAYU_MERCHANT_KEY') != NULL && env('PAYU_MERCHANT_SALT') != NULL)
{!! Form::open(['method' => 'POST', 'action' => 'PayuController@payment']) !!}
{!! Form::close() !!}
@else
@component('components.alert')
Payu Payment
@endcomponent
@endif
@endif
@if (isset($paytm_payment) && $paytm_payment == 1 && in_array('paytm',$currency_payments))
@if(env('PAYTM_MID') != NULL && env('PAYTM_MERCHANT_KEY') != NULL)
{!! Form::open(['method' => 'POST', 'action' => 'PaytemController@store']) !!}
{!! Form::close() !!}
@else
@component('components.alert')
Paytm Payment
@endcomponent
@endif
@endif
@if (isset($razorpay_payment) && $razorpay_payment == 1 && in_array('razorpay',$currency_payments))
@if(env('RAZOR_PAY_KEY') != NULL && env('RAZOR_PAY_SECRET') != NULL)
@else
@component('components.alert')
Razorpay Payment
@endcomponent
@endif
@endif
@if (isset($instamojo_payment) && $instamojo_payment == 1 && in_array('instamojo',$currency_payments))
@if(env('IM_API_KEY') != NULL && env('IM_AUTH_TOKEN') != NULL && env('IM_URL') != NULL)
@else
@component('components.alert')
Instamojo Payment
@endcomponent
@endif
@endif
@if(isset($paystack) && $paystack == 1 && in_array('paystack',$currency_payments))
@if(env('PAYSTACK_PUBLIC_KEY') != NULL && env('PAYSTACK_SECRET_KEY') != NULL && env('PAYSTACK_PAYMENT_URL') != NULL)
@php
$amount = ($plan->amount - $session_amount)*100;
@endphp
@else
@component('components.alert')
Paystack Payment
@endcomponent
@endif
@endif
@if(isset($flutterrave_payment) && $flutterrave_payment == 1 && in_array('flutterrave',$currency_payments))
@if(env('RAVE_PUBLIC_KEY') != NULL && env('RAVE_SECRET_KEY') != NULL && env('RAVE_COUNTRY') != NULL )
@else
@component('components.alert')
Flutterrave Payment
@endcomponent
@endif
@endif
@if(isset($omise_payment) && $omise_payment == 1 && in_array('omise',$currency_payments))
@if(env('OMISE_PUBLIC_KEY') != NULL && env('OMISE_SECRET_KEY') != NULL && env('OMISE_API_VERSION') != NULL)
@else
@component('components.alert')
Omise Payment
@endcomponent
@endif
@endif
@php
$payhere_order_id = uniqid();
@endphp
@if (isset($payhere_payment) && $payhere_payment == 1 && in_array('payhere',$currency_payments))
@if(env('PAYHERE_BUISNESS_APP_CODE') != NULL && env('PAYHERE_APP_SECRET') != NULL && env('PAYHERE_MERCHANT_ID') != NULL && env('PAYHERE_MODE') != NULL)
@else
@component('components.alert')
PayHere Payment
@endcomponent
@endif
@endif
@if (isset($bankdetails) && $bankdetails == 1 && in_array('bankdetail',$currency_payments))
@if(($account_name != NULL) && ($account_no != NULL) && ($ifsc_code != NULL) && ($bank!= NULL))
{{__('Account Name')}} |
{{$account_name}} |
{{__('Account Number')}} |
{{$account_no}} |
{{__('Bank Name')}} |
{{$bank}} |
{{__('IFSC Code')}} |
{{$ifsc_code}} |
@else
@component('components.alert')
Bank Detail
@endcomponent
@endif
@endif
@if(isset($manualpaymentmethod))
@foreach($manualpaymentmethod as $mpm)
{{$mpm->description}}
@if($mpm->thumbnail != NULL)
@endif
@endforeach
@endif
@if (isset($walletsetting) && $walletsetting->enable_wallet == 1)
@if(isset(auth()->user()->wallet) && auth()->user()->wallet->balance >= ($plan->amount - $session_amount))
@else
{{__('Insufficient amount in the wallet')}} {{__('Please add money in the wallet')}}
@endif
@else
@component('components.alert')
Wallet
@endcomponent
@endif
@if(config('authorizenet.ENABLE') == 1 && Module::has('AuthorizeNet') && Module::find('AuthorizeNet')->isEnabled())
@include("authorizenet::front.tab")
@endif
@if(config('bkash.ENABLE') == 1 && Module::has('Bkash') && Module::find('Bkash')->isEnabled())
@include("bkash::front.tab")
@endif
@if(config('dpopayment.enable') == 1 && Module::has('DPOPayment') && Module::find('DPOPayment')->isEnabled())
@include("dpopayment::front.tab")
@endif
@if(config('esewa.ENABLE') == 1 && Module::has('Esewa') && Module::find('Esewa')->isEnabled())
@include("esewa::front.tab")
@endif
@if(config('midtrains.ENABLE') == 1 && Module::has('Midtrains') && Module::find('Midtrains')->isEnabled())
@include("midtrains::front.tab")
@endif
@if(config('mpesa.ENABLE') == 1 && Module::has('MPesa') && Module::find('MPesa')->isEnabled())
@include("mpesa::front.tab")
@endif
@if(config('paytab.ENABLE') == 1 && Module::has('Paytab') && Module::find('Paytab')->isEnabled())
@include("paytab::front.tab")
@endif
@if(config('senangpay.ENABLE') == 1 && Module::has('Senangpay') && Module::find('Senangpay')->isEnabled())
@include("senangpay::front.tab")
@endif
@if(config('smanager.ENABLE') == 1 && Module::has('Smanager') && Module::find('Smanager')->isEnabled())
@include("smanager::front.tab")
@endif
@if(config('squarepay.ENABLE') == 1 && Module::has('SquarePay') && Module::find('SquarePay')->isEnabled())
@include("squarepay::front.tab")
@endif
@if(config('worldpay.ENABLE') == 1 && Module::has('Worldpay') && Module::find('Worldpay')->isEnabled())
@include("worldpay::front.tab")
@endif