{% extends 'dashboard/reports/index.html' %}
{% load currency_filters %}
{% load i18n %}

{% block report %}
<table class="table table-striped table-bordered">
    <tr>
		<th>{% trans "Product" %}</th>
		<th>{% trans "Views" %}</th>
		<th>{% trans "Basket additions" %}</th>
		<th>{% trans "Purchases" %}</th>
    </tr>
    {% for product in objects %}
    <tr>
        <td>{{ product.product }}</td>
        <td>{{ product.num_views }}</td>
        <td>{{ product.num_basket_additions }}</td>
        <td>{{ product.num_purchases }}</td>
    </tr>
    {% endfor %}
</table>
    {% if page_obj %}
        {% include "catalogue/partials/pagination.html" %}
    {% endif %}
{% endblock %}