@section('site_title', formatTitle([$website->url, __('Overview'), config('settings.title')]))
@include('icons.overview', ['class' => 'fill-current width-5 height-5'])
{{ __('Visitors') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('stats.growth', ['growthCurrent' => $totalVisitors, 'growthPrevious' => $totalVisitorsOld])
{{ number_format($totalVisitors, 0, __('.'), __(',')) }}
{{ __('Pageviews') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('stats.growth', ['growthCurrent' => $totalPageviews, 'growthPrevious' => $totalPageviewsOld])
{{ number_format($totalPageviews, 0, __('.'), __(',')) }}
{{ __('Pages') }}
@if(count($pages) == 0) {{ __('No data') }}. @else
{{ __('URL') }}
{{ __('Pageviews') }}
@foreach($pages as $page)
{{ number_format($page->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($pages) > 0) @endif
{{ __('Referrers') }}
@if(count($referrers) == 0) {{ __('No data') }}. @else
{{ __('Website') }}
{{ __('Visitors') }}
@foreach($referrers as $referrer)
@if($referrer->value)
@else
{{ __('Direct, Email, SMS') }}
@endif
{{ number_format($referrer->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($referrers) > 0) @endif
{{ __('Countries') }}
@if(count($countries) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Visitors') }}
@foreach($countries as $country)
@if(!empty(explode(':', $country->value)[1])) {{ explode(':', $country->value)[1] }} @else {{ __('Unknown') }} @endif
{{ number_format($country->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($countries) > 0) @endif
{{ __('Browsers') }}
@if(count($browsers) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Visitors') }}
@foreach($browsers as $browser)
@if($browser->value) {{ $browser->value }} @else {{ __('Unknown') }} @endif
{{ number_format($browser->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($browsers) > 0) @endif
{{ __('Operating systems') }}
@if(count($operatingSystems) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Visitors') }}
@foreach($operatingSystems as $operatingSystem)
@if($operatingSystem->value) {{ $operatingSystem->value }} @else {{ __('Unknown') }} @endif
{{ number_format($operatingSystem->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($operatingSystems) > 0) @endif
{{ __('Events') }}
@if(count($events) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Completions') }}
@foreach($events as $event)
{{ explode(':', $event->value)[0] }}
@if(!empty(explode(':', $event->value)[1]) || !empty(explode(':', $event->value)[2])) @if(!empty(explode(':', $event->value)[1])) {{ number_format((explode(':', $event->value)[1] * $event->count), 2, __('.'), __(',')) }} @endif @if(!empty(explode(':', $event->value)[2])) {{ explode(':', $event->value)[2] }} @endif @endif {{ number_format($event->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($events) > 0) @endif