@livewireStyles
{{-- ✅ Hide nav & sidebar on login/forgot password --}} @if (!request()->is('admin/login') && !request()->is('admin/forgot-password')) @include('admin.layouts.nav') @include('admin.layouts.sidebar') @endif {{-- ✅ Main Content --}}
Dashboard
@include('livewire.admin.partials.tab')
All
Content GSC
Content GA
Event GSC
Event GA
Search
Reset
Export
GA Data
Yesterday ({{$formattedDateYesterday}})
Last Week ({{$formattedDateLastWeek}} to {{$yesterday_last}})
Last Month ({{$formattedDateLastMonth}} to {{$yesterday_last}})
Author Name
Category
{{-- Yesterday --}}
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 }})
{{-- Last Week --}}
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 }})
{{-- Last Month --}}
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
@foreach ($cryptoNews as $row)
{{ $row['author_name'] }}
Post
{{-- 🔹 First Table: Matched URLs --}}
{{ $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 }}
{{-- 🔹 Second Table: All URLs --}}
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 }}
@endforeach
{{-- ✅ JS Libraries --}} @livewireScripts @stack('scripts')