{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Checkout' | trans %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{"current":(pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %}
{% set secondsLeft = 0 %} {% for orderElement in order.orderelements %} {% for ticketReservation in orderElement.ticketsReservations if not ticketReservation.isExpired %} {% set dateInterval = ticketReservation.expiresAt|date_modify("+"~ services.getSetting('checkout_timeleft') ~" second").diff(date("now")) %} {% set secondsLeft = dateInterval|date("%i") * 60 + dateInterval|date("%s") %} {% endfor %} {% endfor %} {% if secondsLeft > 0 %} {% include 'Global/message.html.twig' with { type: 'warning',icon: 'fas fa-hourglass-half', message: '%mins% left before tickets are released'|trans({"%mins%" : ""}) } %} {% endif %}
{{ "Order summary"|trans }}
{% for orderelement in order.orderelements %} {% endfor %}
{{ "Event / Ticket"|trans }} {{ "Price"|trans }} {{ "Quantity"|trans }} {{ "Subtotal"|trans }}
{% include "Global/event-preview-horizontal.html.twig" with { eventticket: orderelement.eventticket } %}
{% if orderelement.eventticket.eventdate.event.isFree %} {{ "Free"|trans }} {% else %} {% if orderelement.eventticket.eventdate %} {{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ orderelement.eventticket.getSalePrice }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }} {% endif %} {% endif %}
{{ orderelement.quantity }}
{{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ orderelement.getPrice }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ form_start(form, {'attr': { 'novalidate': 'novalidate' } }) }} {{ form_widget(form.orderReference, { value: order.reference }) }}
{{ "Optional attendee information"|trans }}
{{ form_label(form.firstname, null, {'label_attr': {'class': 'not-required'}}) }} {{ form_widget(form.firstname) }} {{ form_errors(form.firstname) }}
{{ form_label(form.lastname, null, {'label_attr': {'class': 'not-required'}}) }} {{ form_widget(form.lastname) }} {{ form_errors(form.lastname) }}
{{ "Tickets"|trans }}
{{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ order.getOrderElementsPriceSum() }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ "Fees"|trans }}
{{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ order.getTotalFees() }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{{ "Total"|trans }}
{{ services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '' }}{{ order.getOrderElementsPriceSum(true) }}{{ services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '' }}
{% if order.getOrderElementsPriceSum(true) > 0 %} {% else %} {% endif %} {{ form_widget(form._token) }} {{ form_end(form, {'render_rest': false}) }}
{% endblock %}