{{-- Header --}}

Tableau de bord

Vue en temps réel de l'activité commerciale d'Aya

{{-- Stats principales --}}

Total leads

{{ $stats['total'] }}

Score moyen: {{ $stats['avg_score'] }}/100

Chauds (A)

{{ $stats['hot'] }}

Score ≥ 75

RDV cette semaine

{{ $stats['meeting_this_week'] }}

Propositions: {{ $stats['proposals_out'] }}

Gagnés ce mois

{{ $stats['closedwon_month'] }}

@if($linkedinPending > 0)

LinkedIn: {{ $linkedinPending }} en attente

@else

LinkedIn: à jour

@endif
{{-- Pipeline mini --}}

Pipeline actif

@php $activeStages = [ 'new' => 'Nouveaux', 'contacted' => 'Contactés', 'engaged' => 'Engagés', 'qualified' => 'Qualifiés', 'meeting_scheduled' => 'RDV', 'proposal_sent' => 'Proposition', 'negotiation' => 'Négociation', ]; $maxCount = max(1, max(array_map(fn($s) => $stats['by_stage'][$s] ?? 0, array_keys($activeStages)))); @endphp
@foreach($activeStages as $key => $label) @php $count = $stats['by_stage'][$key] ?? 0; @endphp
{{ $label }}
{{ $count }}
@endforeach
{{-- Liens rapides --}}
{{-- Activité récente --}}

Contacts récents

@if(empty($recentLeads))

Aucun lead pour l'instant. Aya démarrera les relances dès les premiers contacts.

@else
@foreach($recentLeads as $lead) @endforeach
Contact Entreprise Statut Score Canal Derniere activite
{{ $lead['name'] }} {{ $lead['company'] ?? '-' }} {{ $lead['stage'] }}
{{ $lead['category'] }} {{ $lead['score'] }}
{{ $lead['channel'] ?? '-' }} {{ $lead['updated'] }}
@endif