@foreach($plans as $plan)
{{ $plan->name }}
@if($plan->hasPrice())
{{ 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->links < 0) {{ __('Unlimited') }} @elseif($plan->features->links > 0) {{ number_format($plan->features->links, 0, __('.'), __(',')) }} @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Spaces') }}
@if($plan->features->spaces < 0) {{ __('Unlimited') }} @elseif($plan->features->spaces > 0) {{ number_format($plan->features->spaces, 0, __('.'), __(',')) }} @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Domains') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($plan->features->domains < 0) {{ __('Unlimited') }} @elseif($plan->features->domains > 0) {{ number_format($plan->features->domains, 0, __('.'), __(',')) }} @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Pixels') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($plan->features->pixels < 0) {{ __('Unlimited') }} @elseif($plan->features->pixels > 0) {{ number_format($plan->features->pixels, 0, __('.'), __(',')) }} @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
@if(count($domains))
{{ __('Additional domains') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($plan->features->global_domains) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
@endif
{{ __('Advanced stats') }}
@if($plan->features->stats) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Targeting') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($plan->features->targeting) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
@if($plan->features->deep_links) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Link password') }}
@if($plan->features->password) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Link expiration') }}
@include('icons.info', ['class' => 'text-muted width-4 height-4 fill-current'])
@if($plan->features->expiration) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Link deactivation') }}
@if($plan->features->disabled) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('Data export') }}
@if($plan->features->data_export) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('UTM Builder') }}
@if($plan->features->utm) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
{{ __('API access') }}
@if($plan->features->api) @include('icons.checkmark', ['class' => 'text-success fill-current width-4 height-4']) @else @include('icons.close', ['class' => 'text-black-50 fill-current width-4 height-4']) @endif
@endforeach