@include('livewire.admin.seodashboards.tab')

Top Authors — Traffic Dashboard

Ranked by end-date traffic · 1-day · 7-day · full range

{{-- Filter Card --}}
@if(!empty($summary))
Range: {{ Carbon\Carbon::parse($summary['date_from'])->format('d M Y') }} → {{ Carbon\Carbon::parse($summary['date_to'])->format('d M Y') }}  ·  End-day: {{ Carbon\Carbon::parse($summary['date_1'])->format('d M Y') }}  ·  7-day: {{ Carbon\Carbon::parse($summary['date_7'])->format('d M') }} – {{ Carbon\Carbon::parse($summary['date_1'])->format('d M Y') }}
{{-- [KEEPING ALL SUMMARY CARDS EXACTLY AS THEY WERE] --}}
Total authors
{{ number_format($summary['total_authors']) }}
{{-- ... Add other summary cards here mirroring your original HTML ... --}}
Clicks — {{ Carbon\Carbon::parse($summary['date_1'])->format('d M') }}
{{ number_format($summary['total_clicks_1d']) }}
Clicks — 7D
{{ number_format($summary['total_clicks_7d']) }}
Views — Range
{{ number_format($summary['total_views_range']) }}
Clicks — Range
{{ number_format($summary['total_clicks_range']) }}
Total URLs
{{ number_format($summary['total_urls']) }}
{{-- (Add remaining cards as per your design) --}}
@endif {{-- Table --}}
@forelse($authors as $row) @php $rc = match ($row->rank) { 1 => 'r1', 2 => 'r2', 3 => 'r3', default => ''}; $initials = collect(explode(' ', $row->author_name))->map(fn($w) => strtoupper(substr($w, 0, 1)))->take(2)->implode(''); @endphp @empty @endforelse
# Author URLs 24H Traffic Range Clicks
{{ $row->rank }}
{{ $initials }}
{{ $row->author_name }}
{{ number_format($row->total_urls) }}
{{ $row->active_days }}d active
{{ number_format($row->clicks_1d) }}
{{ number_format($row->views_1d) }} View · {{ number_format($row->users_1d) }} users
{{ $row->bar_pct }}%
{{ number_format($row->clicks_range) }}
({{ number_format($row->views_range) }} View)
No data found.