From 59c5ae8526a6cd47bd74bc0e77ffca9da7afc0df Mon Sep 17 00:00:00 2001 From: Matt Young Date: Wed, 5 Nov 2025 06:48:52 -0600 Subject: [PATCH] Show doublers on sign in sheets. --- app/Actions/Print/PrintSignInSheets.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Actions/Print/PrintSignInSheets.php b/app/Actions/Print/PrintSignInSheets.php index ca97b43..674b9b4 100644 --- a/app/Actions/Print/PrintSignInSheets.php +++ b/app/Actions/Print/PrintSignInSheets.php @@ -78,11 +78,15 @@ class PrintSignInSheets public function addEntryRow(Entry $entry) { + $nameLine = $entry->student->full_name(); + if ($entry->student->isDoublerInEvent($entry->audition->event_id)) { + $nameLine .= ' (D)'; + } $this->pdf->Cell($this->columnWidth['id'], $this->bodyRowHeight, $entry->id, 1, 0, 'L'); $this->pdf->Cell($this->columnWidth['instrument'], $this->bodyRowHeight, $entry->audition->name, 1, 0, 'L'); $this->pdf->Cell($this->columnWidth['drawNumber'], $this->bodyRowHeight, $entry->draw_number, 1, 0, 'L'); - $this->pdf->Cell($this->columnWidth['name'], $this->bodyRowHeight, $entry->student->full_name(), 1, 0, 'L'); + $this->pdf->Cell($this->columnWidth['name'], $this->bodyRowHeight, $nameLine, 1, 0, 'L'); $this->pdf->Cell($this->columnWidth['school'], $this->bodyRowHeight, $entry->student->school->name, 1, 0, 'L'); $this->pdf->Cell(0, $this->bodyRowHeight, ' ', 1, 1, 'L'); }