<%- include('_header'); -%>

<%= funeralHome.funeralHomeName || "(No Name)" %>

<%= funeralHome.funeralHomeName || "(No Name)" %>
<% if (user.userProperties.canUpdate) { %> Edit Funeral Home <% } %>
Address
<% if (funeralHome.funeralHomeAddress1 !== "") { %> <%= funeralHome.funeralHomeAddress1 %>
<% } %> <% if (funeralHome.funeralHomeAddress2 !== "") { %> <%= funeralHome.funeralHomeAddress2 %>
<% } %> <%= funeralHome.funeralHomeCity %>, <%= funeralHome.funeralHomeProvince %>
<%= funeralHome.funeralHomePostalCode %>
<% if (funeralHome.funeralHomePhoneNumber !== "") { %>
Phone Number
<%= funeralHome.funeralHomePhoneNumber %>
<% } %>

Contracts with Upcoming Funerals

<% if (contracts.length === 0) { %>

No contracts with upcoming funerals.

<% } else { %> <% const todayDateString = dateTimeFunctions.dateToString(new Date()); %> <% for (const contract of contracts) { %> <% } %>
Funeral Date Contract Type Interments Funeral Director
<%= contract.funeralDateString %> <%= contract.funeralTime === null || contract.funeralTime === 0 ? '' : contract.funeralTimePeriodString %> <%= contract.contractType %>
#<%= contract.contractId %>
<% if (contract.contractInterments.length === 0) { %> (No Interments) <% } else { %>
    <% for (const interment of contract.contractInterments) { %>
  • <%= interment.deceasedName %>
  • <% } %>
<% } %>
<%= contract.funeralDirectorName %>
<% } %>
<%- include('_footerA'); -%> <%- include('_footerB'); -%>