@section('site_title', formatTitle([$link->alias, __('Devices'), __('Stats'), config('settings.title')])) @if($link->user->can('stats', ['App\Models\Link']) || (Auth::check() && Auth::user()->role == 1))
@include('icons.devices-other', ['class' => 'fill-current width-5 height-5'])
@if(isset($first->value))
@if($first->value) {{ Str::ucfirst($first->value) }} @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($last->value) {{ Str::ucfirst($last->value) }} @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, __('.'), __(',')).'%' : '—') }}
{{ __('Devices') }}
@include('stats.filters', ['name' => __('Type'), 'count' => __('Clicks')])
@if(count($devices) == 0) {{ __('No data') }}. @else
{{ __('Type') }}
{{ __('Clicks') }}
{{ __('Total') }}
{{ number_format($total->count, 0, __('.'), __(',')) }}
{{ number_format((($total->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@foreach($devices as $device)
@if($device->value) {{ Str::ucfirst($device->value) }} @else {{ __('Unknown') }} @endif
{{ number_format($device->count, 0, __('.'), __(',')) }}
{{ number_format((($device->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $devices->firstItem(), 'to' => $devices->lastItem(), 'total' => $devices->total()]) }}
{{ $devices->onEachSide(1)->links() }}
@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