{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('Invoices') }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Invoices')} ] %} {{ page_header( icon_class='fas fa-file-invoice', title_text=_('Invoices'), subtitle_text=_('Invoices for %(client_name)s', client_name=client.name), breadcrumbs=breadcrumbs ) }}
{% if invoices %}| {{ _('Invoice Number') }} | {{ _('Issue Date') }} | {{ _('Due Date') }} | {{ _('Amount') }} | {{ _('Status') }} | {{ _('Actions') }} |
|---|---|---|---|---|---|
| {{ invoice.invoice_number }} |
{{ invoice.issue_date|user_date }}
|
{{ invoice.due_date|user_date }}
{% if invoice.is_overdue %}
{{ invoice.days_overdue }} {{ _('days overdue') }}
{% endif %}
|
{{ "%.2f"|format(invoice.total_amount) }} {{ invoice.currency_code }}
|
{{ invoice.payment_status|replace('_', ' ')|title }} | {{ _('View') }} |
{% if status_filter == 'all' %} {{ _('There are no invoices available at this time. Invoices will appear here once they are created.') }} {% else %} {{ _('There are no invoices matching this filter. Try selecting a different status.') }} {% endif %}
{% if status_filter != 'all' %} {{ _('View All Invoices') }} {% endif %}