Show what a student is auditioning for on their cards if advancement audition

This commit is contained in:
Matt Young 2025-11-06 07:30:09 -06:00
parent be621606e2
commit 402cbf8c83
1 changed files with 15 additions and 0 deletions

View File

@ -73,6 +73,21 @@ class QuarterPageCards implements PrintCards
if (! is_null($entry->audition->room_id)) {
$this->pdf->Cell(4.5, .25, $entry->audition->room->name);
}
if (auditionSetting('advanceTo')) {
$this->pdf->setXY($xLoc, $yLoc - 1);
$auditioningFor = 'Auditioning for: ';
if ($entry->for_seating) {
$auditioningFor .= auditionSetting('auditionAbbreviation');
$as = true;
}
if ($entry->for_advancement) {
if ($as) {
$auditioningFor .= ' / ';
}
$auditioningFor .= auditionSetting('advanceTo');
}
$this->pdf->Cell(4.5, .25, $auditioningFor);
}
$this->quadOn++;
}