{{-- Include Datepicker CSS/JS if needed, or use Livewire-native date inputs --}}
@include('livewire.admin.seodashboards.tab') {{-- ── Page header ── --}}

Top URLs — Traffic Report

Ranked by end-date clicks  ·  with 7-day and full range data

{{-- ── Filters (Updated for Livewire) ── --}}
{{-- Livewire refreshes automatically, but we can add a manual refresh if desired --}}
{{-- ── Fallback notice ── --}} @if(!empty($isFallback))
⚠ No date selected — showing last 30 days by default ({{ \Carbon\Carbon::parse($dateFrom)->format('d M Y') }} → {{ \Carbon\Carbon::parse($dateTo)->format('d M Y') }})
@endif {{-- ── Summary cards ── --}}
Total URLs
{{ number_format($summary['total_urls']) }}
in range
Clicks — {{ \Carbon\Carbon::parse($dateTo)->format('d M') }}
{{ number_format($summary['total_clicks_1d']) }}
end date
Clicks — 7 days
{{ number_format($summary['total_clicks_7d']) }}
Last 7 days
Clicks — range
{{ number_format($summary['total_clicks_range']) }}
Total Period
View — range
{{ number_format($summary['total_views_range']) }}
Total Period
Impresion — range
{{ number_format($summary['total_impressions']) }}
Total Period
{{-- ── Data table ── --}}
@forelse($urls as $row) @empty @endforelse
# URL / Slug Category Clicks — end day Clicks — 7D Clicks — range
@php $rc = match ($row->rank) { 1 => 'r1', 2 => 'r2', 3 => 'r3', default => ''}; @endphp {{ $row->rank }} {{ $row->slug }}
{{ $row->last_date }}  ·  {{ $row->trend }}
{{ $row->category }}
{{ number_format($row->clicks_1d) }}
{{ $row->bar_pct }}%
{{ number_format($row->clicks_7d) }}
{{ number_format($row->clicks_range) }}
No data found.
@if($paginated->hasPages())
Showing {{ $paginated->firstItem() }}{{ $paginated->lastItem() }}
{{ $paginated->links() }}
@endif