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'); }