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

{% block report %}
    <table class="table table-striped table-bordered table-hover">
        {% if objects %}
            <tr>
                <th>{% trans "Product" %}</th>
                <th>{% trans "Amount" %}</th>
            </tr>
            {% for product in objects %}
                <tr>
                    <td>{{ product.get_title }}</td>
                    <td>{{ product.sale_count }}</td>
                </tr>
            {% endfor %}
        {% else %}
            <tr><td>{% trans "No results found." %}</td></tr>
        {% endif %}
    </table>
    {% include "dashboard/partials/pagination.html" %}
{% endblock %}
