@extends('layouts.core.frontend_dark', [ 'subscriptionPage' => true, ]) @section('title', trans('messages.subscriptions')) @section('head') @endsection @section('menu_title') @include('subscription._title') @endsection @section('menu_right') @include('layouts.core._top_activity_log') @include('layouts.core._menu_frontend_user', [ 'menu' => 'subscription', ]) @endsection @section('content')

{{ trans('messages.subscription.choose_a_plan') }}

@if ($getLastCancelledOrEndedSubscription) @include('elements._notification', [ 'level' => 'warning', 'message' => trans('messages.subscription.ended_intro', [ 'ended_at' => Auth::user()->customer->formatDateTime($getLastCancelledOrEndedSubscription->current_period_ends_at, 'datetime_full'), 'plan' => $getLastCancelledOrEndedSubscription->plan->name, ]) ]) @endif @include('elements._notification', [ 'level' => 'warning', 'message' => trans('messages.no_plan.title') ])

{{ trans('messages.select_plan.wording') }}

@if (empty($plans))
@include('elements._notification', [ 'level' => 'danger', 'message' => trans('messages.plan.no_available_plan') ])
@else
@foreach ($plans as $key => $plan)
{!! format_price($plan->price, $plan->currency->format, true) !!} {{ $plan->currency->code }}

restore {{ $plan->displayFrequencyTime() }}


{{ $plan->description }}

{{ $plan->displayTotalQuota() }} {{ trans('messages.sending_total_quota_label') }}
{{ $plan->displayMaxSubscriber() }} {{ trans('messages.contacts') }}
@if ($plan->isFree() || $plan->hasTrial()) {{ trans('messages.plan.select') }} @else {{ trans('messages.plan.buy') }} @endif @if ($plan->hasTrial())

{{ trans('messages.plan.has_trial', [ 'time' => $plan->getTrialPeriodTimePhrase(), ]) }}

@endif
@endforeach
@endif
@endsection