{% macro show_card(card) %}
{{ card.label }}

{{ card.value }}

{% if card.diff %}

{{ card.diff }}%

{% endif %}
{% endmacro %}

{{ title }}

{{ company }}

{% if frequency == "Daily" %} {{ frappe.format_date(future_from_date) }} {% else %} {{ frappe.format_date(future_from_date) }} - {{ frappe.format_date(future_to_date) }} {% endif %}

{% if cards %}
{% for card in cards %} {{ show_card(card) }} {% endfor %}
{% endif %} {% if events or todo_list or notifications %}

{{ _("Pending Activities") }}

{% if events %}

{{ _("Upcoming Events") }}

{% for e in events %} {% if loop.index==1 or events[loop.index-1].date != e.date %}

{{ e.date }}

{% endif %}
{{ e.subject }} {% if e.all_day %} {{ _("All Day") }} {% elif (not e.ends_on_label or e.starts_on_label == e.ends_on_label)%} {{ e.starts_on_label }} {% else %} {{ e.starts_on_label }} - {{ e.ends_on_label }} {% endif %}
{% endfor %}
{% endif %} {% if todo_list %}

{{ _("To Do List") }}

{% for t in todo_list %}
{{ t.description }} {{ _(t.status) }}
{% endfor %}
{% endif %} {% if notifications %}

{{ _("Open Notifications") }}

{% for n in notifications %}
{{ n.key }} {{ n.value }}
{% endfor %}
{% endif %} {% endif %}
{{ quote.text }}
- {{ quote.author }}