61 lines
2.2 KiB
Plaintext

<%- include('../partials/head') -%> <%- include ('../partials/navbar') %>
<h2>Filtered Property and Contact Data</h2>
<div class="container">
<table class="table table-bordered">
<thead class="thead-dark">
<tr>
<th scope="col">Property ID</th>
<th scope="col">Property Name</th>
<th scope="col">Branch Name</th>
<th scope="col">Sequence Number - Date</th>
<th scope="col">Property Address</th>
<th scope="col">Contact ID</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Contact Email</th>
<th scope="col">Mobile Phone</th>
</tr>
</thead>
<tbody>
<% connectedData.forEach(property => { %>
<% property.contacts.forEach(contact => { %>
<tr>
<td><%= property.PropertyID %></td>
<td><%= property.PropertyName %></td>
<td><%= property.BranchName %></td>
<td><%= property.SequenceNumber %></td>
<td>
<%= property.PropertyAddressLine1 %><br>
<%= property.PropertyAddressLine2 %>
<%= property.PropertyAddressCity%>
<%= property.PropertyAddressStateProvinceCode %>
<%= property.PropertyAddressZipCode %>
</td>
<td><%= contact.ContactID %></td>
<td><%= contact.contactDetails.FirstName %></td>
<td><%= contact.contactDetails.LastName %></td>
<td><%= contact.contactDetails.Email %></td>
<td><%= contact.contactDetails.MobilePhone %></td>
</tr>
<% }); %>
<% }); %>
</tbody>
</table>
</div>
<%- include ('../partials/footer') %>