{{ services.getEvents({"organizer": app.user.organizer.slug, "count": true, "published": "all", "elapsed": "all"}).getQuery().getSingleScalarResult() }}
{{ "Events added"|trans }}
{{ services.getEvents({"organizer": app.user.organizer.slug, "count": true, "published": true, "elapsed": "all"}).getQuery().getSingleScalarResult() }}
{{ "Published events"|trans }}
{{ services.getEvents({"organizer": app.user.organizer.slug, "count": true, "published": true, "elapsed": false}).getQuery().getSingleScalarResult() }}
{{ "Upcoming events"|trans }}
{{ services.getEventDates({"organizer": app.user.organizer.slug, "count": true}).getQuery().getSingleScalarResult() }}
{{ "Event dates"|trans }}
{% set events = services.getEvents({"organizer": app.user.organizer.slug,"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({"organizer": app.user.organizer.slug, "count": true, "status": "all"}).getQuery().getSingleScalarResult() }}
{{ "Orders placed"|trans }}
{{ services.getOrders({"organizer": app.user.organizer.slug, "count": true, "status": 1}).getQuery().getSingleScalarResult() }}
{{ "Paid orders"|trans }}
{{ services.getOrders({"organizer": app.user.organizer.slug, "count": true, "status": 0}).getQuery().getSingleScalarResult() }}
{{ "Awaiting payment"|trans }}
{% set ticketsSold = services.getOrders({"organizer": app.user.organizer.slug, "sumOrderElements": true, "status": 1}).getQuery().getSingleScalarResult() %}
{{ ticketsSold ? ticketsSold : 0 }}
{{ "Tickets sold"|trans }}
{% set orders = services.getOrders({"organizer": app.user.organizer.slug, "status": "all", "limit": 3}).getQuery().getResult() %}
{% if orders|length > 0 %}
{% include "Dashboard/Shared/Order/manage-orders-table.html.twig" with {events: events} %}
{% endif %}