{% extends 'layout.html.twig' %} {% block title %}Übersicht · E&P Platz{% endblock %} {% block content %}

Übersicht

{{ today|format_datetime(pattern: 'EEEE, d. MMMM y') }}

{# One tile per ResourceType, generated rather than written out. A new bookable kind appears here -- with a working link and a correct count -- by adding a case to the enum. #}
{% for tile in tiles %}
{{ ux_icon(tile.type.icon, { class: 'h-6 w-6 shrink-0 text-primary' }) }} {{ tile.type.plural }}

{{ tile.type.description }}

{% if tile.total == 0 %} nichts eingerichtet {% elseif tile.free == 0 %} heute alles belegt {% else %} {{ tile.free }} von {{ tile.total }} heute frei {% endif %} {% if tile.mine %} {{ tile.mine.resource.label }} {%- if tile.mine.resource.group %} · {{ tile.mine.resource.group.label }}{% endif %} {% endif %}
{% endfor %}
{{ ux_icon('lucide:calendar-days', { class: 'h-6 w-6 shrink-0 text-primary' }) }} Meine Buchungen

Alle Buchungen verwalten.

{{ ux_icon('lucide:key-round', { class: 'h-6 w-6 shrink-0 text-primary' }) }} Zugangscodes

Codes für Türen, Aufzug und Schranke.

{# The header is deliberately not navigation, so the dashboard is the only place an admin screen can be reached from. #} {% if is_granted('ROLE_ADMIN') %}
{{ ux_icon('lucide:shield-check', { class: 'h-6 w-6 shrink-0 text-primary' }) }} Verwaltung

Buchungen aller Mitarbeitenden einsehen und ggf. freigeben.

{{ ux_icon('lucide:layout-grid', { class: 'h-6 w-6 shrink-0 text-primary' }) }} Ressourcen

Buchbare Ressourcen und ihre Standorte verwalten.

{% endif %}
{% endblock %}