@extends('layouts.app') @section('title', 'Subject Allocation') @section('content')

Subject allocation

Choose the subjects each learner is taking this term. Allocations feed analysis, report cards and subject totals.
Export CSV
@include('academics._nav')
{{ $students->count() }} learners · {{ $subjects->count() }} subjects
@csrf
@foreach($subjects as $subject)@endforeach @forelse($students as $student) @php $selected = $allocated[$student->id] ?? []; @endphp @foreach($subjects as $subject) @endforeach @empty @endforelse
Learner{{ $subject->name }}
{{ $subject->code }}
Subjects
{{ initials($student->full_name) }}
{{ $student->full_name }}{{ $student->admission_no }} · {{ $student->stream ?: 'No stream' }}
id, $selected))>{{ count($selected) }}
Saving replaces the existing allocation for every learner listed above.
@endsection