{{ 'reservation.preview.booker'|trans }} {% if mode is defined and mode == 'edit' %}
{% if is_granted('ROLE_USER') %} {% endif %} {% endif %}

{% include 'Customers/_show_info.html.twig' with {'customer' : booker} %}
{% include 'Customers/customer_show_address_fields_short.html.twig' with {'customer' : booker} %}

{{ 'reservation.preview.appartments.selected'|trans }} {% if mode is defined and mode == 'edit' %} {% if is_granted('ROLE_USER') %} {% endif %} {% endif %}

{% for reservation in reservations %} {% endfor %}
{{ 'appartment.number'|trans }} {{ 'appartment.description'|trans }} {{ 'reservation.persons'|trans }} {{ 'reservation.status'|trans }} {{ 'reservation.startdate'|trans }} {{ 'reservation.enddate'|trans }}
{{ reservation.appartment.number }} {{ reservation.appartment.description }} {{ reservation.persons }} {{ reservation.reservationStatus.name }} {{ reservation.startdate|date('d.m.Y') }} {{ reservation.enddate|date('d.m.Y') }}
{% if mode is defined and mode == 'edit' and is_granted('ROLE_USER') %} {% endif %}
{% if mode is defined and mode == 'edit' %} {{ attribute(reservations, 0).remark|nl2br }} {% else %} {% endif %}
{% if mode is defined and mode == 'edit' and is_granted('ROLE_USER') %} {% endif %}
{% if mode is defined and mode == 'edit' %} {{ attribute(reservations, 0).reservationOrigin.name }} {% else %} {% endif %}
{% for reservation in reservations %}

{{ 'reservation.preview.customer'|trans }} {{ 'reservation.appartment.name'|trans }}: {{ reservation.appartment.number }} {% if is_granted('ROLE_USER') %} {% endif %}

{% for customer in customers %} {% if mode is defined and mode == 'new' %} {% if customer.appartmentId == reservation.appartment.id %} {% set customer = customer.c %} {% endif %} {% endif %} {% if customer.salutation is defined %} {% endif %} {% endfor %}
{{ 'reservation.preview.customer.name'|trans }} {{ 'customer.birthday'|trans }} {{ 'customer.action'|trans }}
{{ customer.salutation }} {{ customer.firstname }} {{ customer.lastname }} {% if customer.birthday %}{{ customer.birthday|date('d.m.Y') }}{% endif %}
{% if is_granted('ROLE_USER') %} {% endif %}
{% endfor %}

{{ 'reservation.correspondences.reservation'|trans }} {% if mode is defined and mode == 'edit' and is_granted('ROLE_USER') %} {% endif %}

{% for correspondence in correspondences %} {% endfor %}
{{ 'templates.correspondence.created'|trans }} {{ 'templates.correspondence.name'|trans }} {{ 'base.action'|trans }}
{{ correspondence.created|date('d.m.Y H:i') }} {{ correspondence.name }} {% if correspondence.children|length > 0 %}{% endif %} {% if 'PDF' in correspondence.template.templateType.name %} {% elseif 'EMAIL' in correspondence.template.templateType.name %} {% endif %} {% if is_granted('ROLE_USER') %} {% endif %}

{{ 'reservation.prices.misc'|trans }}

{% set reservationPrices = attribute(reservations, 0).prices %} {% for price in miscPrices %}
{% endfor %}
{{ 'invoice.price.total'|trans }}: {{ brutto|number_format(2, ',', '.') }}
{# variable that contains the status whether prices are used that includes vat and does not include vats this will lead to price sums that are displayed incorrect #} {% set lastIncludesVat = null %} {% set vatWarning = false %}
{{ 'invoice.appartment'|trans }}
{% include 'Invoices/invoice_table_apartment_preview_positions.html.twig' with {'mode': 'read'} %}
{{ 'invoice.miscellaneous'|trans }}
{% include 'Invoices/invoice_table_misc_preview_positions.html.twig' with {'mode': 'read'} %}
{{ 'reservation.prices.preliminary'|trans }}