{% extends "patient/card/card_base.html.twig" %} {% macro appointmentDetail(appointment) %} {% set a = appointment %}
{% if a.pc_catid not in therapyGroupCategories %} {% endif %} {{ a.pc_catname|xlt }} {% if a.pc_hometext %} {% endif %} {% if a.pc_recurrtype %} {% endif %} {% if a.pc_catid not in therapyGroupCategories %} {% endif %}
{{ a.dayName|xlt }},  {{ a.pc_eventDate|shortDate|text }} {{ a.pc_eventTime|text }} {{ a.displayMeridiem|xlt }}
{{ a.uname|text }} {{ a.pc_status|text }} {% if a.pc_catid in therapyGroupCategories %} {{ "Group name"|xlt }}: {{ a.groupName|text }} {% endif %}
{% endmacro %} {% macro additionalAppointment(appointmentDate) %}
{{ appointmentDate|text }} (+)
{% endmacro %} {% macro sectionHeader(title, iconClasses) %}
 {{ title|text }}
{% endmacro %} {% macro noItems(text) %}
{{ text|text }}
{% endmacro %} {% block content %}
{% if displayAppts %} {{ _self.sectionHeader("Future Appointments"|xl, "fa-history fa-flip-horizontal")}} {% if appts|length > 0 %} {% for a in appts %} {{ _self.appointmentDetail(a)}} {% endfor %} {% if extraApptDate %} {{ _self.additionalAppointment(extraApptDate) }} {% endif %} {% else %} {{ _self.noItems("No Appointments"|xl)}} {% endif %} {% endif %} {% if displayRecurrAppts %} {{ _self.sectionHeader("Recurring Appointments"|xl, "fa-retweet")}} {% if recurrAppts|length > 0 %} {% for r in recurrAppts %}
{{ r.pc_title|text }}
{{ r.pc_recurrspec|text }} {{ "until"|xlt }} {{ r.pc_endDate|text }}
{% endfor %} {% else %} {{ _self.noItems("No Recurring Appointments{{Appointments}}"|xl)}} {% endif %} {% endif %} {% if displayPastAppts %} {{ _self.sectionHeader("Past Appointments"|xl, "fa-history")}} {% if pastAppts|length > 0 %} {% for pa in pastAppts %} {{ _self.appointmentDetail(pa) }} {% endfor %} {% else %} {{ _self.noItems("No Past Appointments{{Appointment}}"|xl)}} {% endif %} {% endif %}
{% endblock %}