@foreach($plans as $plan)
{{ $plan->name }}
@if(!$plan->isDefault())
{{ formatMoney($plan->amount_month, $plan->currency) }} {{ $plan->currency }}
{{ __('Month') }}
{{ formatMoney($plan->amount_year, $plan->currency) }} {{ $plan->currency }}
{{ __('Year') }} @if(($plan->amount_month * 12) > $plan->amount_year) {{ __(':value% off', ['value' => number_format(((($plan->amount_month*12) - $plan->amount_year)/($plan->amount_month * 12) * 100), 0)]) }} @endif
@else
{{ __('Free') }}
{{ __('Free') }}
{{ __('Month') }}
{{ __('Year') }}
@endif
@if($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($plan->features->pageviews < 0) {{ __('Unlimited pageviews') }} @else($plan->features->pageviews) {{ __(($plan->features->pageviews == 1 ? ':number pageview' : ':number pageviews'), ['number' => number_format($plan->features->pageviews, 0, __('.'), __(','))]) }} / {{ mb_strtolower(__('Month')) }} @endif
@if($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($plan->features->websites < 0) {{ __('Unlimited websites') }} @else($plan->features->websites) {{ __(($plan->features->websites == 1 ? ':number website' : ':number websites'), ['number' => number_format($plan->features->websites, 0, __('.'), __(','))]) }} @endif
@if($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($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($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') }}
@endforeach