@php $loc = app()->getLocale(); $eur = fn ($c) => Number::currency($c / 100, in: 'EUR', locale: $loc); @endphp

{{ __('billing.title') }}

{{ __('billing.subtitle') }}

{{-- Current plan --}}

{{ __('billing.current_plan') }}

{{ __('billing.plan.'.$currentKey) }}

{{ $eur($current['price_cents'] ?? 0) }}

{{ __('billing.per_month') }}

@foreach ([ ['billing.storage', ($current['quota_gb'] ?? 0).' GB'], ['billing.seats', $current['seats'] ?? '—'], ['billing.performance', __('billing.perf.'.($current['performance'] ?? 'standard'))], ['billing.status', __('billing.status_active')], ] as [$label, $value])

{{ __($label) }}

{{ $value }}

@endforeach
@if ($pending->isNotEmpty())

{{ __('billing.pending_note', ['count' => $pending->count()]) }}

@endif {{-- Upgrades --}} @if (count($upgrades) > 0)

{{ __('billing.upgrade_title') }}

@foreach ($upgrades as $key) @php $p = $plans[$key]; @endphp

{{ __('billing.plan.'.$key) }}

{{ __('billing.perf.'.($p['performance'] ?? 'standard')) }}

{{ $p['quota_gb'] }} GB · {{ __('billing.seats_count', ['count' => $p['seats'] ?? 0]) }}

    @foreach (array_slice($features[$key] ?? [], 0, 4) as $f)
  • {{ __('billing.feature.'.$f) }}
  • @endforeach

{{ $eur($p['price_cents']) }} / {{ __('billing.month_short') }}

{{ __('billing.upgrade_cta') }}
@endforeach
@endif {{-- Extra storage + Add-ons --}}
{{-- Storage --}}

{{ __('billing.storage_title') }}

{{ __('billing.storage_body', ['gb' => $storage['gb'], 'price' => $eur($storage['price_cents'])]) }}

{{ __('billing.storage_cta', ['gb' => $storage['gb']]) }}
{{-- Add-ons --}} @foreach ($addons as $key => $addon)

{{ __('billing.addon.'.$key.'.name') }}

{{ __('billing.addon.'.$key.'.desc') }}

{{ $eur($addon['price_cents']) }} / {{ __('billing.month_short') }}

{{ __('billing.addon_cta') }}
@endforeach

{{ __('billing.mock_note') }}