@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') }}
@include('icons.payments.' . (in_array($paymentMethod->card->brand, config('payments')) ? $paymentMethod->card->brand : 'unknown'), ['class' => 'width-6'])
{{ date('m / y', strtotime('01-'.$paymentMethod->card->exp_month.'-'.$paymentMethod->card->exp_year)) }}
{{ __('Billing information') }}
{{ __('Order summary') }}
  • {{ __(':name plan', ['name' => $plan->name]) }}
    {!! ($plan->trial_days && count($user->subscriptions) == 0) ? __('Billed :period, after trial ends.', ['period' => mb_strtolower(__('Monthly'))]) :__('Billed :period.', ['period' => mb_strtolower(__('Monthly'))]) !!}
    {!! ($plan->trial_days && count($user->subscriptions) == 0) ? __('Billed :period, after trial ends.', ['period' => mb_strtolower(__('Yearly'))]) :__('Billed :period.', ['period' => mb_strtolower(__('Yearly'))]) !!}
    {{ formatMoney($plan->amount_month, $plan->currency) }} {{ strtoupper($plan->currency) }}
    {{ formatMoney($plan->amount_year, $plan->currency) }} {{ strtoupper($plan->currency) }}
  • @if($coupon)
  • {{ __('Discount') }} ({{ $coupon->percent_off }}%)
    -{{ formatMoney(checkoutDiscount($plan->amount_month, $coupon->percent_off), $plan->currency) }} -{{ formatMoney(checkoutDiscount($plan->amount_year, $coupon->percent_off), $plan->currency) }} {{ strtoupper($plan->currency) }}
  • @endif @foreach($taxRates as $tax)
  • {{ $tax->display_name }} {{ $tax->jurisdiction ? ' - ' . $tax->jurisdiction : '' }} ({{ $tax->percentage }}% {{ $tax->inclusive ? __('incl.') : __('excl.') }})
    @if($tax->inclusive == false) {{ formatMoney(checkoutExclusiveTax(checkoutPostDiscountLessInclTax(checkoutPostDiscount($plan->amount_month, checkoutDiscount($plan->amount_month, $coupon->percent_off ?? null)), checkoutInclusiveTax(checkoutPostDiscount($plan->amount_month, checkoutDiscount($plan->amount_month, $coupon->percent_off ?? null)), $inclTaxRatesPercentage ?? null)), $tax->percentage ?? null), $plan->currency) }} {{ formatMoney(checkoutExclusiveTax(checkoutPostDiscountLessInclTax(checkoutPostDiscount($plan->amount_year, checkoutDiscount($plan->amount_year, $coupon->percent_off ?? null)), checkoutInclusiveTax(checkoutPostDiscount($plan->amount_year, checkoutDiscount($plan->amount_year, $coupon->percent_off ?? null)), $inclTaxRatesPercentage ?? null)), $tax->percentage ?? null), $plan->currency) }} @else {{ formatMoney(checkoutPostDiscountLessInclTax(checkoutPostDiscount($plan->amount_month, checkoutDiscount($plan->amount_month, $coupon->percent_off ?? null)), checkoutInclusiveTax(checkoutPostDiscount($plan->amount_month, checkoutDiscount($plan->amount_month, $coupon->percent_off ?? null)), $inclTaxRatesPercentage ?? null)) * ($tax->percentage / 100), $plan->currency) }} {{ formatMoney(checkoutPostDiscountLessInclTax(checkoutPostDiscount($plan->amount_year, checkoutDiscount($plan->amount_year, $coupon->percent_off ?? null)), checkoutInclusiveTax(checkoutPostDiscount($plan->amount_year, checkoutDiscount($plan->amount_year, $coupon->percent_off ?? null)), $inclTaxRatesPercentage ?? null)) * ($tax->percentage / 100), $plan->currency) }} @endif {{ strtoupper($plan->currency) }}
  • @endforeach @if($plan->trial_days && count($user->subscriptions) == 0)
  • {{ __('Trial days') }}
    {{ $plan->trial_days }}
  • @endif @if($plan->coupons && !$coupon)
  • {{ __('Have a coupon code?') }}
    has('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.') }}
@include('icons.email', ['class' => 'fill-current width-6 height-6'])
{{ __('Need help?') }}
{{ __('Get in touch with us.') }}
@include('shared.sidebars.user') @endsection