{% set status = reservation.status %}
<p>
    {% if status == 'WAITING_CONFIRMATION' %}
        You have received a new reservation #<b>{{ reservation.number }}</b>, which is <b>awaiting confirmation</b>.

    {% elseif status == 'WAITING_PAYMENT' %}
        You have received a new reservation #<b>{{ reservation.number }}</b>, which <b>requires payment</b>.

    {% elseif status == 'OVERDUE' %}
        Reservation #<b>{{ reservation.number }}</b> <b>was not paid on time</b> and may be automatically cancelled.

    {% elseif status == 'CONFIRMED' %}
        Reservation #<b>{{ reservation.number }}</b> has been <b>successfully confirmed</b>.

    {% elseif status == 'CANCELLED' %}
        {% if reservation.cancellation.cancelledBy == 'guest' %}
            Reservation #<b>{{ reservation.number }}</b> has been <b>cancelled by the client</b>. Please refer to the cancellation policy below for more details.
        {% elseif reservation.cancellation.cancelledBy == 'admin' %}
            Reservation #<b>{{ reservation.number }}</b> has been <b>cancelled by the manager</b>. Please refer to the cancellation policy below for more details.
        {% elseif reservation.cancellation.cancelledBy == 'system' %}
            Reservation #<b>{{ reservation.number }}</b> has been <b>automatically cancelled</b> due to non-payment.
        {% else %}
            Reservation #<b>{{ reservation.number }}</b> has been <b>cancelled</b>. Please refer to the cancellation policy below for more details.
        {% endif %}

    {% else %}
        The status of reservation #<b>{{ reservation.number }}</b> is currently unknown.
    {% endif %}
</p>

{% if status == 'CANCELLED' and reservation.cancellation.reason %}
    <p style="color: #51545E; font-size: 14px; line-height: 1.625; margin: 10px 0 0 0; font-style: italic;">
        <strong>Cancellation reason:</strong> {{ reservation.cancellation.reason }}
    </p>
{% endif %}
