{{ __('pages.offers.heading') }}

{{ __('pages.offers.intro') }}

{{-- One period for the whole page: the prices of every plan and the contact links follow it. --}}
@foreach (['monthly' => 'pages.offers.period_month', 'yearly' => 'pages.offers.period_year'] as $value => $label) @endforeach
@foreach ($plans as $plan)

{{ $plan->name }}

@if ($plan->isFree())

{{ App\Support\Money::format(0) }}

{{ __('pages.offers.free_forever') }}

@else

{{ App\Support\Money::format($plan->monthly_price) }}

{{ __('pages.offers.per_month') }}

{{ App\Support\Money::format($plan->yearly_price) }}

{{ __('pages.offers.per_year') }}

{{ __('pages.offers.yearly_equivalent', ['amount' => App\Support\Money::format(intdiv($plan->yearly_price, 12))]) }}

@endif
@guest {{ $plan->isFree() ? __('pages.offers.cta_free') : __('pages.offers.cta_paid') }} @unless ($plan->isFree())

{{ __('pages.offers.guest_hint') }}

@endunless @endguest @auth @php $isCurrent = $current && $current->is($plan); @endphp @if ($isCurrent)
{{ __('pages.offers.current') }}
@endif @unless ($plan->isFree()) {{-- The links are built on the server; Alpine only picks the period. --}}
@foreach (['monthly', 'yearly'] as $value)
{{ __('pages.offers.via_whatsapp') }} {{ __('pages.offers.via_email') }}
@endforeach

{{ __('pages.offers.after_payment') }}

@endunless @endauth
@endforeach

{{ __('pages.offers.how_to_pay') }}

{{ __('pages.offers.compare') }}

@foreach ($plans as $plan)@endforeach @foreach ($features as $code) @foreach ($plans as $plan) @php $f = $plan->features->firstWhere('feature_code', $code); $limited = App\Support\Features::isLimited($code); if (! $f || ! $f->enabled || ($limited && $f->limit_value === 0)) { $cell = __('ui.no'); $on = false; } elseif ($limited) { $cell = $f->limit_value === null ? __('ui.unlimited') : (string) $f->limit_value; $on = true; } else { $cell = __('ui.yes'); $on = true; } @endphp @endforeach @endforeach
{{ __('pages.offers.feature') }}{{ $plan->name }}
{{ __('features.'.$code) }}{{ $cell }}