@section('site_title', formatTitle([$website->domain, __('Countries'), config('settings.title')]))
{{ __('Countries') }}
@include('stats.filters', ['name' => __('Name'), 'count' => __('Visitors')])
@if(count($countries) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Visitors') }}
{{ __('Total') }}
{{ number_format($total->count, 0, __('.'), __(',')) }}
{{ number_format((($total->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@foreach($countries as $country)
{{ (!empty(explode(':', $country->value)[1]) ? explode(':', $country->value)[1] : __('Unknown')) }}
@if(!empty(explode(':', $country->value)[1])) {{ explode(':', $country->value)[1] }} @else {{ __('Unknown') }} @endif
{{ number_format($country->count, 0, __('.'), __(',')) }}
{{ number_format((($country->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $countries->firstItem(), 'to' => $countries->lastItem(), 'total' => $countries->total()]) }}
{{ $countries->onEachSide(1)->links() }}
@endif