{{-- ================= PAGE HEADER ================= --}}
{{-- ================= TOP TABS ================= --}}
@include('livewire.admin.partials.tab')
{{-- ================= FILTER CARD ================= --}}
{{-- ================= SUMMARY CARDS ================= --}} @php $summaryCards = [ ['label' => 'URLs (Yesterday)', 'value' => $total['yesterday_news'], 'color' => 'primary'], ['label' => 'Views (Yesterday)', 'value' => $total['yesterday_views'], 'color' => 'success'], ['label' => 'Users (Yesterday)', 'value' => $total['yesterday_users'], 'color' => 'info'], ['label' => 'Tr/URL (Yesterday)', 'value' => $total['traffic_per_yesterday_news'], 'color' => 'warning'], ['label' => 'URLs (Last Week)', 'value' => $total['last_7_days_news'], 'color' => 'primary'], ['label' => 'Views (Last Week)', 'value' => $total['last_7_days_views'], 'color' => 'success'], ['label' => 'Users (Last Week)', 'value' => $total['last_7_days_users'], 'color' => 'info'], ['label' => 'Tr/URL (Last Week)', 'value' => $total['traffic_per_last_week_news'], 'color' => 'warning'], ['label' => 'URLs (Last Month)', 'value' => $total['last_1_month_news'], 'color' => 'primary'], ['label' => 'Views (Last Month)', 'value' => $total['last_1_month_views'], 'color' => 'success'], ['label' => 'Users (Last Month)', 'value' => $total['last_1_month_users'], 'color' => 'info'], ['label' => 'Tr/URL (Last Month)', 'value' => $total['traffic_per_last_month_news'], 'color' => 'warning'], ]; @endphp
@foreach ($summaryCards as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach
{{-- ================= DATA TABLE ================= --}}
@forelse ($groupedData as $group) {{-- Group Header Row --}} {{-- Group Items --}} @foreach ($group['items'] as $news) @endforeach {{-- Group Total Row --}} @empty @endforelse {{-- Grand Total Row --}}
Content Details Google Search Console Data Google Analytics Data
Category URLs
({{ $total['yesterday_news'] }})
Views
({{ $total['yesterday_views'] }})
Users
({{ $total['yesterday_users'] }})
Tr/URL
({{ $total['traffic_per_yesterday_news'] }})
URLs
({{ $total['last_7_days_news'] }})
Views
({{ $total['last_7_days_views'] }})
Users
({{ $total['last_7_days_users'] }})
Tr/URL
({{ $total['traffic_per_last_week_news'] }})
URLs
({{ $total['last_1_month_news'] }})
Views
({{ $total['last_1_month_views'] }})
Users
({{ $total['last_1_month_users'] }})
Tr/URL
({{ $total['traffic_per_last_month_news'] }})
Action
{{ $group['group_name'] }}
{{ $news->category_type }} {{ $news->yesterday_news }} {{ $news->yesterday_views }} {{ $news->yesterday_users }} {{ round($news->new_traffic_yesterday_news, 2) }} {{ $news->last_7_days_news }} {{ $news->last_7_days_views }} {{ $news->last_7_days_users }} {{ round($news->new_traffic_last_week_news, 2) }} {{ $news->last_1_month_news }} {{ $news->last_1_month_views }} {{ $news->last_1_month_users }} {{ round($news->new_traffic_last_month_news, 2) }}
Group Total {{ $group['total']['yesterday_news'] }} {{ $group['total']['yesterday_views'] }} {{ $group['total']['yesterday_users'] }} {{ $group['total']['yesterday_news'] > 0 ? round($group['total']['yesterday_users'] / $group['total']['yesterday_news'], 2) : 0 }} {{ $group['total']['last_7_days_news'] }} {{ $group['total']['last_7_days_views'] }} {{ $group['total']['last_7_days_users'] }} {{ $group['total']['last_7_days_news'] > 0 ? round($group['total']['last_7_days_users'] / $group['total']['last_7_days_news'], 2) : 0 }} {{ $group['total']['last_1_month_news'] }} {{ $group['total']['last_1_month_views'] }} {{ $group['total']['last_1_month_users'] }} {{ $group['total']['last_1_month_news'] > 0 ? round($group['total']['last_1_month_users'] / $group['total']['last_1_month_news'], 2) : 0 }}
No Data Found
Grand Total {{ $total['yesterday_news'] }} {{ $total['yesterday_views'] }} {{ $total['yesterday_users'] }} {{ $total['traffic_per_yesterday_news'] }} {{ $total['last_7_days_news'] }} {{ $total['last_7_days_views'] }} {{ $total['last_7_days_users'] }} {{ $total['traffic_per_last_week_news'] }} {{ $total['last_1_month_news'] }} {{ $total['last_1_month_views'] }} {{ $total['last_1_month_users'] }} {{ $total['traffic_per_last_month_news'] }}