@section('site_title', formatTitle([__('Plan'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('dashboard'), 'title' => __('Home')], ['url' => route('account'), 'title' => __('Account')], ['title' => __('Plan')] ]])

{{ __('Plan') }}

@include('shared.message')
@csrf
{{ __('Plan') }}
{{ $user->plan->name }}
@if(!$user->planIsDefault()) @if($user->plan_payment_processor)
{{ __('Processor') }}
{{ config('payment.processors.' . $user->plan_payment_processor)['name'] }}
@endif @if($user->plan_amount && $user->plan_currency && $user->plan_interval)
{{ __('Amount') }}
{{ formatMoney($user->plan_amount, $user->plan_currency) }} {{ $user->plan_currency }} / {{ $user->plan_interval == 'month' ? __('Month') : __('Year') }}
@endif @if($user->plan_recurring_at)
{{ __('Recurring at') }}
{{ $user->plan_recurring_at->tz($user->timezone ?? config('app.timezone'))->format(__('Y-m-d')) }}
@endif @if($user->plan_trial_ends_at && $user->plan_trial_ends_at->gt(Carbon\Carbon::now()))
{{ __('Trial ends at') }}
{{ $user->plan_trial_ends_at->tz($user->timezone ?? config('app.timezone'))->format(__('Y-m-d')) }}
@endif @if($user->plan_ends_at)
{{ __('Ends at') }}
{{ $user->plan_ends_at->tz($user->timezone ?? config('app.timezone'))->format(__('Y-m-d')) }}
@endif @endif
{{ __('Features') }}

@if($user->plan->features->pageviews != 0) @include('icons.checkmark', ['class' => 'flex-shrink-0 text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'flex-shrink-0 text-muted fill-current width-4 height-4']) @endif
@if($user->plan->features->pageviews < 0) {{ __('Unlimited pageviews') }} @else($user->plan->features->pageviews) {{ number_format($pageviewsCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->pageviews == 1 ? ':number pageview' : ':number pageviews'), ['number' => number_format($user->plan->features->pageviews, 0, __('.'), __(','))]) }} @endif
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($user->plan->features->websites != 0) @include('icons.checkmark', ['class' => 'flex-shrink-0 text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'flex-shrink-0 text-muted fill-current width-4 height-4']) @endif
@if($user->plan->features->websites < 0) {{ __('Unlimited websites') }} @elseif($user->plan->features->websites) {{ number_format($user->websitesCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->websites == 1 ? ':number website' : ':number websites'), ['number' => number_format($user->plan->features->websites, 0, __('.'), __(','))]) }} @endif
@if($user->plan->features->email_reports) @include('icons.checkmark', ['class' => 'flex-shrink-0 text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'flex-shrink-0 text-muted fill-current width-4 height-4']) @endif
{{ __('Email reports') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($user->plan->features->data_export) @include('icons.checkmark', ['class' => 'flex-shrink-0 text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'flex-shrink-0 text-muted fill-current width-4 height-4']) @endif
{{ __('Data export') }}
@if($user->plan->features->api) @include('icons.checkmark', ['class' => 'flex-shrink-0 text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'flex-shrink-0 text-muted fill-current width-4 height-4']) @endif
{{ __('API') }}
@if(paymentProcessors()) @if($user->plan_recurring_at) @endif @endif