{% extends 'affiliate.html.twig' %} {% block title %}{% trans %} My dashboard | Promotip {% endtrans %}{% endblock %} {% block dashboard %}

{{ form_start(form) }}
{{ form_row(form.month) }}
{{ form_end(form) }}
{% if 'ROLE_ROOT' in app.user.roles and invoices|length > 0 %} Download alle facturen {% endif %}
{% if invoices|length > 0 %} {% for invoice in invoices %} {% endfor %}
Factuurnummer Datum Amount Status
{{ get_front_invoice_number_payout(invoice) }} {{ invoice.createdAt|date("d/m/Y") }} {{ invoice.totalAmount|round(2) }} € {% if invoice.status == 0 %} Unpaid {% else %} Paid {% endif %} Factuur downloaden
{% else %}
Geen factuur gevonden
{% endif %}
{% if commissions|length > 0 %} {% for commission in commissions %} {% endfor %}
{{ 'Period'|trans }} {{ 'Unpaid'|trans }} (€) {{ 'Total Commission'|trans }} (€) {{ 'Status'|trans }}
{{ commission.month_year }} This Month: € {{ commission.commission|round(2) }}
{% if commission.carry_amount > 0 %} Carried-over Amount: € {{ commission.carry_amount|round(2) }} {% endif %}
€ {{ commission.total_commission|round(2) }} {% if commission.total_commission < threshold_amount %} Below Threshold {% else %} Completed and Paid {% endif %}
{% else %}
Geen factuur gevonden
{% endif %}
{% endblock %}