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 + } }