{% extends "layouts/base.twig" %} {% block title %}{{ translations.meetings_overview }}{% endblock %} {% block head %} {# FullCalendar CDN #} {% endblock %} {% block page_heading %}

{{ translations.meetings_overview }}

{{ translations.meetings_overview_subtitle }}

{% endblock %} {% block content %}

{{ translations.meetings_overview }}

{# ─── Tabela spotkań ─── #}

{{ translations.meetings_overview }}

{# ── Filtry ── #}
{% if meetings is not empty %}
{% for meeting in meetings %} {% set participants = meeting.getParticipants() %} {% set pCount = participants|length %} {# Tytuł + lokalizacja #} {# Data i godzina #} {# Typ #} {# Sklep #} {# Uczestnicy — maks 2 + licznik #} {# Status #} {# Akcje #} {% endfor %}
{{ translations.meeting }} {{ translations.date_and_time }} {{ translations.type }} {{ translations.shop }} {{ translations.participants }} {{ translations.status }} {{ translations.actions }}
{% if meeting.isCancelled() %}{{ meeting.getTitle() }}{% else %}{{ meeting.getTitle() }}{% endif %}
{% if meeting.getFormattedLocation() %}
{{ meeting.getFormattedLocation() }} {% if meeting.getLocationComment() %} {% endif %}
{% endif %}
{{ meeting.getMeetingDate() }}
{{ meeting.getMeetingTime()|slice(0, 5) }}
{% if meeting.getType() == 'individual' %} {{ translations.type_individual }} {% else %} {{ translations.type_group }} {% endif %} {% if meeting.getShopName() %} {{ meeting.getShopName() }} {% else %} {% endif %} {% for p in participants %} {% if loop.index <= 2 %} {% if p.participant_type == 'OWNER' %} {{ p.display_name }} {% else %} {{ p.display_name }} {% endif %} {% endif %} {% else %} {% endfor %} {% if pCount > 2 %} +{{ pCount - 2 }} {% endif %} {% if meeting.isActive() %} {{ translations.status_active }} {% else %} {{ translations.status_cancelled }} {% endif %} {% if meeting.isActive() %} {% endif %} {% if meeting.getGoogleCalendarLink() %} {% endif %}
{{ translations.no_meetings_matching_filters }}
{% else %}

{{ translations.no_meetings_found }}

{% endif %}
{# ─────────────────────────────────────────────────────────────────── #} {# MODAL — Dodaj / Edytuj spotkanie #} {# ─────────────────────────────────────────────────────────────────── #} {# ─────────────────────────────────────────────────────────────────── #} {# MODAL — Potwierdzenie anulowania #} {# ─────────────────────────────────────────────────────────────────── #} {# ─────────────────────────────────────────────────────────────────── #} {# MODAL — Agenda spotkania #} {# ─────────────────────────────────────────────────────────────────── #} {% endblock %} {% block scripts %} {% endblock %}