@extends('front.tendra.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')
{{ __('Checkout') }}
@if($type === 'items') {{-- items --}}
@foreach($cart_items as $cart_item) @if(!$loop->last)
@endif @endforeach
@elseif($type === "subscription") {{-- subscription --}}
{{ $subscription->name }}
@if($subscription->description)
{{ $subscription->description }}
@endif
{{ price($subscription->price) }} / {{ __($subscription->title) }}
@if(strip_tags($subscription->description)) {!! $subscription->description !!} @elseif($subscription->specifications) @foreach($subscription->specifications ?? [] as $specification)
{{ $specification->text }}
@endforeach @endif
@else {{-- prepaid_credit --}}
{{ $prepaid_credit->name }}
{{ price($prepaid_credit->amount) }}
@foreach($prepaid_credit->specs as $spec)
{{ $spec }}
@endforeach
@endif
{{ __('Order summary') }}
{{ __('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
@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