{% extends "Global/layout.html.twig" %} {% set pagetitle = 'My cart' | trans %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{"dashboard_index": "Dashboard"|trans,"current":(pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %}
{% if app.user.cartelements|length %} {% include 'Global/message.html.twig' with { type: 'warning',icon: 'fas fa-info', message: "Your tickets are not reserved until checkout, the quantity you intend to buy might not be available if you do not proceed to checkout right away"|trans } %}
{{ app.user.getTicketsInCartQuantitySum }} {{ "tickets found in your cart"|trans }}
{% for cartelement in app.user.cartelements %} {% endfor %}
{{ "Event"|trans ~ " / " ~ "Ticket"|trans }} {{ "Price"|trans }} {{ "Quantity"|trans }} {{ "Subtotal"|trans }}
{% include "Global/event-preview-horizontal.html.twig" with { eventticket: cartelement.eventticket } %} {% if cartelement.reservedSeats and cartelement.reservedSeats|length > 0 %}
{{ "Reserved seats"|trans }}
    {% for reservedSeat in cartelement.reservedSeats %}
  • {{ services.stringifySeatLabel(reservedSeat) }}
  • {% endfor %}
{% endif %}
{% if cartelement.eventticket.eventdate.event.isFree %} {{ "Free"|trans }} {% else %} {% if cartelement.eventticket.eventdate %} {{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ cartelement.eventticket.getSalePrice }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }} {% endif %} {% endif %}
{{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ cartelement.getPrice }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ "Fees"|trans }}: {{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ app.user.getTotalFees }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ "Total"|trans }}: {{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ app.user.getTicketsInCartPriceSum(true) }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ "Buy more tickets"|trans }} {{ "Empty cart"|trans }} {% if app.user.getTicketsInCartPriceSum(true) > 0 %} {{ "Checkout"|trans }} {% else %} {{ "Register"|trans }} {% endif %}
{% else %} {% include "Global/message.html.twig" with { icon: "fas fa-shopping-cart", type: "info", message: ('Your cart is empty'|trans) } %} {% endif %}
{% endblock %}