@php $theme = $org?->theme(); $primary = data_get($theme, 'colors.primary') ?: '#960000'; $appName = $org?->displayName() ?: 'AGS Math Tutor'; $logoPath = data_get($theme, 'logo.primary_url'); $logoUrl = null; if ($logoPath) { $logoUrl = (\Illuminate\Support\Str::startsWith($logoPath, ['http://', 'https://', '/'])) ? $logoPath : url('media/' . ltrim($logoPath, '/')); } $className = $house->house ?: ('Class #' . $house->id); $current = data_get($history, 'current'); $gain = data_get($history, 'gain'); $points = data_get($history, 'points', []); @endphp Term Progress Report — {{ $className }}
@if ($logoUrl) @endif
{{ $appName }}
Term Progress Report
{{ $className }}
{{ $generatedAt->toFormattedDateString() }}

Class Overview

Median maxile
{{ $current ?? '—' }}
{{ count($students) }} {{ \Illuminate\Support\Str::plural('student', count($students)) }}
Gain this term
@if ($gain === null)
Not enough history
@else
{{ $gain >= 0 ? '+' : '' }}{{ $gain }}
median maxile points
@endif

Students

@if (count($students)) @foreach ($students as $s) @endforeach
Student Maxile Band
{{ data_get($s, 'name') ?: ('Student #' . data_get($s, 'id')) }} {{ data_get($s, 'maxile') }} {{ data_get($s, 'band') ?: '—' }}
@else

No students enrolled in this class.

@endif