= $this->extend('layout/management_layout') ?> = $this->section('content') ?> count($c['winners']), $classResults)); $totalStudents = array_sum(array_column($classResults, 'student_count')); $totalBoys = array_sum(array_column($classResults, 'boys')); $totalGirls = array_sum(array_column($classResults, 'girls')); $totalTrophyBoys = array_sum(array_column($classResults, 'trophy_boys')); $totalTrophyGirls = array_sum(array_column($classResults, 'trophy_girls')); $pctWinners = $totalStudents > 0 ? round($totalWinners / $totalStudents * 100) : 0; $pctTrophyBoys = $totalBoys > 0 ? round($totalTrophyBoys / $totalBoys * 100) : 0; $pctTrophyGirls = $totalGirls > 0 ? round($totalTrophyGirls / $totalGirls * 100) : 0; $pctBoys = $totalStudents > 0 ? round($totalBoys / $totalStudents * 100) : 0; $pctGirls = $totalStudents > 0 ? round($totalGirls / $totalStudents * 100) : 0; ?>
= esc($selectedYear) ?> — = (int)$selectedPercentile ?>th percentile — = $totalWinners ?> winners across = count($classResults) ?> classes
= (int)$selectedPercentile ?>th percentile — = $totalWinners ?> winners / = $totalStudents ?> students — = count($classResults) ?> classes
| # | Class | Name | Gender | Fall Score | Spring Score | Year Score |
|---|---|---|---|---|---|---|
| = $globalRank ?> | = esc($cls['section_name']) ?> | = esc($student['name']) ?> | = $isMale ? 'M' : 'F' ?> | = $student['fall_score'] !== null ? number_format($student['fall_score'], 1) : '—' ?> | = $student['spring_score'] !== null ? number_format($student['spring_score'], 1) : '—' ?> | = $student['year_score'] !== null ? number_format($student['year_score'], 1) : '—' ?> |
| Total | = $totalWinners ?> winners | = $pctWinners ?>% of students | ||||
| Class | Students | Boys | Girls | Winners | Trophy Boys | Trophy Girls | Rate | Fall Threshold |
|---|---|---|---|---|---|---|---|---|
| = esc($cls['section_name']) ?> | = $cls['student_count'] ?> | = $cls['boys'] ?> (= $cls['pct_boys'] ?>%) | = $cls['girls'] ?> (= $cls['pct_girls'] ?>%) | = count($cls['winners']) ?> | = $cls['trophy_boys'] ?> = $cls['boys'] > 0 ? '(' . $cls['pct_trophy_boys'] . '%)' : '' ?> | = $cls['trophy_girls'] ?> = $cls['girls'] > 0 ? '(' . $cls['pct_trophy_girls'] . '%)' : '' ?> | = $cls['pct_trophy_total'] ?>% | = $cls['threshold'] !== null ? number_format((float)$cls['threshold'], 1) : '—' ?> |
| Total | = $totalStudents ?> | = $totalBoys ?> (= $pctBoys ?>%) | = $totalGirls ?> (= $pctGirls ?>%) | = $totalWinners ?> | = $totalTrophyBoys ?> (= $pctTrophyBoys ?>%) | = $totalTrophyGirls ?> (= $pctTrophyGirls ?>%) | = $pctWinners ?>% |
| # | Name | Gender | Fall Score | Spring Score | Year Score |
|---|---|---|---|---|---|
| = $i + 1 ?> | = esc($student['name']) ?> | = $isMale ? 'M' : 'F' ?> | = $student['fall_score'] !== null ? number_format($student['fall_score'], 1) : '—' ?> | = $student['spring_score'] !== null ? '' . number_format($student['spring_score'], 1) . '' : '—' ?> | = $student['year_score'] !== null ? number_format($student['year_score'], 1) : '—' ?> |