@extends('layouts.frontend') @section('title', __('Checkout') . ' - ' . $plan->name) @section('hide_header', true) @section('content')

{{ __('Complete Your') }} {{ __('Order') }}

{{ __('You are subscribing to the') }} {{ $plan->name }} {{ __('plan. Complete payment to get started.') }}

@csrf @if($currencies->count() > 1)

{{ __('Select Currency') }}

{{ __('No currencies found') }}
{{ __('Prices converted using approximate exchange rates. Final charge may vary slightly.') }}
@endif

{{ __('Have a coupon?') }}

@error('coupon_code')

{{ $message }}

@enderror

{{ __('Payment Method') }}

{{ __('No payment methods available for the selected currency.') }}

{{ __('Please select a different currency or contact support.') }}

@foreach($gateways as $gw) @endforeach
@error('gateway')

{{ $message }}

@enderror

{{ __('Order Summary') }}

{{ $plan->name }} @if($plan->duration_months == 1) {{ __('Monthly') }} @elseif($plan->duration_months == 12) {{ __('Yearly') }} @elseif($plan->duration_type === 'lifetime') {{ __('Lifetime') }} @elseif($plan->duration_months) {{ $plan->duration_months }} {{ __('Months') }} @endif
@php $planFeatures = is_array($plan->features) ? $plan->features : []; $summaryFeatures = array_slice($planFeatures, 0, 4); @endphp @if(count($summaryFeatures) > 0)
@foreach($summaryFeatures as $feature)
{{ $feature }}
@endforeach @if(count($planFeatures) > 4)

+{{ count($planFeatures) - 4 }} {{ __('more features') }}

@endif
@endif
@if($plan->events_limit) {{ $plan->events_limit }} {{ __('Events') }} @endif @if($plan->images_limit) {{ number_format($plan->images_limit) }} {{ __('Images') }} @endif @if($plan->storage_limit_gb) {{ rtrim(rtrim(number_format($plan->storage_limit_gb, 2), '0'), '.') }} GB @endif
{{ __('Subtotal') }}
@if($plan->offer_price !== null && (float) $plan->offer_price < (float) $plan->price)
{{ __('Plan discount') }}
@endif
{{ __('Coupon discount') }}
{{ __('Total') }}
{{ __('SSL Encrypted & Secure Payment') }}
@endsection