{% if notifications is defined %}
{% for notification in notifications %}
{% if not notification.isRead %}
<div class="dropdown-item notify-item border-bottom" data-notification-id="{{ notification.id }}">
<div class="notify-icon bg-primary"><i class="uil uil-comment-message"></i></div>
<p class="notify-details">
{{ notification.content }}
<small class="text-muted">
{{ notification.timeAgo }}
{# <time class="timeago" datetime="{{ notification.createdAt|date('Y-m-d H:i') }}"></time>#}
</small>
{% if notification.entityType == 'invoice' %}
<a href="{{ path('client_offer_details', {'id': notification.entityId}) }}#privateMessages" class="badge badge-success">Dołącz fakturę</a>
<a href="{{ path('client_offer_details', {'id': notification.entityId}) }}" class="badge badge-success">Podgląd oferty</a>
{% elseif notification.entityType == 'offer' %}
<a href="{{ path('client_'~ notification.entityType ~'_details', {'id': notification.entityId}) }}{% if notification.contentId is not null %}#private-message-{{ notification.contentId }}{% endif %}" class="badge badge-success">Zobacz</a>
{% elseif notification.entityType == 'inquiry' %}
<a href="{{ path('client_'~ notification.entityType ~'_details', {'id': notification.entityId}) }}{% if notification.contentId is not null %}#showDiscussionPopup{% endif %}" class="badge badge-success">Zobacz</a>
{% elseif notification.entityType == 'private_message' %}
<a href="{{ path('client_private_message_customer_index', {'id': notification.entityId}) }}" class="badge badge-success">Zobacz</a>
{% endif %}
<a class="loader-button btn btn-primary [ read-notification ] text-white"
data-action="/notification/read/{{ notification.id }}"
style="animation: blinker 1s linear infinite;"
data-toggle="tooltip" data-html="true" data-placement="top" data-original-title="Pamiętaj, aby oznaczać wiadomość jako przeczytaną, dzięki temu będziesz mieć porządek oraz zniknie czerwona koperta informująca o nowej wiadomości"
>
<i class="fa fa-spinner fa-spin d-none loader-button-mark"></i> Oznacz jako przeczytane <i class="fa fa-envelope" style="color: red;"></i>
</a>
<div class="text-center">
{% if notification.make is defined and notification.model is defined %}
<a class="badge text-dark" style="font-size: 14px;">{{ notification.make }} {{ notification.model }}</a>
{% endif %}
{% if notification.make2 is defined and notification.model2 is defined %}
<a class="badge text-dark" style="font-size: 14px;">{{ notification.make2 }} {{ notification.model2 }}</a>
{% endif %}
</div>
<br>
{% if notification.entityType == "inquiry" or notification.entityType == "offer" %}
<div class="board-box">
<div class="license-plate plate-small" style="max-width: 40%">
<div class="blue-stripe">
<span class="stars">*</span>
<span class="PL">|</span>
</div>
<div class="license-plate-number">
{% if notification.registrationNumber is defined %}
{{ notification.registrationNumber }}
{% endif %}
{% if notification.registrationNumber2 is defined %}
{{ notification.registrationNumber2 }}
{% endif %}
</div>
</div>
</div>
{% endif %}
</p>
</div>
{% endif %}
{% endfor %}
{% endif %}