@section('site_title', formatTitle([$link->alias, __('Overview'), __('Stats'), config('settings.title')])) @if($link->user->can('stats', ['App\Models\Link']) || (Auth::check() && Auth::user()->role == 1))
{{ __('Clicks') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('stats.growth', ['growthCurrent' => $totalClicks, 'growthPrevious' => $totalClicksOld])
{{ number_format($totalClicks, 0, __('.'), __(',')) }}
{{ __('Original link') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
{{ mb_strlen($link->url) }}
{{ __('Shortened link') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
{{ mb_strlen($link->shortUrl) }}
{{ __('Referrers') }}
@if(count($referrers) == 0) {{ __('No data') }}. @else
{{ __('Website') }}
{{ __('Clicks') }}
@foreach($referrers as $referrer)
@if($referrer->value)
{{ $referrer->value }}
@else
{{ __('Unknown') }}
{{ __('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') }}
{{ __('Clicks') }}
@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, __('.'), __(',')) }}
@endforeach
@endif
@if(count($countries) > 0) @endif
{{ __('Browsers') }}
@if(count($browsers) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Clicks') }}
@foreach($browsers as $browser)
{{ $browser->value ?? __('Unknown') }}
@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') }}
{{ __('Clicks') }}
@foreach($operatingSystems as $operatingSystem)
{{ $operatingSystem->value ?? __('Unknown') }}
@if($operatingSystem->value) {{ $operatingSystem->value }} @else {{ __('Unknown') }} @endif
{{ number_format($operatingSystem->count, 0, __('.'), __(',')) }}
@endforeach
@endif
@if(count($operatingSystems) > 0) @endif
@else
@if(paymentProcessors()) @if(Auth::check() && $link->user->id == Auth::user()->id) @include('shared.features.locked') @else @include('shared.features.unavailable') @endif @else @include('shared.features.unavailable') @endif
@endif