{{-- ============ Alerte taux validation ============ --}}
@if($kpis['alerte_taux_validation'])
Alerte qualité enrôlement — taux de validation
{{ number_format($kpis['taux_validation'], 1, ',', '') }} %
sous le seuil {{ $kpis['seuil_taux_validation'] }} %. Vérifier la complétude des dossiers soumis par vos agents.
{{-- ============ Graph 30 jours ============ --}}
@php $maxJ = max(1, $serie30j->max()); @endphp
@foreach($serie30j as $jour => $valeur)
@php $h = max(2, round(100 * $valeur / $maxJ)); @endphp
@endforeach
{{ $serie30j->keys()->first() ? \Carbon\Carbon::parse($serie30j->keys()->first())->format('d/m') : '' }}
{{ $serie30j->keys()->last() ? \Carbon\Carbon::parse($serie30j->keys()->last())->format('d/m') : '' }}
{{-- ============ Donut profils ============ --}}
@php $total = max(1, $repartition->sum('total')); @endphp
@forelse($repartition as $r)
@php $part = round(100 * $r->total / $total, 1); @endphp
{{ $r->libelle }}
{{ $r->total }} · {{ number_format($part, 1, ',', '') }} %
@empty
Aucun adhérent enrôlé pour le moment.
@endforelse