@extends('frontend.user.layouts.single') @section('title', lang('Checkout', 'checkout')) @section('content')
@if ($transaction->type == 2 && subscription()->remining_days >= 5)
{{ lang('Important Notice !', 'checkout') }}

{{ lang('When you upgrade the plan before your current plan expires, you will lose all the features in your current plan and move to the new plan, and the new plan period will be calculated and the old period removed.', 'checkout') }}

@endif
@csrf
{{ lang('Payment Methods', 'checkout') }}
@if ($transaction->total_price != 0)
@forelse ($paymentGateways as $paymentGateway) @if ($transaction->total_price >= $paymentGateway->min)
{{ $paymentGateway->name }} first) checked @endif>
@endif @empty
{{ lang('No payment methods available right now please try again later.', 'checkout') }}
@endforelse
@else
{{ lang('No payment method needed.', 'checkout') }}
@endif
{{ lang('Billing address', 'checkout') }}
{{ lang('SSL Secure Payment', 'checkout') }}

{{ lang('Your information is protected by 256-bit SSL encryption', 'checkout') }}

@if ($transaction->total_price != 0) @else @endif
{{ lang('Order Summary', 'checkout') }}
{{ $transaction->plan->name . ' ' . lang('Plan', 'checkout') }} @if ($transaction->plan->interval == 0) ({{ lang('Monthly', 'plans') }}) @elseif($transaction->plan->interval == 1) ({{ lang('Yearly', 'plans') }}) @elseif($transaction->plan->interval == 2) ({{ lang('lifetime', 'plans') }}) @endif {{ priceSymbol($transaction->details_before_discount->plan_price) }}
@if ($transaction->tax_price != 0)
{{ lang('Tax', 'checkout') }} +{{ priceSymbol($transaction->details_before_discount->tax_price) }}
@endif @if (!is_null($transaction->coupon_id))
{{ lang('Subtotal', 'checkout') }} {{ priceSymbol($transaction->details_before_discount->total_price) }}
{{ lang('Discount', 'checkout') }} ({{ $transaction->coupon->percentage }}%) -{{ priceSymbol($transaction->details_before_discount->total_price - $transaction->details_after_discount->total_price) }}
{{ lang('Total', 'checkout') }} {{ priceSymbol($transaction->details_after_discount->total_price) }}
@else
{{ lang('Total', 'checkout') }} {{ priceSymbol($transaction->total_price) }}
@endif
@if ($transaction->total_price != 0)
{{ lang('Payment gateways may charge extra fees', 'checkout') }}
@endif
@if ($transaction->total_price != 0 || !is_null($transaction->coupon_id))
{{ lang('Coupon Code', 'checkout') }}
@if (!is_null($transaction->coupon_id))
{{ $transaction->coupon->code }}
@csrf
@else
@csrf
@endif
@endif
{{ lang('SSL Secure Payment', 'checkout') }}

{{ lang('Your information is protected by 256-bit SSL encryption', 'checkout') }}

@if ($transaction->total_price != 0) @else @endif
@endsection