{% extends "Global/layout.html.twig" %} {% set pagetitle = 'My points of sale' | trans %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{"current":(pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %}
{{ "%resultsCount% result(s) found"|trans({'%resultsCount%': pointofsales.getTotalItemCount}) }}
{% if pointofsales.getTotalItemCount > 0 %}
{% for user in pointofsales %} {% endfor %}
{{'Name / Username' | trans}} {{'Creation date / Last login' | trans}} {{'Events count' | trans}} {{'Status' | trans}}
{{ user.pointofsale.name }} / {{ user.username }} {{ user.createdAt|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }}
{% if user.lastLogin %} {{ user.lastLogin|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {% else %} {{ "N/A"|trans }} {% endif %}
{{ user.pointofsale.eventdates|length }} {% if user.enabled %} {{ "Enabled"|trans }} {% else %} {{ "Disabled"|trans }} {% endif %} {% if user.deletedAt %}

{{ "Deleted"|trans }} {% endif %}
{{ knp_pagination_render(pointofsales, null, {}, {'align': 'center'}) }}
{% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No points of sale found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %}
{% endblock %} {% block javascripts %} {% endblock %}