{# #} {% macro currency(amount, currency_code, language_code) %} {{ (amount / 100)|format_currency(currency_code, {}, language_code) }} {% endmacro currency %} {% set availText = 'Select dates for exact pricing' %} {% set availClass = 'text-muted' %} {% set currency_code = reservation.currency_code %} {% set language_code = customer.language_code|default(globals.language_code) %} {% if reservation.reservation_id is not null %} {% if reservation.nights > 0 and reservation.nights < reservation.min_stay %} {% set availText = '(' ~ reservation.nights~' nights) Minimum Stay: '~villa.min_stay~' nights' %} {% set availClass = 'red-bold' %} {% elseif reservation.nights > reservation.max_stay and villa.max_stay > 0 %} {% set availText = '(' ~ reservation.nights~' nights) Maximum Stay: '~((villa.max_stay > 0) ? villa.max_stay : 'unlimited')~' nights' %} {% set availClass = 'red-bold' %} {% elseif reservation.nights > 0 %} {% set availText = reservation.starts|date("M d")~' - '~reservation.ends|date("M d")~"      ("~reservation.nights~' nights)' %} {% endif %} {% endif %} {% set formName = 'form-reservation' %}
{% if role == 'webmaster' %} {% endif %} {{ role == 'guest' ? 'Guest' : reservation.name_full }}
{% if (no_links is not defined) %} {% else %}
{% endif %} {% if reservation.reservation_id is not null %} {% set price = (reservation.price + reservation.discount_amount) %} {% set price_daily = reservation.nights > 0 ? (price / reservation.nights) : price %} {% if reservation.is_local %}
{% if (reservation.rate_daily > price_daily) and (reservation.nights > 1) %} {{ _self.currency(reservation.rate_daily, currency_code, language_code) }} {{ _self.currency(price_daily, currency_code, language_code) }} {% else %} {{ _self.currency(reservation.rate_daily, currency_code, language_code) }} {% endif %} /night
{% endif %} {% else %} {% set price = villa.rate_daily %} {% set price_daily = villa.rate_daily / (reservation.nights ?: 1) %}
{{ _self.currency(villa.rate_daily, currency_code, language_code) }}/night
{% endif %}
{# {% if reservation.is_local %}#} {# Via: {{ reservation.source }}#} {# {% else %}#} {{ availText }} {# {% endif %}#} NOT AVAILABLE
Arrival
Departure
{% if reservation.is_local %} {# {% else %}
Guests: {{ reservation.guests }}
{% endif %}

{% if reservation.reservation_id is not null %} {% if (reservation.due_now != 0) or (reservation.due_prior != 0) or (reservation.due_checkin != 0) %} {% endif %} {% if globals.payment_mode == 'cash' and reservation.state == 'confirmed' %} {% else %} {% endif %} {% endif %}
{#
#} {# {% else %} #} {#
#}