From 0abd4c35071ab73d314c071d3cf29a3f8ee75586 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Thu, 18 Jul 2024 00:56:00 -0500 Subject: [PATCH] Bugfix --- app/Models/ScoreSheet.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/ScoreSheet.php b/app/Models/ScoreSheet.php index 5c90fca..01c310f 100644 --- a/app/Models/ScoreSheet.php +++ b/app/Models/ScoreSheet.php @@ -37,4 +37,9 @@ class ScoreSheet extends Model 'audition_id' // Local key on the intermediate model (Entry) ); } + public function getSubscore($id) + { + return $this->subscores[$id]['score'] ?? false; + // this function is used at resources/views/tabulation/entry_score_sheet.blade.php + } }