<div class="main-card mb-3 card">
<div class="card-body"><h5 class="card-title">Moi Klienci</h5>
<div class="table-responsive">
<table class="mb-0 table">
<thead>
<tr>
<th>#</th>
<th>Imię i Nazwisko</th>
<th>Dodano</th>
<th>Numer telefonu</th>
<th>E-mail</th>
<th>Typ klienta</th>
<th>Ostatni Komentarz</th>
<th>Rodzaj działania</th>
<th>Agent</th>
<th>Umowa</th>
<th>Zarezerwuj</th>
<th>Do obdzwonki</th>
<th>Szczegóły</th>
</tr>
</thead>
<tbody>
{% for customer in myCustomers %}
<tr>
<th scope="row">{{ customer.displayNumber }}</th>
<td><a href="details?id={{ customer.id }}">{{ customer.firstname }} {{ customer.lastname }}</a></td>
<td>{{ customer.addDateFormatted }}</td>
<td><a href="details?id={{ customer.id }}">{{ customer.phone }}</a></td>
<td><a href="details?id={{ customer.id }}">{{ customer.email }}</a></td>
<td>{{ customer.customerType }}</td>
<td>{{ customer.lastComment }}</td>
<td>{{ customer.status }}</td>
<td>{{ customer.agent is null? '' : customer.agent.firstname ~ ' '~ customer.agent.lastname ~ ' do ' ~ customer.reservedToFormatted }}</td>
<td>{{ customer.contractFormatted }}</td>
<td><a href="reserve?id={{ customer.id }}&action={{ customer.action }}">Zarezerwuj</a></td>
<td><a href="call?id={{ customer.id }}&action={{ customer.action }}">Do obdzwonki</a></td>
<td><a href="details?id={{ customer.id }}">Szczegóły</a></td>
</tr>
{% endfor %}
{% for xpage in xpages %}
<a {% if not xpage.current %} href="{{ xpage.action }} {% endif %}">{{ xpage.number }}</a>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>