{% if pastAppointments|length > 0 %}
{% for appt in pastAppointments %}
{% include 'portal/appointment-item.html.twig' with {appt: appt, past: true} %}
{% endfor %}
{% if appointmentLimit == pastAppointmentCount %}
{{ 'Display limit reached' | xlt }}
{{ 'More past appointments may exist' | xlt }}
{% endif %}
{% else %}
{{ 'No Past Appointments' | xlt }}
{% endif %}