@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
{{-- Cart: "5 purchases pending" told nobody what they had ordered, and offered no way to change their mind. --}} @if ($pending->isNotEmpty())

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

{{ __('billing.cart.subtitle') }}
{{ __('billing.cart.total') }} {{ $eur($pending->sum('amount_cents')) }}
@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']]) }}
{{-- Traffic --}}

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

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

@if ($trafficMeter)

{{ __('billing.traffic_used', [ 'used' => \App\Support\Bytes::human($trafficMeter->usedBytes), 'quota' => \App\Support\Bytes::human($trafficMeter->quotaBytes), ]) }}

@endif {{ __('billing.traffic_cta', ['gb' => $trafficAddon['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') }}