{% extends "Global/layout.html.twig" %} {% set pagetitle = event.name %} {% block title %}{{pagetitle}}{% endblock %} {% block meta_dynamic_seo %} {% if event.tags %} {% else %} {% endif %} {% endblock %} {% block stylesheets %} {% endblock %} {% block content %} {% if is_granted('ROLE_ADMINISTRATOR') %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-info-circle', message: ('' ~ 'Click here'|trans ~ ' ' ~ 'to manage this event'|trans) } %} {% endif %} {% if is_granted('ROLE_ORGANIZER') %} {% if event.organizer == app.user.organizer %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-info-circle', message: ('' ~ 'Click here'|trans ~ ' ' ~ 'to manage your event'|trans) } %} {% endif %} {% endif %} {% if is_granted('ROLE_ATTENDEE') %} {% if app.user.hasBoughtATicketForEvent(event) %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-ticket-alt', message: ('You are going to this event'|trans ~ ' ' ~ '' ~ 'My tickets'|trans ~ '') } %} {% endif %} {% endif %} {% set navigation = [{"events": "Events"|trans, "current" : (pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %}

{{ event.name }}

{% set reviewscount = services.getReviews({"count": true, "event": event.slug}).getQuery().getSingleScalarResult() %} {% if event.enablereviews %}
{{ reviewscount }} {{"Review(s)"|trans|lower}}
{% endif %} {% if event.description %}
{{"Description"|trans}}
{{ event.description|raw|nl2br }}
{% endif %}
  • {% if event.category %}
    {{"Category"|trans}}
    {{ event.category.name }}
    {% endif %} {% if event.country %}
    {{"Country"|trans}}
    {{ event.country.name }}
    {% endif %} {% if event.languages|length > 0 %}
    {{"Languages"|trans}}
    {{ event.displayLanguages }}
    {% endif %} {% if event.subtitles|length > 0 %}
    {{"Subtitles"|trans}}
    {{ event.displaySubtitles }}
    {% endif %} {% if event.artists %}
    {{"Artists"|trans}}
    {{ event.artists }}
    {% endif %} {% if event.year %}
    {{"Year"|trans}}
    {{ event.year }}
    {% endif %} {% if event.audiences|length > 0 %}
    {{"Audience"|trans}}
      {% for audience in event.audiences %}
    • {{ audience.name }}
    • {% endfor %}
    {% endif %}
{% if event.images|length > 0 %}
{{"Photos"|trans}}
{% endif %} {% if event.youtubeurl %}
{{"Video"|trans}}
{% endif %} {% if event.hasContactAndSocialMedia %}
{{"Contact & Social media"|trans}}
{% endif %}
{{ "Share"|trans }}
{% if event.tags %}
{% for tag in event.tags|split(',') %} {{ tag }} {% endfor %}
{% endif %} {% if event.enablereviews %}

{{ reviewscount }} {{ "review"|trans|lower }}

{{ event.getRatingAvg }} {{"out of 5 stars"|trans|lower}}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if is_granted('ROLE_ATTENDEE') %} {% if event.isRatedBy(app.user) %} {{ "My review"|trans }} {% else %} {{ "Add your review"|trans }} {% endif %} {% endif %} {% else %} {{ "Add your review"|trans }} {% endif %}
{{ "5 stars"|trans }}
{{ event.getRatingsPercentageForRating(5) }}%
{{ "4 stars"|trans }}
{{ event.getRatingsPercentageForRating(4) }}%
{{ "3 stars"|trans }}
{{ event.getRatingsPercentageForRating(3) }}%
{{ "2 stars"|trans }}
{{ event.getRatingsPercentageForRating(2) }}%
{{ "1 star"|trans }}
{{ event.getRatingsPercentageForRating(1) }}%
{% if reviewscount|length %}
{% for review in services.getReviews({"event": event.slug, "limit": 8}).getQuery().getResult() %} {% include "Global/user-review.html.twig" with { review : review, showuser: 1 } %} {% endfor %} {% if reviewscount > 8 %} {{ "See all %reviewscount% reviews"|trans({'%reviewscount%': reviewscount}) }} {% endif %}
{% endif %} {% endif %}

{{ event.name }}

