feat: show room pricing details

This commit is contained in:
Björn Fromme
2025-09-30 16:47:17 +02:00
parent 009eabd09c
commit 71b42786f7
5 changed files with 17 additions and 9 deletions
+9 -4
View File
@@ -18,16 +18,21 @@
<h4 class="font-semibold text-lg mb-3 text-gray-800">Unterkunft</h4>
<div class="space-y-2">
{% for roomPricing in pricingData.rooms %}
<div class="flex justify-between items-center">
<div class="flex justify-between items-start">
<div class="text-sm text-gray-600">
<span class="font-medium">{{ roomPricing.quantity }}x {{ roomPricing.label }}</span>
{% if assignmentCounts is defined and assignmentCounts[roomPricing.roomId] is defined %}
<span class="block text-xs text-gray-500">{{ assignmentCounts[roomPricing.roomId] }} belegt</span>
{% endif %}
</div>
<span class="text-gray-900">
{{ roomPricing.totalPrice|number_format(2, ',', '.') }}
</span>
<div class="text-right">
<div class="text-gray-900">
{{ roomPricing.totalPrice|number_format(2, ',', '.') }}
</div>
<div class="text-xs text-gray-500">
{{ roomPricing.unitPrice|number_format(2, ',', '.') }} pro Person
</div>
</div>
</div>
{% endfor %}
</div>