<%- include("header", {title: title}); %>
<h1>Kunder</h1>
<p>Här finns en lista på alla våra nuvarande kunder.</p>
<table>
    <tr>
        <th>Id</th>
        <th>Name</th>
        <th>Adress</th>
    </tr>
<% for (const row of res) { %>
    <tr>
        <td><%= row.id %></td>
        <td><a href="/customer/view/<%= row.id %>"><%= row.namn %></a></td>
        <td><%= row.address %></td>
        <td>
            <a href="/customer/edit/<%= row.id %>">
                <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
            </a>
            <a href="/customer/delete/<%= row.id %>">
                <i class="fa fa-trash-o" aria-hidden="true"></i>
            </a>
        </td>
    </tr>
<% }; %>
</table>
<%- include("footer"); %>
