{{-- Filtres --}}

Paramètres du rapport

@if($data !== null) {{-- Stats de classe --}}

{{ $data['class_avg'] !== null ? number_format($data['class_avg'], 2) : '—' }}

Moyenne /20

{{ $data['total'] > 0 ? round(($data['pass_count'] / $data['total']) * 100, 1) : 0 }}%

Taux de réussite

{{ $data['max'] !== null ? number_format($data['max'], 2) : '—' }}

Meilleure note

{{ $data['min'] !== null ? number_format($data['min'], 2) : '—' }}

Note la plus basse

{{-- Tableau des élèves --}} @if($data['students']->isNotEmpty())

{{ $class->name }} — {{ $year->name }} @if(request('period')) — {{ collect($periods)->firstWhere('value', request('period'))?->label() }} @endif

@can('reports.export') Exporter CSV @endcan
@foreach($data['students'] as $i => $row) @endforeach
Rang Élève Moyenne /20 Barre Résultat
{{ $i + 1 }} {{ $row['student']->full_name }} {{ $row['average'] !== null ? number_format($row['average'], 2) : '—' }} @if($row['average'] !== null)
@endif
@if($row['average'] !== null) @if($row['average'] >= 10) Admis @else Ajourné @endif @else @endif
@else

Aucune évaluation trouvée pour ces critères.

@endif @endif