@extends('front.axies.master') @section('head_tags') @if(config("payment_gateways.{$payment_gateway['name']}.assets")) @foreach(config("payment_gateways.{$payment_gateway['name']}.assets", []) as $asset) @if($asset["type"] == "js") @elseif($asset["type"] == "css") @elseif($asset["type"] == "js_init") @endif @endforeach @endif @endsection @section('body')
{{ __('Home') }}   {{ __('Checkout') }}  
{{ __('Products') }}
@if($type === 'items') {{-- items --}}
@foreach($cart_items as $cart_item)
{{ limit($cart_item['name'], 40) }} @isset($cart_item['summary'])
{{ limit($cart_item['summary'] ?? '', 120) }}
@endisset {{ $cart_item['category_name'] }}
{{ price($cart_item['price']) }}
@if(!$loop->last)
@endif @endforeach
@elseif($type === "subscription") {{-- subscription --}}
{{ __('Pricing plan') }}
 
{{ $subscription->name }}
@if($subscription->description)
{{ $subscription->description }}
@endif
@if(strip_tags($subscription->description)) {!! $subscription->description !!} @elseif($subscription->specifications) @foreach($subscription->specifications ?? [] as $specification)
@if($specification->included) @else @endif
{{ $specification->text }}
@endforeach @endif
{{ price($subscription->price) }} / {{ __($subscription->title) }}
@else {{-- Prepaid credits --}}
{{ __('Prepaid credit') }}
 
{{ $prepaid_credit->name }}
{{ $prepaid_credit->label }}
@foreach($prepaid_credit->specs as $spec)
{{ $spec }}
@endforeach
@endif
{{ __('Initial amount') }} {{ price($total_amount, 0) }}
{{ __('Purchase fee') }} {{ price($fee, 0) }}
{{ __('Discount') }} {{ ($discount ? '- ' : '') . price($discount, 0) }}
{{ __('Tax') }} {{ price($tax, 0) }}
{{ __('Due amount') }} {{ price($due_amount, 0) }}
@if($type !== "prepaid-credits")
{{ __('Do you have a coupon ?') }}
@endif @if($due_amount > 0)
{{ __('Payment method') }}
@if(count($payment_processors) >= 2)
@endif
@foreach($payment_processors as $k => $payment_processor) @isset($payment_processor['enabled']) @if($type === "prepaid-credits" && $payment_processor['name'] === 'credits') @continue; @endif
{{ $payment_processor['name'] }}
{{ limit($payment_processor['description'], 60) }}
@endisset @endforeach
@endif @if($payment_gateway || $due_amount <= 0)
@csrf @if(config("payment_gateways.{$payment_gateway['name']}.form.checkout_buttons")) @foreach(config("payment_gateways.{$payment_gateway['name']}.form.checkout_buttons", []) as $checkout_button) @if($checkout_button["replace"] ?? null) {!! str_replace_adv($checkout_button["html"], $checkout_button["replace"]) !!} @else {!! $checkout_button["html"] !!} @endif @endforeach @endif @if(config("payment_gateways.{$payment_gateway['name']}.form.inputs"))
@foreach(config("payment_gateways.{$payment_gateway['name']}.form.inputs", []) as $input_name => $input_config) @php $input_attrs = implode(' ', $input_config['attributes'] ?? []); if($input_config['replace']) { $input_config['value'] = str_replace_adv($input_config['value'], $input_config['replace']); } @endphp
@endforeach
@endif @if(config('payments.guest_checkout') && !\Auth::check())
{{ __('Email address') }}
{{ __('An email address to receive download links') }}
@endif @if(config("payment_gateways.{$payment_gateway['name']}.form.note") && request()->query('type') === 'items')
{!! nl2br(str_replace_adv(config("payment_gateways.{$payment_gateway['name']}.form.note.html"), config("payment_gateways.{$payment_gateway['name']}.form.note.replace"))) !!}
@endif @if(config('payments.buyer_note') && count($cart_items))
{{ __('Notes') }} ({{ __('Optional') }})
@endif @if(config('payments.tos'))
@endif
@endsection