{% extends 'portal/layout.html.twig' %} {% block title %}Client Portal - KitscoApp{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block content %} {% if customer %}

Welcome back, {{ customer.contactPerson ?? customer.name }}

{{ total_invoices }}

Total Invoices

{{ company ? company.defaultCurrency.symbol : 'Shs' }}{{ total_outstanding|money }}

Outstanding

{{ company ? company.defaultCurrency.symbol : 'Shs' }}{{ total_paid|money }}

Total Paid

Recent Invoices

View all
{% if invoices|length > 0 %}
{% for invoice in invoices %} {% if invoice.status.value != 'draft' %} {% endif %} {% endfor %}
Invoice # Date Due Date Amount Status
{{ invoice.displayInvoiceNumber }} {{ invoice.invoiceDate|date('d/m/Y') }} {{ invoice.dueDate|date('d/m/Y') }} {{ invoice.formattedTotal }} {{ invoice.status.label }}
{% else %}

No invoices yet

{% endif %}
{% else %}

Your account is not linked to a customer profile yet.

Please contact KitsCo to get set up.

{% endif %} {% endblock %}