{{-- Header --}}

Analytics

Click-through data for your workspace

{{-- Range buttons --}}
@foreach(['24h' => '24h', '7d' => '7d', '30d' => '30d', '90d' => '90d'] as $key => $label) @endforeach
{{-- Filter bar --}}
@if($country || $device || $linkId) @endif
{{-- Summary metrics --}}
{{ strtoupper($range) }}
{{ number_format($totalFiltered) }}
filtered clicks
All-time
{{ number_format($allTime) }}
total clicks
Today
{{ number_format($totalToday) }}
since midnight
{{-- Top Countries --}}
Top Countries
@if($country) @endif
@forelse($byCountry as $row) @php $pct = $totalFiltered > 0 ? round(($row->total / $totalFiltered) * 100) : 0; @endphp
{{ number_format($row->total) }}
@empty
No data for this period
@endforelse
{{-- By Device --}}
By Device
@if($device) @endif
@forelse($byDevice as $row) @php $pct = $totalFiltered > 0 ? round(($row->total / $totalFiltered) * 100) : 0; @endphp
{{ number_format($row->total) }}
@empty
No data for this period
@endforelse