{% extends "base.html" %} {% load i18n static crispy_forms_filters custom_filters%} {% block title %}{{ _("View Customer") }}{% endblock title %} {% block content %} {% include 'modal/delete_modal.html' %}

{% trans 'Customer details' %}

{{ customer.customer_name }}

{{ customer.created|timesince}}

{% trans 'Invoices' %}

{{invoices.count}}

{% trans 'Quotations' %}

{{estimates.count}}

{% trans 'Default Address' %}

{{ _("Address") }}

{{ customer.address_1}}

{% trans 'Email' %}
{{ customer.email }}
{% trans 'Phone Number' %}
{{ customer.phone }}
{% for note in notes %} {% endfor %}
{{ _("Notes")|upper }}
{{note.note}}

{{ _("Related") }} ({{ total }})

{% for estimate in estimates %} {% endfor %} {% for invoice in invoices %} {% endfor %}
{% trans 'Type'|upper %} {% trans 'Total'|upper %} {% trans 'Payment Status'|upper %} {% trans 'Date'|upper %}

{{ _("Quotation") }}-{{ estimate.estimate_number }}

{{ estimate.revenue_estimate|currency_format }} {{ estimate.created }}

{{ _("Invoice") }}-{{ invoice.invoice_number }}

{{ invoice.amount_paid|currency_format }} {% if invoice.is_paid %} {{ _("Paid") }} {% endif %} {{ invoice.created }}
{% include 'partials/pagination.html' %}
{% endblock %}