feat: refactor to cards
This commit is contained in:
@@ -72,7 +72,7 @@ class ParticipantCardDataService
|
||||
$firstName = $participant->firstName ?? '';
|
||||
$lastName = $participant->lastName ?? '';
|
||||
|
||||
$name = trim($firstName . ' ' . $lastName);
|
||||
$name = trim($firstName.' '.$lastName);
|
||||
|
||||
if ('' === $name) {
|
||||
return sprintf('Teilnehmer %d', $index + 1);
|
||||
@@ -98,7 +98,7 @@ class ParticipantCardDataService
|
||||
return 'Unbekanntes Zimmer';
|
||||
}
|
||||
|
||||
return $room->name;
|
||||
return $room->label;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,6 +110,6 @@ class ParticipantCardDataService
|
||||
|
||||
$price = $prices[$index] ?? 0.0;
|
||||
|
||||
return number_format($price, 2, ',', '.') . ' €';
|
||||
return number_format($price, 2, ',', '.').' €';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user