@php($stats = $this->stats())
@foreach (\App\Filament\Pages\Statistics::PERIODS as $period) {{ __('panel.statistics.last_days', ['days' => $period]) }} @endforeach
@foreach ($stats->byLocale() as $locale => $row) @php($delta = $this->change($row['views'], $row['previous']))
{{ config("locales.supported.{$locale}.native", $locale) }} {{ number_format($row['views'], 0, ',', '.') }} str_starts_with($delta, '+'), 'st-down' => str_starts_with($delta, '−')])>{{ $delta }} · {{ $row['share'] }} %
@endforeach
@livewire(\App\Filament\Charts\ViewsByLanguageChart::class, ['days' => $days], key('views-chart-'.$days)) @php($top = $stats->top()) @if ($top->isEmpty())

{{ __('panel.statistics.no_views') }}

@else @foreach ($top as $row) @php($delta = $this->change($row['views'], $row['previous'])) @endforeach
{{ __('panel.statistics.columns.title') }} {{ __('panel.statistics.columns.type') }} {{ __('panel.statistics.columns.views') }} {{ __('panel.statistics.columns.change') }}
@if ($row['url']) {{ $row['title'] }} @else {{ $row['title'] }} @endif {{ __("panel.statistics.types.{$row['type']}") }} {{ number_format($row['views'], 0, ',', '.') }} str_starts_with($delta, '+'), 'st-down' => str_starts_with($delta, '−')])>{{ $delta }}
@endif
@php($unread = $stats->unread()) @if ($unread->isEmpty())

{{ __('panel.statistics.all_read') }}

@else @endif