@extends('layouts.app') @section('site_title', formatTitle([$link->alias, __('Operating systems'), __('Stats'), config('settings.title')])) @section('head_content') @if (count(request()->all()) > 0) @endif @endsection @section('content')
@if (config('settings.ad_stats_header')) @if(!Auth::check() || !Auth::user()->active_plan->features->no_ads)
{!! config('settings.ad_stats_header') !!}
@endif @endif @include('stats.partials.header') @if($link->user->can('linkStats', [App\Models\User::class]) || (Auth::check() && Auth::user()->isAdmin()))
{{ __('Operating systems') }}
@include('stats.partials.table-search', ['name' => __('Name'), 'count' => __('Clicks')])
@include('stats.partials.table-export')
@if(count($operatingSystems) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Clicks') }}
{{ __('Total') }}
{{ number_format($total->count, 0, __('.'), __(',')) }}
{{ number_format((($total->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@foreach($operatingSystems as $operatingSystem)
@if($operatingSystem->value) {{ $operatingSystem->value }} @else {{ __('Unknown') }} @endif
{{ number_format($operatingSystem->count, 0, __('.'), __(',')) }}
{{ number_format((($operatingSystem->count / $total->count) * 100), 1, __('.'), __(',')) }}%
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $operatingSystems->firstItem(), 'to' => $operatingSystems->lastItem(), 'total' => $operatingSystems->total()]) }}
{{ $operatingSystems->onEachSide(1)->links() }}
@endif
@else
@if(enabledPaymentProcessors()) @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
{{ __('Report generated on :date at :time (UTC :offset).', ['date' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')), 'time' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format('H:i:s'), 'offset' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->getOffsetString()]) }} {{ __('Refresh report') }}
@if (config('settings.ad_stats_footer')) @if(!Auth::check() || !Auth::user()->active_plan->features->no_ads)
{!! config('settings.ad_stats_footer') !!}
@endif @endif @include('shared.modals.share-link')
@endsection @include('shared.sidebars.user')