= $this->extend('layout/management_layout') ?> = $this->section('content') ?> 0 ? round($totalBoys / $totalStudents * 100) : 0; $pctGirls = $totalStudents > 0 ? round($totalGirls / $totalStudents * 100) : 0; $pctTrophyBoys = $totalBoys > 0 ? round($totalTrophyBoys / $totalBoys * 100) : 0; $pctTrophyGirls = $totalGirls > 0 ? round($totalTrophyGirls / $totalGirls * 100) : 0; $pctTrophyAll = $totalStudents > 0 ? round($totalTrophies / $totalStudents * 100) : 0; ?>
Fall scores are used to calculate a per-class threshold at the = (int) $selectedPercentile ?>th percentile and project which students are on track for a year-end trophy. Minimum 3 trophies per class. Names are hidden by default.
| Class | Students | Scored | Trophies | Boys | Girls | Trophy Boys | Trophy Girls | Rate | Threshold | Custom Threshold |
|---|---|---|---|---|---|---|---|---|---|---|
| = esc($cls['section_name']) ?> | = $cls['student_count'] ?> | = $cls['scored_count'] ?> = $cls['scored_count'] ?> | = $cls['trophy_count'] ?> | = $cls['boys'] ?> (= $cls['pct_boys'] ?>%) | = $cls['girls'] ?> (= $cls['pct_girls'] ?>%) | = $cls['trophy_boys'] ?> 0): ?> (= $cls['pct_trophy_boys'] ?>%) | = $cls['trophy_girls'] ?> 0): ?> (= $cls['pct_trophy_girls'] ?>%) |
|
= $cls['threshold'] !== null ? number_format((float)$cls['threshold'], 1) : '—' ?> |
$s !== null))) ?>'
data-girls='= json_encode(array_values(array_filter(array_map(fn($s) => $s['gender'] === 'Female' ? $s['fall_score'] : null, $cls['students']), fn($s) => $s !== null))) ?>'
data-total="= $cls['student_count'] ?>"
data-nboys="= $cls['boys'] ?>"
data-ngirls="= $cls['girls'] ?>">
|
| Total | = $totalStudents ?> | = $totalScored ?> | = $totalTrophies ?> | = $totalBoys ?> (= $pctBoys ?>%) | = $totalGirls ?> (= $pctGirls ?>%) | = $totalTrophyBoys ?> (= $pctTrophyBoys ?>%) | = $totalTrophyGirls ?> (= $pctTrophyGirls ?>%) |
|