From 126032ae180773501ab1e232892285b4901fddbd Mon Sep 17 00:00:00 2001 From: Matt Young Date: Wed, 10 Jul 2024 00:31:19 -0500 Subject: [PATCH] Add CalculateEntryScore Interface --- app/Actions/Tabulation/CalculateEntryScore.php | 8 ++++++++ .../Tabulation/SeatAuditionController.php | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app/Actions/Tabulation/CalculateEntryScore.php diff --git a/app/Actions/Tabulation/CalculateEntryScore.php b/app/Actions/Tabulation/CalculateEntryScore.php new file mode 100644 index 0000000..90b8842 --- /dev/null +++ b/app/Actions/Tabulation/CalculateEntryScore.php @@ -0,0 +1,8 @@ +with('student.school')->get(); + foreach ($entries as $entry) { + $entryData[] = [ + 'rank' => 'xx', + 'id' => $entry->id, + 'studentName' => $entry->student->full_name(), + 'schoolName' => $entry->student->school->name, + ]; + } } }