{{ services.getEvents({"count": true, "published": "all", "elapsed": "all"}).getQuery().getSingleScalarResult() }}
{{ "Events added"|trans }}
{{ services.getEvents({"count": true, "published": true, "elapsed": "all"}).getQuery().getSingleScalarResult() }}
{{ "Published events"|trans }}
{{ services.getEvents({"count": true, "published": true, "elapsed": false}).getQuery().getSingleScalarResult() }}
{{ "Upcoming events"|trans }}
{{ services.getEventDates({"count": true}).getQuery().getSingleScalarResult() }}
{{ "Event dates"|trans }}
{% set events = services.getEvents({"published": "all", "elapsed": "all", "limit": 3}).getQuery().getResult() %}
{% if events|length > 0 %}
{% include "Dashboard/Shared/Event/manage-events-table.html.twig" with {events: events} %}
{% endif %}
{{ services.getOrders({"count": true, "status": "all"}).getQuery().getSingleScalarResult() }}
{{ "Orders placed"|trans }}
{{ services.getOrders({"count": true, "status": 1}).getQuery().getSingleScalarResult() }}
{{ "Paid orders"|trans }}
{{ services.getOrders({"count": true, "status": 0}).getQuery().getSingleScalarResult() }}
{{ "Awaiting payment"|trans }}
{% set ticketsSold = services.getOrders({"sumOrderElements": true, "status": 1}).getQuery().getSingleScalarResult() %}
{{ ticketsSold ? ticketsSold : 0 }}
{{ "Tickets sold"|trans }}
{% set orders = services.getOrders({"status": "all", "limit": 3}).getQuery().getResult() %}
{% if orders|length > 0 %}
{% include "Dashboard/Shared/Order/manage-orders-table.html.twig" with {orders: orders} %}
{% endif %}
{{ services.getUsers({"role": "attendee", "count": true, "enabled": true}).getQuery().getSingleScalarResult() }}
{{ "Active attendees"|trans }}
{{ services.getUsers({"role": "organizer", "count": true, "enabled": true}).getQuery().getSingleScalarResult() }}
{{ "Active organizers"|trans }}
{{ services.getUsers({"role": "scanner", "count": true, "enabled": "all"}).getQuery().getSingleScalarResult() }}
{{ "Scanners"|trans }}
{{ services.getUsers({"role": "pointofsale", "count": true, "enabled": "all"}).getQuery().getSingleScalarResult() }}
{{ "Points of sale"|trans }}
{% set users = services.getUsers({"enabled": "all", "limit": 3}).getQuery().getResult() %}
{% if users|length > 0 %}
{% include "Dashboard/Administrator/User/manage-users-table.html.twig" with {users: users} %}
{% endif %}