@push('style') @endpush @php $activeSection = $filters['active_section']; $formatNumber = fn ($value, $decimals = 0) => number_format((float) $value, $decimals); $formatPercent = fn ($value) => number_format((float) $value, 1) . '%'; $overviewLink = fn ($section) => route('reports.index', array_merge(request()->query(), ['section' => $section])); $quickFilterLink = fn ($range) => route('reports.index', array_merge( request()->except(['from', 'to', 'range']), ['range' => $range, 'section' => $activeSection], )); $resetFilterLink = route('reports.index', ['section' => $activeSection]); $activeRange = $filters['active_range']; $isToday = $activeRange === 'day'; $isLastWeek = $activeRange === 'week'; $isLastMonth = $activeRange === 'month'; $topAgent = $agent_performance[0] ?? null; $topSource = $source_performance[0] ?? null; $topAdCode = $ad_performance[0] ?? null; @endphp
CRM Control Center
Sales Reports Dashboard

{{ \Carbon\Carbon::parse($filters['from'])->format('M d, Y') }} - {{ \Carbon\Carbon::parse($filters['to'])->format('M d, Y') }}

Revenue Trend

{{ $charts['revenue_trend']['interval_label'] }} paid value and transaction count

Top Revenue Owners

Ranked by paid revenue in selected range

@forelse($agent_performance as $agent) {{ $agent['agent_name'] }}
{{ $agent['payments_count'] }}
@empty
No revenue activity in this range.
@endforelse
Funnel Snapshot

Current sales funnel stage distribution

@foreach($stage_cards as $card)
{{ $card['label'] }} {{ $card['count'] }}
@endforeach
Conversion by Source

Lead volume and win rate by CRM source

@forelse($source_performance as $source) {{ $source['label'] }}
{{ $formatPercent($source['conversion_rate']) }}
@empty
No source conversion data in this range.
@endforelse
Ad Quality Proxy

High-intent is derived from active pipeline and won stages

Top Ad Code
{{ $topAdCode['ad_code'] ?? 'N/A' }}
Top Source Quality
{{ $topSource['label'] ?? 'N/A' }}
High-Intent Share
{{ $formatPercent($summary['high_intent_share']) }}
Ad Code Leaderboard

Workflow-based quality proxy per ad code

@push('script') @endpush