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

GA Data

{{-- Yesterday --}} {{-- Last Week --}} {{-- Last Month --}} @foreach ($cryptoNews as $row) {{-- 🔹 First Table: Matched URLs --}} {{-- 🔹 Second Table: All URLs --}} @endforeach
Yesterday ({{$formattedDateYesterday}}) Last Week ({{$formattedDateLastWeek}} to {{$yesterday_last}}) Last Month ({{$formattedDateLastMonth}} to {{$yesterday_last}})
Author Name Category Total URL ({{ $totalAllViews['yesterday_all_urls_total'] }}) Total Traffic ({{ $totalAllViews['yesterday_all_users_total'] }}) Total Views ({{ $totalAllViews['yesterday_all_views_total'] }}) Tr/URL ({{ $totalAllViews['yesterday_all_urls_total'] > 0 ? round($totalAllViews['yesterday_all_users_total'] / $totalAllViews['yesterday_all_urls_total'], 2) : 0 }})Total URL ({{ $totalAllViews['last_week_all_urls_total'] }}) Total Traffic ({{ $totalAllViews['last_week_all_users_total'] }}) Total Views ({{ $totalAllViews['last_week_all_views_total'] }}) Tr/URL ({{ $totalAllViews['last_week_all_urls_total'] > 0 ? round($totalAllViews['last_week_all_users_total'] / $totalAllViews['last_week_all_urls_total'], 2) : 0 }})Total URL ({{ $totalAllViews['last_month_all_urls_total'] }}) Total Traffic({{ $totalAllViews['last_month_all_users_total'] }}) Total Views({{ $totalAllViews['last_month_all_views_total'] }}) Tr/URL ({{ $totalAllViews['last_month_all_urls_total'] > 0 ? round($totalAllViews['last_month_all_users_total'] / $totalAllViews['last_month_all_urls_total'], 2) : 0 }}) Action
{{ $row['author_name'] }} Post{{ $row['yesterday_urls'] }} {{ $row['yesterday_users'] }} {{ $row['yesterday_views'] }} {{ $row['yesterday_urls'] > 0 ? round($row['yesterday_users'] / $row['yesterday_urls'], 2) : 0 }} {{ $row['last_week_urls'] }} {{ $row['last_week_users'] }} {{ $row['last_week_views'] }} {{ $row['last_week_urls'] > 0 ? round($row['last_week_users'] / $row['last_week_urls'], 2) : 0 }} {{ $row['last_month_urls'] }} {{ $row['last_month_users'] }} {{ $row['last_month_views'] }} {{ $row['last_month_urls'] > 0 ? round($row['last_month_users'] / $row['last_month_urls'], 2) : 0 }}
Traffic {{ $row['yesterday_all_urls'] }} {{ $row['yesterday_all_users'] }} {{ $row['yesterday_all_views'] }} {{ $row['yesterday_all_urls'] > 0 ? round($row['yesterday_all_users'] / $row['yesterday_all_urls'], 2) : 0 }} {{ $row['last_week_all_urls'] }} {{ $row['last_week_all_users'] }} {{ $row['last_week_all_views'] }} {{ $row['last_week_all_urls'] > 0 ? round($row['last_week_all_users'] / $row['last_week_all_urls'], 2) : 0 }} {{ $row['last_month_all_urls'] }} {{ $row['last_month_all_users'] }} {{ $row['last_month_all_views'] }} {{ $row['last_month_all_urls'] > 0 ? round($row['last_month_all_users'] / $row['last_month_all_urls'], 2) : 0 }}