{% include 'booking/_summary_travel_info.html.twig' with {
'bookingDto': bookingDto,
'summaryData': summaryData
} %}
{# Mutability information (edit mode only) #}
{% if bookingDto.mode == constant('App\\Form\\Model\\BookingDto::MODE_EDIT') and mutableData %}
Aktualisierung möglich bis
|
Zusatzleistungen
|
{% if mutableData.additionalServices and mutableData.additionalServices.mutable %}
{{ mutableData.additionalServices.mutableBefore|date('d.m.Y') }}
{% else %}
nicht mehr möglich
{% endif %}
|
|
Beförderung
|
{% if mutableData.transportation and mutableData.transportation.mutable %}
{{ mutableData.transportation.mutableBefore|date('d.m.Y') }}
{% else %}
nicht mehr möglich
{% endif %}
|
|
Zustiege
|
{% if mutableData.pickup and mutableData.pickup.mutable %}
{{ mutableData.pickup.mutableBefore|date('d.m.Y') }}
{% else %}
nicht mehr möglich
{% endif %}
|
|
Unterkunft
|
{% if mutableData.accommodation and mutableData.accommodation.mutable %}
{{ mutableData.accommodation.mutableBefore|date('d.m.Y') }}
{% else %}
nicht mehr möglich
{% endif %}
|
{% endif %}
{# Rooms Section #}
{% if summaryData.pricing.rooms is not empty %}
Unterkunft
{% for roomPricing in summaryData.pricing.rooms %}
|
{{ roomPricing.quantity }}x {{ roomPricing.label }}
|
{{ roomPricing.totalPrice | format_currency('EUR') }}
|
{% endfor %}
{% endif %}
{# Services Section #}
{% if summaryData.pricing.services is not empty %}
Leistungen
{% for serviceGroup in summaryData.pricing.services %}
{{ serviceGroup.groupName }}
{% for servicePricing in serviceGroup.services %}
|
{{ servicePricing.participantCount }}x {{ servicePricing.label }}
|
{{ servicePricing.totalPrice | format_service_price }}
|
{% endfor %}
{% endfor %}
{% endif %}
{# Surcharges Section (Edit mode only) #}
{% if summaryData.pricing.surcharges is not empty %}
Zu-/Abschläge
{% for surchargePricing in summaryData.pricing.surcharges %}
|
{{ surchargePricing.participantCount }}x {{ surchargePricing.label }}
|
{{ surchargePricing.totalPrice|format_currency('EUR') }}
|
{% endfor %}
{% endif %}
{# Total Section #}
{% if summaryData.pricing.grandTotal > 0 %}
{# Show subtotal and voucher discounts when vouchers are applied #}
{% set acceptedVouchers = summaryData.vouchers.acceptedVouchers %}
{% if acceptedVouchers and acceptedVouchers.hasVouchers() %}
Kostenübersicht
{# Subtotal before vouchers #}
|
Gesamtpreis
|
{{ summaryData.pricing.grandTotal|format_currency('EUR') }}
|
{# Voucher discounts breakdown #}
{% for voucher in acceptedVouchers.vouchers %}
|
{% if voucher.promotional %}
Aktionsgutschein ({{ voucher.code }})
{% elseif voucher.goodwill %}
Kulanzgutschein ({{ voucher.code }})
{% elseif voucher.purchase %}
Kaufgutschein ({{ voucher.code }})
{% endif %}
|
- {{ voucher.amount|format_currency('EUR') }}
|
{% endfor %}
{# Amount to pay after vouchers #}
Zu zahlen
{{ summaryData.vouchers.payableAmount|format_currency('EUR') }}
{% else %}
Gesamtpreis
{{ summaryData.vouchers.payableAmount|format_currency('EUR') }}
{% endif %}
{% endif %}