<div class="modal fade"
id="{{ type }}-{{ modalId }}"
tabindex="-1"
role="dialog"
aria-labelledby="{{ type }}-title-{{ modalId }}"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content m-3">
<div class="modal-body p-4">
<h3 class="modal-title mb-3" id="{{ type }}-title-{{ modalId }}">{{ title }}</h3>
<div class="wysiwyg" data-text="{{ text|escape }}">
{% if type != 'checkout-price' %}
{{ text|raw }}
{% else %}
<div class="checkout-price-modal">
{% if not giftItem %}
{% set priceBeforeSpecial = item.getPriceInfo().getTotalPriceWithoutExtrasAndSpecial() %}
{% set priceBeforeSpecial = item.getProduct() is instanceof("\\Elements\\Demi\\Model\\AccommodationProduct") ? priceBeforeSpecial : item.getPriceInfo().getPriceWithoutExtrasAndSpecial() %}
{{ include('@ElementsDemiFrontend/Includes/cards/price-card.html.twig', {
'specialPriceName': item.getPriceInfo().getSpecialPriceName(),
'adults': item.getCart().getAdultCount(),
'priceBeforeSpecial': priceBeforeSpecial,
'occupancyString': occupancyString,
'bedLinenPrice': item.getPriceInfo().getBedlinen(),
'finalCleaningPrice': item.getPriceInfo().getFinalCleaning(),
'extraPrice': item.getPriceInfo().getExtras(),
'extras': item.getPriceInfo().getExtraNames()|join(','),
'visitorTaxesPrice': item.getPriceInfo().getVisitorTaxes(),
'amountSavedPrice': item.getPriceInfo().getAmountSaved(),
'totalPrice': item.getPriceInfo().getTotalPrice(),
'totalBeforeSpecial': demi_paymentGetPriceObject(item.getCartItemInfo().getPriceBeforeSpecials(),acco),
'isPriceBreakdown': true
}) }}
{% endif %}
{% if cancelInfoTexts is not empty and (giftItem is null or not giftItem) %}
{{ include('@ElementsDemiFrontend/Includes/cards/cancellation-card.html.twig', {
'cancelInfoTexts': cancelInfoTexts
}) }}
{% endif %}
{% if giftItem %}
{% set translation = ('demi.booking.giftitem-free-' ~ item.getProduct().getId())|trans %}
{% set translation = translation != ('demi.booking.giftitem-free-' ~ item.getProduct().getId()) ? translation : 'demi.booking.giftitem-free'|trans %}
{{ translation|raw }}
{% endif %}
</div>
{% endif %}
</div>
{% if showPdfLink is defined and showPdfLink %}
<div class="mt-3">
<a href="{{ demi_checkoutUrl('checkout', 'conditionPdf') ~ '?' ~ demi_buidQuery({
'type': type,
'id': id
}) }}" class="increased-click-area text-primary">
<span class="demi-icon demi-icon-download"></span> {{ 'demi.booking.conditions.download'|trans }}
</a>
</div>
{% endif %}
<div class="text-right mt-4">
<button type="button"
class="btn-no-styling increased-click-area text-primary font-medium fz17"
data-dismiss="modal">{{ 'demi.close'|trans }}
</button>
</div>
</div>
</div>
</div>
</div>