{% if event.enablereviews %}
{{ reviewscount }} {{"Reviews"|trans|lower}}
{% endif %} {% if event.hasAnEventDateOnSale %} {# Event Dates calendar used on multi date events #} {% if event.hasTwoOrMoreEventDatesOnSale %} {% set eventDatesCalendar = [] %} {% for eventDate in event.eventdates if eventDate.isOnSale %} {% set eventDatesCalendar = eventDatesCalendar|merge([{"Date": eventDate.startdate|date('Y-m-d'), "Title": eventDate.startdate|date('g:i A'), "Link": eventDate.reference}]) %} {% endfor %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-info-circle', message: "Click on a date to view tickets"|trans } %}
{% if is_granted('ROLE_ATTENDEE') %} {% endif %} {% endif %}
{% for eventDate in event.eventdates if eventDate.isOnSale %}
{{ "Dates"|trans }}
{# for the add to calendar link #} {% set eventstartdate = "" %} {% set eventenddate = "" %} {% set eventlocation = "" %} {% if eventDate.venue %} {% set eventlocation = eventDate.venue.name ~ ': ' ~ eventDate.venue.stringifyAddress %} {% else %} {% set eventlocation = "Online"|trans %} {% endif %} {% if eventDate.startdate %}
{{ eventDate.startdate|date('d') }}
{{ eventDate.startdate|localizeddate('none', 'none', app.request.locale, null, "MMMM")|capitalize|slice(0, 3) }}
{{ eventDate.startdate|date('Y') }}
{{ eventDate.startdate|date('g:i a')|upper }} {% if eventDate.enddate %} {% if eventDate.enddate|date('Y-m-d') == eventDate.startdate|date('Y-m-d') %} - {{ eventDate.enddate|date('g:i a')|upper }} {% endif %} {% endif %}
{% set eventstartdate = eventDate.startdate|date('F d, Y H:i') %} {% endif %} {% if eventDate.enddate %} {% if eventDate.enddate|date('Y-m-d') != eventDate.startdate|date('Y-m-d') %}
{{ eventDate.enddate|date('d') }}
{{ eventDate.enddate|localizeddate('none', 'none', app.request.locale, null, "MMMM")|capitalize|slice(0, 3) }}
{{ eventDate.enddate|date('Y') }}
{{ eventDate.enddate|date('g:i a')|upper }}
{% endif %} {% set eventstartdate = eventDate.enddate|date('F d, Y H:i') %} {% endif %}
{{ "Add to calendar"|trans }}

{% if eventDate.venue %}
{{ "Venue"|trans }} {% if eventDate.venue.listedondirectory %} {{ "Details"|trans }} {% endif %}

{{ eventDate.venue.name }}

{{ eventDate.venue.stringifyAddress }}

{% else %}
{{ "Venue" }}

{{ "Online"|trans }}

{% endif %}
{{ "Tickets"|trans }}
{% for ticket in eventDate.tickets %} {% if ticket.active %} {% endif %} {% endfor %}
{{ ticket.name }} {% if not ticket.isOnSale %} {{ ticket.stringifyStatus|trans }} {% else %} {{ ticket.free ? "Free"|trans : ((services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '') ~ ticket.getSalePrice() ~ (services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '')) }} {% if ticket.promotionalprice and not ticket.free %} {{ (services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '') ~ ticket.getPrice() ~ (services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '') }} {% endif %} {% endif %}
{% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if eventDate.hasSeatingPlan %} {{ "Pick your seats"|trans }} {% else %} {{ "Tickets"|trans }} {% endif %} {% include "Dashboard/Attendee/Cart/add-to-cart-modal.html.twig" with { eventdate: eventDate } %} {% else %} {% if eventDate.hasSeatingPlan %} {{ "Pick your seats"|trans }} {% else %} {{ "Tickets"|trans }} {% endif %} {% endif %} {% endif %}
{% endfor %}
{% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if event.isAddedToFavoritesBy(app.user) %} {% else %} {% endif %} {% else %} {{ "Add to favorites"|trans }} {% endif %} {% endif %} {% else %} {% include "Global/message.html.twig" with { type: 'info', icon: 'fas fa-info-circle', message: "No tickets on sale at this moment" } %} {% endif %}
{{ "Organizer"|trans }} {{ "Details"|trans }}

{{ event.organizer.name }}

{% if event.organizer.logoName %} {{ event.organizer.name }} {% endif %} {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if event.organizer.isFollowedBy(app.user) %} {% else %} {% endif %} {% else %} {{ "Follow"|trans }} {% endif %} {% endif %}
{% if event.showattendees %} {% set attendeescount = event.getTotalOrderElementsQuantitySum(1, 'all', 'ROLE_ATTENDEE') %} {% if attendeescount %}
{{ "Attendees"|trans }} ({{attendeescount}}) {{ "See all"|trans }}
{% for user in services.getUsers({"hasboughtticketfor": event.slug, "limit": 12, "role": "attendee"}).getQuery().getResult() %} {% include "Global/user-avatar.html.twig" with { user: user, showusernametooltip: true } %} {% endfor %} {% if attendeescount > 12 %} {{ attendeescount - 12 }} {% endif %}
{% endif %} {% endif %} {% if services.getSetting("newsletter_enabled") == "yes" and services.getSetting("mailchimp_api_key") and services.getSetting("mailchimp_list_id") %}
{% include "Global/newsletter-box.html.twig" %}
{% endif %}
{% set othereventsbythisorganizer = services.getEvents({"organizer" : event.organizer.slug, "limit" : 8, "notId": event.id}).getQuery().getResult() %} {% if othereventsbythisorganizer|length > 0 %}

{{ "Other events by %organizername%"|trans({'%organizername%' : event.organizer.name}) }}

{% endif %} {% set similarevents = services.getEvents({"category" : event.category.slug, "limit" : 8, "notId": event.id}).getQuery().getResult() %} {% if similarevents|length > 0 %}

{{ "Similar events"|trans }}

{% endif %}
{% if event.hasAnEventDateOnSale %} {% for eventDate in event.eventdates if eventDate.isOnSale %} {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} {% if eventDate.hasSeatingPlan %} {% include "Dashboard/Shared/Venue/SeatingPlans/seating-plan-sections-modals.html.twig" with {seatingPlan: eventDate.seatingPlan, eventDate: eventDate} %} {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('event') }} {% endblock %}