@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->reports != 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->reports < 0) {{ __('Unlimited reports') }} @else($user->plan->features->reports) {{ number_format($reportsCount, 0, __('.'), __(',')) }} / {{ __(($user->plan->features->reports == 1 ? ':number report' : ':number reports'), ['number' => number_format($user->plan->features->reports, 0, __('.'), __(','))]) }} / {{ mb_strtolower(__('Month')) }} @endif
@if($user->plan->features->branded_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
{{ __('Branded reports') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($user->plan->features->white_label_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
{{ __('White-label reports') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($user->plan->features->tools) @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
{{ __('Tools') }}
@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