{# LIBRARIES #}
{{ attach_library('ui_patterns/tl_place_content.tl_place_content_lib') }}

{# TEMPLATE #}
{% include "@organisms/tm-event/tl-event-content/partials/tl-top-section.twig" %}

<div class="event-place">
  <h2><i class="fas fa-map-marker-alt event-icon"></i> Location</h2>
  {% include "@organisms/tm-event/tl-event-content/partials/tl-event-place.twig" %}

  {% if fares %}
    {{ fares }}
  {% endif %}

  {% if pricing %}
    <h2><i class="fas fa-money-bill-wave event-icon"></i> Price</h2>
    <div class="event-text-section p-3 mb-4">
      <span>{{ pricing|raw }}</span>
    </div>
  {% endif %}

  {% if opening_times %}
    <h2><i class="fas fa-clock event-icon"></i> Opening times</h2>
    <div class="event-text-section p-3 mb-4">
      <span>{{ opening_times|raw }}</span>
    </div>
  {% endif %}
  {% if place_email or phones or booking_url %}
    <h2><i class="fas fa-user event-icon"></i> Get in contact</h2>
    <div class="event-text-section p-3 mb-4">
      <ul class="ulp">
        {% if phones %}
          {% for phone in phones %}
            <li>{{ phone.type }}: <a href="tel:{{ phone.number }}">{{ phone.number }}</a></li>
          {% endfor %}
        {% endif %}
        {% if place_email %}
          <li>Email: <a href="mailto:{{ place_email }}">{{ place_email }}</a></li>
        {% endif %}
      </ul>
    </div>
  {% endif %}
</div>
