{% 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 %}
  • {{ utils.stringifySeatLabel(reservedSeat) }}
  • {% endfor %}
{% endif %}
{% if cartElement.eventTicket.eventDate.event.isFree %} {{ "Free"|trans }} {% else %} {% if cartElement.eventTicket.eventDate %} {{ cartElement.eventTicket.getSalePrice|format_amount }} {% endif %} {% endif %}
{{ cartElement.getPrice()|format_amount }}
{{ "Fees"|trans }}: {{ app.user.getTotalFees()|format_amount }}
{{ "Total"|trans }}: {{ app.user.getTicketsInCartPriceSum(true)|format_amount }}
{{ "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 %}