Notifications
{% if getUnreadNotificationCount() != 0 %}
New notifications
Mark as all read
{% endif %}
{% set notifications = getUnreadNotifications() %} {% if notifications is empty %}

No new notifications

{% else %} {% for notification in notifications %} {% if notification.notificationType == "ticket_chat" %}
{% if notification.senders is not null and notification.senders.image is not null %} {% else %} {% endif %}
{{ notification.senders.username }}

{{ notification.message | raw }}

{{ notification.createdAt|date('Y-m-d H:i:s') }}
{% else %}
{% if notification.senders is not null and notification.senders.image is not null %} {% else %} {% endif %}
{{ notification.message | raw }}
{{ notification.createdAt|date('Y-m-d H:i:s') }}
{% endif %} {% endfor %} {% endif %}
{% include 'common/notification.html.twig' %} {% block javascripts %} {% include 'common/notification.js.twig' %} {% endblock %}