@extends('layouts.dashboard') @section('title', 'Overview') @section('content') @php $cards = [ ['label' => 'Total Visits', 'value' => number_format($totals['hits']), 'icon' => 'chart-bar', 'color' => 'text-brand'], ['label' => 'Allowed', 'value' => number_format($totals['allowed']), 'icon' => 'check-circle', 'color' => 'text-green-500'], ['label' => 'Filtered', 'value' => number_format($totals['filtered']), 'icon' => 'shield-check', 'color' => 'text-red-500'], ['label' => 'Campaigns', 'value' => number_format($totals['campaigns']), 'icon' => 'megaphone', 'color' => 'text-sky-500'], ]; @endphp @unless($subscription)
Your account is inactive — pending payment approval. Submit a plan payment (with screenshot). Once an admin verifies it, your account activates and your campaign links start routing traffic.
Submit payment
@endunless
@foreach($cards as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach

Traffic — last 14 days

Allowed vs Filtered

Top countries

@forelse($topCountries as $c)
{{ $c->country_code ?: 'Unknown' }} {{ number_format($c->c) }}
@empty

No data yet.

@endforelse

Why traffic was filtered

@forelse($reasons as $r)
{{ $r->reason }} {{ number_format($r->c) }}
@empty

No filtered traffic yet.

@endforelse
@push('scripts') @endpush @endsection