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

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

@if ($contract) {{-- Not an error and not a dead end: they have a contract, and the way to a bigger package is a plan change, which prorates and leaves their data where it is. A second checkout would build a second, empty cloud and bill for both. --}} {{ __('order.already_customer') }} {{ __('order.to_billing') }} @elseif ($plans === []) {{ __('order.no_catalogue') }} @else @error('plan'){{ $message }}@enderror
@foreach ($plans as $plan)
$plan['recommended'], 'border-line' => ! $plan['recommended'], ])>

{{ $plan['name'] }}

@if ($plan['recommended']) {{ __('order.recommended') }} @endif
@if ($plan['audience'])

{{ $plan['audience'] }}

@endif {{-- Gross, like the public sheet. A customer quoted 58,80 € out there must not meet 49 € on the page with the button on it. --}}

{{ Number::currency($plan['gross'] / 100, in: $plan['currency'], locale: app()->getLocale()) }} {{ __('order.per_month') }}

{{ __('order.incl_vat', ['rate' => $vat]) }} · {{ __('order.net') }} {{ Number::currency($plan['net'] / 100, in: $plan['currency'], locale: app()->getLocale()) }}

@if ($setup > 0)

{{ __('order.setup', ['amount' => Number::currency($setup / 100, in: $plan['currency'], locale: app()->getLocale())]) }}

@endif
@foreach ([ __('order.storage') => $plan['quota_gb'].' GB', __('order.traffic') => $plan['traffic_gb'].' GB', __('order.seats') => $plan['seats'], ] as $term => $value)
{{ $term }}
{{ $value }}
@endforeach
{{-- A plain form post, not a Livewire action: the response is a redirect to another domain, and Livewire's XHR-and-swap cannot leave the site. --}}
@csrf {{-- The wording is the legal one and not a nicety: the button that concludes a paid contract has to say that it costs money. --}} {{ __('order.buy') }}
@endforeach

{{ __('order.terms') }}

@endif