{{-- B2B tenancy — People → Students: filter chips + class select + seat line + roster. Enrol lives in the header action; each name links to the Student Atlas and each row has a Remove button. --}} @php($d = $this->getData()) @php($seats = $d['seats']) @php($counts = $d['counts']) @php($chips = [ 'all' => 'All', 'active_today' => 'Active today', 'active_7d' => 'Active 7d', 'inactive_14d' => 'Inactive 14d', 'ahead' => 'Ahead', 'behind' => 'Behind', ]) {{-- ── Filter chips ───────────────────────────────────────────────────── --}}
@foreach ($chips as $key => $label) @endforeach
{{-- ── Class scope + seat summary ─────────────────────────────────────── --}}
{{ $seats['used'] }} of {{ $seats['cap'] }} seats used
{{-- ── Students ───────────────────────────────────────────────────────── --}}
Students ({{ count($d['students']) }})
@forelse ($d['students'] as $s) @empty @endforelse
Name Email Class Maxile Action
{{ $s['name'] ?: '—' }} {{ $s['email'] }} {{ $s['house'] }} {{ $s['maxile_level'] ?? '—' }}
No students match this filter.