{% assign weekAgo = 'Now' | Date:'M/d/yyyy' | DateAdd:-7 %}
{{ 'Global' | Attribute:'EmailHeader' }}
<h4>Faith Church Prayer Digest:</h4>
<ul>
{% prayerrequest where:'EnteredDateTime > "{{weekAgo}}"' count:'true'%}
<li>{{count}} prayer requests were submitted in the past 7 days.</li>
{% endprayerrequest %}
{% prayerrequest where:'EnteredDateTime > "{{weekAgo}}" && PrayerCount > 0' count:'true'%}
<li>{{count}} prayer requests HAVE BEEN prayed for in the past 7 days.</li>
{% endprayerrequest %}
{% prayerrequest where:'EnteredDateTime > "{{weekAgo}}" && PrayerCount _= ""' count:'true'%}
<li>{{count}} prayer requests NEED prayed for.</li>{% if count == 0%}GREAT JOB!{%endif%}{% assign openPrayers = count%}
{% endprayerrequest %}
<br />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div>
<center>
<!--[if mso]><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}ScheduleConfirmation?attendanceId={{attendance.Id}}&Person={{Attendance.PersonAlias.Person | PersonActionIdentifier:'ScheduleConfirm'}}&isConfirmed=false" style="height:38px;v-text-anchor:middle;width:175px;" arcsize="5%" strokecolor="#cc0000" fillcolor="#cc3333">
<w:anchorlock/>
<center style="color:#ffffff;font-family:sans-serif;font-size:18px;font-weight:normal;">Decline</center>
</v:roundrect>
<![endif]--><a style="background-color:#cc3333;border:1px solid #cc0000;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:normal;line-height:38px;text-align:center;text-decoration:none;width:175px;-webkit-text-size-adjust:none;mso-hide:all;" href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}ScheduleConfirmation?attendanceId={{attendance.Id}}&Person={{Attendance.PersonAlias.Person | PersonActionIdentifier:'ScheduleConfirm'}}&isConfirmed=false">Pray for the {{openPrayers}}</a>
</center>
</div>
</td>
</tr>
</table>
<br />
<br />
{{ 'Global' | Attribute:'EmailFooter' }}