{{-- HEADER --}}
@if($this->checkoutType === 'cancel')

{{ t('checkout.switch_free') }}

{{ t('checkout.cancel_immediately') }}

@elseif($this->checkoutType === 'update')

{{ t('checkout.change_plan') }}

{{ t('checkout.switch_to') }} {{ $plan->name }} – {{ t('checkout.prorated') }}

@else

{{ t('checkout.title') }}

{{ t('checkout.switch_to') }} {{ $plan->name }}

@endif
{{-- ============================================================ LEFT — ORDER SUMMARY ============================================================ --}}
{{-- BILLING TOGGLE (nur bei paid plans) --}} @if($this->checkoutType !== 'cancel')
{{ t('checkout.billing_period') }}
{{-- Monthly --}} {{-- Yearly --}}
@if($billing === 'yearly' && $this->savings() > 0)
{{ t('checkout.save_comparison', ['amount' => number_format($this->savings() / 100, 2, ',', '.') . ' €']) }}
@endif
@endif {{-- end billing toggle --}} {{-- FEATURES --}}
{{ t('checkout.included', ['plan' => $plan->name]) }}
@if($features->isEmpty())

{{ t('checkout.all_features') }}

@else
@foreach($features as $feature)
{{ $feature->label }}
@endforeach
@endif @if($plan->credit_limit)
{{ number_format($plan->credit_limit) }} {{ t('checkout.credits_month') }}
@endif
{{-- TRUST SIGNALS --}}
@foreach([ ['icon' => 'shield-check', 'title' => t('checkout.secure_payment'), 'desc' => t('checkout.ssl_stripe')], ['icon' => 'arrow-uturn-left', 'title' => t('checkout.cancel_anytime'), 'desc' => t('checkout.no_minimum')], ['icon' => 'lock-closed', 'title' => t('checkout.gdpr'), 'desc' => t('checkout.eu_data')], ] as $trust)
@if($trust['icon'] === 'shield-check') @elseif($trust['icon'] === 'arrow-uturn-left') @else @endif

{{ $trust['title'] }}

{{ $trust['desc'] }}

@endforeach
{{-- Stripe badge --}}
{{ t('checkout.stripe_note') }}
{{-- ============================================================ RIGHT — PRICE SUMMARY + PAY BUTTON ============================================================ --}}
{{-- Summary Card --}}

Plan

{{ $plan->name }}

{{ t('checkout.total') }}

{{ number_format($this->activePrice() / 100, 2, ',', '.') }} €

/ {{ $billing === 'yearly' ? t('common.year') : t('common.month') }}

{{-- Line items --}}
{{ $plan->name }} – {{ $billing === 'yearly' ? t('checkout.yearly') : t('checkout.monthly') }} {{ number_format($this->activePrice() / 100, 2, ',', '.') }} €
@if($billing === 'yearly' && $this->savings() > 0)
{{ t('checkout.yearly_discount') }} −{{ number_format($this->savings() / 100, 2, ',', '.') }} €
@endif
{{ t('checkout.total_incl_vat') }} {{ number_format($this->activePrice() / 100, 2, ',', '.') }} €
{{-- Renewal info --}}
{{ t('checkout.auto_renew', ['period' => $billing === 'yearly' ? t('checkout.period.12months') : t('checkout.period.30days')]) }} {{ t('checkout.cancel_anytime') }}
{{-- Info-Hinweis je nach Typ --}} @if($this->checkoutType === 'cancel')
{{ t('checkout.cancel_immediate') }}

{{ t('checkout.cancel_desc') }}

@elseif($this->checkoutType === 'update')
{{ t('checkout.switch_immediate') }}

{{ t('checkout.switch_desc') }}

@endif {{-- Widerrufsrecht-Checkboxen (nur bei paid plans) --}} @if($this->checkoutType !== 'cancel')

{{ t('checkout.waiver_info') }}

@endif {{-- CTA --}} @if($this->checkoutType === 'cancel') @elseif($this->checkoutType === 'update') @else @endif

@if($this->checkoutType === 'new') {{ t('checkout.redirect_stripe') }} @elseif($this->checkoutType === 'update') {{ t('checkout.no_checkout') }} @else {{ t('checkout.cancel_effective') }} @endif

{{-- Current user info --}}
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}

{{ auth()->user()->name }}

{{ auth()->user()->email }}