{{-- Reusing your exact CSS --}}
@include('livewire.admin.seodashboards.tab')

Traffic Trends

Daily total clicks โ€” one row per day

{{-- Filter --}}
{{-- Active range label --}}
Showing {{ Carbon\Carbon::parse($start_date)->format('d M Y') }} โ†’ {{ Carbon\Carbon::parse($end_date)->format('d M Y') }}  ยท  {{ $summary['total_days'] }} days
{{-- Summary cards --}}
Total clicks
{{ number_format($summary['total_clicks']) }}
Avg / day
{{ number_format($summary['avg_clicks_per_day']) }}
Total views
{{ number_format($summary['total_views']) }}
Total impressions
{{ number_format($summary['total_impressions']) }}
Best day
@if($summary['max_clicks_day'])
{{ number_format($summary['max_clicks_day']->total_clicks) }}
{{ \Carbon\Carbon::parse($summary['max_clicks_day']->date)->format('d M Y') }}
@else
โ€”
@endif
Days with data
{{ $summary['days_with_data'] }}
{{-- Add other cards mirroring your original HTML --}}
{{-- Chart --}}

Daily clicks

{{-- Table --}}
@forelse($rows as $i => $row) @empty @endforelse
# Date Total Clicks Total Views Avg CTR Progress
{{ $i + 1 }} {{ Carbon\Carbon::parse($row->date)->format('d M Y') }} {{ number_format($row->total_clicks) }} {{ number_format($row->total_views) }} {{ $row->avg_ctr }}% @if ($row->daily_target)
{{ $row->progress_pct }}% @endif
No data found.