@include('livewire.admin.partials.tab')
{{-- Flash Message --}} @if (session()->has('error')) @endif {{-- Loading Indicator --}}
Refreshing data...
{{-- Date labels computed here in blade (pure PHP, no facades). Route/request logic is handled by computed properties in the component: $dashboardType -> getDashboardTypeProperty() $currentSegment -> getCurrentSegmentProperty() $isIcoDashboard -> getIsIcoDashboardProperty() --}} @php $fYesterday = date('jS M', strtotime('-1 day')); $fYesterdayLast = date('jS M', strtotime('-2 day')); $fLastWeek = date('jS M', strtotime('-8 day')); $fLastMonth = date('jS M', strtotime('-32 day')); @endphp {{-- Sub-Tabs --}} {{-- SECTION 1: Current Team --}}
Only Google Analytics — Current Team
@if($team) @endif
@php $yUrls = $totalAllViews['yesterday_all_urls_total'] ?? 0; $yUsers = $totalAllViews['yesterday_all_users_total'] ?? 0; $yViews = $totalAllViews['yesterday_all_views_total'] ?? 0; $wUrls = $totalAllViews['last_week_all_urls_total'] ?? 0; $wUsers = $totalAllViews['last_week_all_users_total'] ?? 0; $wViews = $totalAllViews['last_week_all_views_total'] ?? 0; $mUrls = $totalAllViews['last_month_all_urls_total'] ?? 0; $mUsers = $totalAllViews['last_month_all_users_total'] ?? 0; $mViews = $totalAllViews['last_month_all_views_total'] ?? 0; @endphp @forelse ($cryptoNews as $row) @empty @endforelse
Yesterday ({{ $fYesterday }}) Last Week ({{ $fLastWeek }} – {{ $fYesterdayLast }}) Last Month ({{ $fLastMonth }} – {{ $fYesterdayLast }})
Author Category URLs
({{ $yUrls }})
Traffic
({{ $yUsers }})
Views
({{ $yViews }})
Tr/URL
({{ $yUrls > 0 ? round($yUsers / $yUrls, 2) : 0 }})
URLs
({{ $wUrls }})
Traffic
({{ $wUsers }})
Views
({{ $wViews }})
Tr/URL
({{ $wUrls > 0 ? round($wUsers / $wUrls, 2) : 0 }})
URLs
({{ $mUrls }})
Traffic
({{ $mUsers }})
Views
({{ $mViews }})
Tr/URL
({{ $mUrls > 0 ? round($mUsers / $mUrls, 2) : 0 }})
Action
{{ $row['author_name'] }} Post Data {{ $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 Data {{ $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 }}
No data found.
{{-- SECTION 2: Old Members --}}
Old Members
@if($team) @endif
@php $oyUrls = $totalAllViewsOther['yesterday_all_urls'] ?? 0; $oyUsers = $totalAllViewsOther['yesterday_all_users'] ?? 0; $oyViews = $totalAllViewsOther['yesterday_all_views'] ?? 0; $owUrls = $totalAllViewsOther['last_week_all_urls'] ?? 0; $owUsers = $totalAllViewsOther['last_week_all_users'] ?? 0; $owViews = $totalAllViewsOther['last_week_all_views'] ?? 0; $omUrls = $totalAllViewsOther['last_month_all_urls'] ?? 0; $omUsers = $totalAllViewsOther['last_month_all_users'] ?? 0; $omViews = $totalAllViewsOther['last_month_all_views'] ?? 0; @endphp @forelse ($crypto_news_other as $row) @empty @endforelse
Yesterday ({{ $fYesterday }}) Last Week ({{ $fLastWeek }} – {{ $fYesterdayLast }}) Last Month ({{ $fLastMonth }} – {{ $fYesterdayLast }})
Author Category URLs
({{ $oyUrls }})
Traffic
({{ $oyUsers }})
Views
({{ $oyViews }})
Tr/URL
({{ $oyUrls > 0 ? round($oyUsers / $oyUrls, 2) : 0 }})
URLs
({{ $owUrls }})
Traffic
({{ $owUsers }})
Views
({{ $owViews }})
Tr/URL
({{ $owUrls > 0 ? round($owUsers / $owUrls, 2) : 0 }})
URLs
({{ $omUrls }})
Traffic
({{ $omUsers }})
Views
({{ $omViews }})
Tr/URL
({{ $omUrls > 0 ? round($omUsers / $omUrls, 2) : 0 }})
Action
{{ $row['author_name'] }} Traffic Data {{ $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 }} @if(in_array(990, $permisssion_array ?? []) || $role_id == 1) @endif
No data found.