@extends('core::layouts.app') @section('title', $page_title ) @section('content')

{{ $page_title }}

@if($tracklinks->count() > 0)

@lang('Countries')

@foreach($statistics['country_code'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['country_code_total_sum'] * 100, 1); @endphp
{{ get_country_from_country_code($key) }}
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach

@lang('Referrers')

@foreach($statistics['referrer_host'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['referrer_host_total_sum'] * 100, 1); @endphp
@if(!$key) @lang('Redirect') @elseif($key == 'qr') @lang('QR') @else {{ $key }} @endif
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach

@lang('Devices')

@foreach($statistics['device_type'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['device_type_total_sum'] * 100, 1); @endphp
@if($key) {{ $key }} @else @lang('Unknown') @endif
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach

@lang('Operating Systems')

@foreach($statistics['os_name'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['os_name_total_sum'] * 100, 1); @endphp
@if($key) {{ $key }} @else @lang('Unknown') @endif
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach

@lang('Browsers')

@foreach($statistics['browser_name'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['browser_name_total_sum'] * 100, 1); @endphp
@if($key) {{ $key }} @else @lang('Unknown') @endif
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach

@lang('Languages')

@foreach($statistics['browser_language'] as $key => $value) @if($loop->index >= 5) @break @endif @php $percentage = round($value / $statistics['browser_language_total_sum'] * 100, 1); @endphp
{{ get_language_from_locale($key) }}
{{ nr($percentage) . '%' }} {{ nr($value) }}
@endforeach
@else

@lang('Not found any data for statistics')

@lang('Refresh')
@endif @stop @push('head') @endpush @push('scripts') @endpush