resources/views/templates/reports/client_sales_report.html
Created On: {{ created_on }}
Created By: {{ created_by }}
{% if company_logo is not empty %} {{ img(company_logo, 'max-height: 80px; width: auto; object-fit: contain;') }} {% endif %}
{% if client_groups is defined and client_groups is not empty %} {% for group in client_groups %} {% if client_groups|length > 1 %}
{% endif %}
| {{ t('name') }} | {{ t('number') }} | {{ t('id_number') }} | {{ t('invoices') }} | {{ t('amount') }} | {{ t('balance') }} | {{ t('total_taxes') }} | {{ t('amount_paid') }} |
|---|---|---|---|---|---|---|---|
| {% for client in group.clients %} | {{ client[0] | slice(0,25) }} | {{ client[1] }} | {{ client[2] | slice(0, 14) }} | {{ client[3] }} | {{ client[4] }} |
| {% endfor %} |
{% endfor %} {% else %}
| {{ t('name') }} | {{ t('number') }} | {{ t('id_number') }} | {{ t('invoices') }} | {{ t('amount') }} | {{ t('balance') }} | {{ t('total_taxes') }} | {{ t('amount_paid') }} |
|---|---|---|---|---|---|---|---|
| {% if clients is defined and clients is not empty %} {% for client in clients %} | {{ client[0] | slice(0,25) }} | {{ client[1] }} | {{ client[2] | slice(0, 14) }} | {{ client[3] }} | {{ client[4] }} |
| {% endfor %} {% endif %} |
{% endif %} {% if monthly_skipped is defined and monthly_skipped %} {{ t('monthly_breakdown_skipped') }} {% else %} {% if monthly_invoice_groups is defined and monthly_invoice_groups is not empty %}
{% for group in monthly_invoice_groups %} {% if monthly_invoice_groups|length > 1 %}
{% endif %}
| {{ t('name') }} | {% for label in monthly_invoice_header|default(monthly_header) %} {{ label }} | {% endfor %} | --- | --- | {% for row in group.rows %} | {% for cell in row %} {% if loop.first %} {{ cell|slice(0,25) }} {% else %} {{ cell }} {% endif %} | {% endfor %} {% endfor %}
{% endfor %} {% elseif monthly_invoices is defined and monthly_invoices is not empty %}
| {{ t('name') }} | {% for label in monthly_invoice_header|default(monthly_header) %} {{ label }} | {% endfor %} | --- | --- | {% for row in monthly_invoices %} | {% for cell in row %} {% if loop.first %} {{ cell|slice(0,25) }} {% else %} {{ cell }} {% endif %} | {% endfor %} {% endfor %}
{% endif %} {% if monthly_payment_groups is defined and monthly_payment_groups is not empty %}
{% for group in monthly_payment_groups %} {% if monthly_payment_groups|length > 1 %}
{% endif %}
| {{ t('name') }} | {% for label in monthly_payment_header|default(monthly_header) %} {{ label }} | {% endfor %} | --- | --- | {% for row in group.rows %} | {% for cell in row %} {% if loop.first %} {{ cell|slice(0,25) }} {% else %} {{ cell }} {% endif %} | {% endfor %} {% endfor %}
{% endfor %} {% elseif monthly_payments is defined and monthly_payments is not empty %}
| {{ t('name') }} | {% for label in monthly_payment_header|default(monthly_header) %} {{ label }} | {% endfor %} | --- | --- | {% for row in monthly_payments %} | {% for cell in row %} {% if loop.first %} {{ cell|slice(0,25) }} {% else %} {{ cell }} {% endif %} | {% endfor %} {% endfor %}
{% endif %} {% endif %}