{% extends 'base.html' %} {% load i18n %} {% load static %} {% block title %} {{ _("Customers") |capfirst }} {% endblock title %} {% block vendors %}{{ _("Customers") |capfirst }}{% endblock %} {% block content %} {% if customers or request.GET.q %}

{{ _("Customers") |capfirst }}
  • {% if perms.inventory.add_customer %}
    {{ _("Add Customer") }}
    {% endif %}
    {% include 'partials/search_box.html' %}
    {% if page_obj.object_list or request.GET.q %}
    {% for customer in customers %} {% if perms.inventory.view_customer %} {% endif %} {% empty %} {% endfor %} {% endif %}
    {{ _("Name") |capfirst }}
    {{ _("email") |capfirst }}
    {{ _("Phone Number") }}
    {{ _("National ID") |capfirst }}
    {{ _("Address") |capfirst }}
    {{ _("Active") |capfirst }}
    {{ _("Create date") }}
    {{ customer.phone_number }} {{ customer.national_id }} {{ customer.address }} {% if customer.active %} {{ customer.active }} {% else %} {{ customer.active }} {% endif %} {{ customer.created|date }} {% if perms.inventory.change_customer %} {% endif %} {% if perms.inventory.delete_customer %} {% endif %}
    {% trans "No Customers found." %}
    {% if page_obj.paginator.num_pages > 1 %}
    {% include 'partials/pagination.html' %}
    {% endif %} {% include 'modal/delete_modal.html' %} {% else %} {% url "customer_create" request.dealer.slug as create_customer_url %} {% include "empty-illustration-page.html" with value=empty_state_value url=create_customer_url %} {% endif %} {% endblock %}