@extends('layouts.app') @section('site_title', formatTitle([__('Checkout'), config('settings.title')])) @section('content')
@include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('dashboard'), 'title' => __('Home')], ['url' => route('pricing'), 'title' => __('Pricing')], ['title' => __('Checkout')], ]])

{{ __('Checkout') }}

@include('shared.message')
@csrf
{{ __('Payment method') }}
    @foreach(paymentProcessors() as $key => $value)
  • input('payment') == $key && old('payment_processor') == null || old('payment_processor') == $key || $loop->first && old('payment_processor') == null)) checked @endif> @if($key == 'bank')
    {!! __('When issuing the bank payment, please make sure to include the value of the :id field in the reference field of the payment.', ['id' => '' . __('Payment ID') . '']) !!}
    @if(config('settings.bank_account_owner'))
    {{ __('Copy') }}
    @if ($errors->has('bank_account_owner')) {{ $errors->first('bank_account_owner') }} @endif
    @endif @if(config('settings.bank_account_number'))
    {{ __('Copy') }}
    @if ($errors->has('bank_account_number')) {{ $errors->first('bank_account_number') }} @endif
    @endif @if(config('settings.bank_name'))
    {{ __('Copy') }}
    @if ($errors->has('bank_name')) {{ $errors->first('bank_name') }} @endif
    @endif @if(config('settings.bank_routing_number'))
    {{ __('Copy') }}
    @if ($errors->has('bank_routing_number')) {{ $errors->first('bank_routing_number') }} @endif
    @endif @if(config('settings.bank_iban'))
    {{ __('Copy') }}
    @if ($errors->has('bank_iban')) {{ $errors->first('bank_iban') }} @endif
    @endif @if(config('settings.bank_bic_swift'))
    {{ __('Copy') }}
    @if ($errors->has('bank_bic_swift')) {{ $errors->first('bank_bic_swift') }} @endif
    @endif
    {{ __('Copy') }}
    @if ($errors->has('payment_id')) {{ $errors->first('payment_id') }} @endif
    @endif
  • @endforeach
@if ($errors->has('payment_processor')) @endif
{{ __('Billing information') }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('state')) {{ $errors->first('state') }} @endif
@if ($errors->has('postal_code')) {{ $errors->first('postal_code') }} @endif
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if(($plan->trial_days && !$user->plan_trial_ends_at) || ($coupon && $coupon->type))
{{ __('Order summary') }}
  • {{ __(':name plan', ['name' => $plan->name]) }}
    {{ __('Not billed.') }}
{!! __('By continuing, you agree with the :terms.', ['terms' => mb_strtolower(''. __('Terms of service') .'')]) !!}
@if($plan->trial_days && !$user->plan_trial_ends_at) @endif @else
{{ __('Order summary') }}
@if ($errors->has('interval')) {{ $errors->first('interval') }} @endif
  • {{ __(':name plan', ['name' => $plan->name]) }}
    {!! ($plan->trial_days && !$user->plan_trial_ends_at) ? __('Billed :interval, after trial ends.', ['interval' => mb_strtolower(__('Monthly'))]) :__('Billed :interval.', ['interval' => mb_strtolower(__('Monthly'))]) !!} {!! __('Billed once.') !!}
    {!! ($plan->trial_days && !$user->plan_trial_ends_at) ? __('Billed :interval, after trial ends.', ['interval' => mb_strtolower(__('Yearly'))]) :__('Billed :interval.', ['interval' => mb_strtolower(__('Yearly'))]) !!} {!! __('Billed once.') !!}
    {{ formatMoney($plan->amount_month, $plan->currency) }} {{ $plan->currency }}
    {{ formatMoney($plan->amount_year, $plan->currency) }} {{ $plan->currency }}
  • @if(!$coupon || $coupon->type == 0) @foreach($taxRates as $taxRate)
  • {{ $taxRate->name }} ({{ $taxRate->percentage }}% {{ $taxRate->type ? __('excl.') : __('incl.') }})
    @if($taxRate->type) {{ formatMoney(checkoutExclusiveTax($plan->amount_month, $coupon->percentage ?? null, $taxRate->percentage, $inclTaxRatesPercentage), $plan->currency) }} {{ formatMoney(checkoutExclusiveTax($plan->amount_year, $coupon->percentage ?? null, $taxRate->percentage, $inclTaxRatesPercentage), $plan->currency) }} @else {{ formatMoney(calculateInclusiveTax($plan->amount_month, $coupon->percentage ?? null, $taxRate->percentage, $inclTaxRatesPercentage), $plan->currency) }} {{ formatMoney(calculateInclusiveTax($plan->amount_year, $coupon->percentage ?? null, $taxRate->percentage, $inclTaxRatesPercentage), $plan->currency) }} @endif {{ $plan->currency }}
  • @endforeach @endif @if($coupon)
  • {{ __('Discount') }} ({{ $coupon->percentage }}%)
    -{{ formatMoney(calculateDiscount($plan->amount_month, $coupon->percentage), $plan->currency) }} -{{ formatMoney(calculateDiscount($plan->amount_year, $coupon->percentage), $plan->currency) }} {{ $plan->currency }}
  • @endif @if($plan->coupons && !$coupon)
  • {{ __('Have a coupon code?') }}
    has('coupon') || old('coupon') ? '' : ' disabled' }}>
    @if ($errors->has('coupon'))
    {{ $errors->first('coupon') }}
    @endif
  • @endif
{!! __('By continuing, you agree with the :terms and authorize :title to charge your payment method on a recurring basis.', ['terms' => mb_strtolower(''. __('Terms of service') .''), 'title' => ''.e(config(('settings.title'))).'']) !!} {{ __('You can cancel your subscription at any time.') }} {!! __('By continuing, you agree with the :terms.', ['terms' => mb_strtolower(''. __('Terms of service') .'')]) !!}
@endif
@include('icons.email', ['class' => 'fill-current width-6 height-6'])
{{ __('Need help?') }}
{{ __('Get in touch with us.') }}
@endsection @include('shared.sidebars.user')