RAPPORT DE PRÉSENCES

{{ \Carbon\Carbon::parse($mois)->locale('fr')->isoFormat('MMMM YYYY') }}

Période : du {{ $dateDebut->format('d/m/Y') }} au {{ $dateFin->format('d/m/Y') }}

Généré le {{ now()->locale('fr')->isoFormat('DD MMMM YYYY à HH:mm') }}

{{ $employes->count() }}
Employés suivis
{{ round($employes->avg(function($e) { return $e->stats['taux_presence'] ?? 0; }), 1) }}%
Taux moyen
{{ $employes->sum(function($e) { return $e->stats['retards'] ?? 0; }) }}
Total retards
{{ $employes->sum(function($e) { return $e->stats['jours_absent'] ?? 0; }) }}
Total absences
@foreach($employes as $employe) @php $taux = $employe->stats['taux_presence']; $rowClass = $taux >= 90 ? 'excellent' : ($taux >= 75 ? 'good' : 'poor'); @endphp @endforeach
Employé Rôle Présents Absents Retards Taux Total
{{ $employe->name }}
{{ $employe->email }}
{{ $employe->role->nom }} {{ $employe->stats['jours_present'] }} {{ $employe->stats['jours_absent'] }} @if($employe->stats['retards'] > 0) {{ $employe->stats['retards'] }} @else 0 @endif {{ $taux }}% {{ $employe->stats['total_jours'] }}