@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->links != 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->spaces != 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->spaces < 0) {{ __('Unlimited spaces') }} @elseif($user->plan->features->spaces) {{ number_format($user->spacesCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->spaces == 1 ? ':number space' : ':number spaces'), ['number' => number_format($user->plan->features->spaces, 0, __('.'), __(','))]) }} @endif
@if($user->plan->features->domains != 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->domains < 0) {{ __('Unlimited domains') }} @elseif($user->plan->features->domains) {{ number_format($user->domainsCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->domains == 1 ? ':number domain' : ':number domains'), ['number' => number_format($user->plan->features->domains, 0, __('.'), __(','))]) }} @endif
@if($user->plan->features->pixels != 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->pixels < 0) {{ __('Unlimited pixels') }} @elseif($user->plan->features->pixels) {{ number_format($user->pixelsCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->pixels == 1 ? ':number pixel' : ':number pixels'), ['number' => number_format($user->plan->features->pixels, 0, __('.'), __(','))]) }} @endif
@if(count($domains))
@if($user->plan->features->global_domains) @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
{{ __('Additional domains') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@endif
@if($user->plan->features->link_stats) @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->link_targeting) @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->link_password) @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->link_expiration) @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->link_disabling) @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->link_deep) @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->link_utm) @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->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