Skip to content

Commit

Permalink
filter out pastoral subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Oct 12, 2024
1 parent 1de8138 commit 486c673
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,14 @@ public function show(int $reportCycle, int $pupilId): View
->get('selfreflections/reports/'.$reportCycle.'/pupil/'.$pupilId)
->throw()->collect();

$subjects = (new PupilData($pupilId))->teachingSets->filter(function($teachingSet) {
if (in_array($teachingSet->subject, ['PSHE', 'Deputy House', 'House'])) {
return false;
}
return true;
});
return view('selfreflection.dataentry', [
'subjects' => (new PupilData($pupilId))->teachingSets,
'subjects' => $subjects,
'current' => $current,
'reportCycleId' => $reportCycle,
]);
Expand Down

0 comments on commit 486c673

Please sign in to comment.