@section('site_title', formatTitle([$website->url, __('Cities'), config('settings.title')]))
@include('icons.city', ['class' => 'fill-current width-5 height-5'])
@if(isset($first->value))
@if(!empty(explode(':', $first->value)[1])) {{ explode(':', $first->value)[1] }} @else {{ __('Unknown') }} @endif
@else
{{ __('No data') }}
@endif
{{ (isset($first->count) ? number_format($first->count, 0, __('.'), __(',')) : '—') }}
@include('icons.trending_up', ['class' => 'fill-current width-3 height-3'])
{{ mb_strtolower(__('Most popular')) }}
{{ (isset($first->count) ? number_format((($first->count / $total->count) * 100), 1, __('.'), __(',')).'%' : '—') }}
@if(isset($last->value))
@if(!empty(explode(':', $last->value)[1])) {{ explode(':', $last->value)[1] }} @else {{ __('Unknown') }} @endif
@else
{{ __('No data') }}
@endif
{{ (isset($last->count) ? number_format($last->count, 0, __('.'), __(',')) : '—') }}
@include('icons.trending_down', ['class' => 'fill-current width-3 height-3'])
{{ mb_strtolower(__('Least popular')) }}
{{ (isset($last->count) ? number_format((($last->count / $total->count) * 100), 1, __('.'), __(',')).'%' : '—') }}
{{ __('Cities') }}
@include('stats.filters')
@if(count($cities) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Visitors') }}
{{ __('Total') }}
{{ number_format($total->count, 0, __('.'), __(',')) }}
{{ number_format((($total->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@foreach($cities as $city)
@if(!empty(explode(':', $city->value)[1])) {{ explode(':', $city->value)[1] }} @else {{ __('Unknown') }} @endif
{{ number_format($city->count, 0, __('.'), __(',')) }}
{{ number_format((($city->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $cities->firstItem(), 'to' => $cities->lastItem(), 'total' => $cities->total()]) }}
{{ $cities->onEachSide(1)->links() }}
@endif