{% 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 %}
{% trans 'Type'|upper %} {% trans 'Total'|upper %} {% trans 'Payment Status'|upper %} {% trans 'Fulfilment Status'|upper %} {% trans 'Date'|upper %}

{{ estimate.estimate_number }}

{{ estimate.revenue_estimate|currency_format }} Paid {% if estimate.status == 'draft' %} {% trans "Draft" %} {% elif estimate.status == 'in_review' %} {% trans "In Review" %} {% elif estimate.status == 'approved' %} {% trans "Approved" %} {% elif estimate.status == 'declined' %} {% trans "Declined" %} {% elif estimate.status == 'canceled' %} {% trans "Canceled" %} {% elif estimate.status == 'completed' %} {% trans "Completed" %} {% elif estimate.status == 'void' %} {% trans "Void" %} {% endif %} {{ estimate.created }}
{% include 'partials/pagination.html' %}
{% endblock %}