{% load static %}
<div class="tab_user_messanger{% if item.id == ticket.id %} select{% endif %}" onclick="selectedUserMessenger({{ item.id }},null,this)" data-cur-receiver-item="{{ item.id }}">
    <div class="left-part-tab-user">
        <img class="user_avatar_messenger" {% if item.user_profile.avatar %}src="{{ item.user_profile.avatar.url }}"{% else %}src="{% static "img/svg/user_icon_standart.png" %}"{% endif %}>
        <div class="status_user">
        </div>
    </div>
    <div class="center-part-tab-user">
        <span class="user_name_messenger">{{ item.owner.last_name }} {{ item.owner.first_name }}</span>
        <span class="last-message-messenger-user-tab">{{ item.name }}</span>
    </div>
    {% if item.unread_msgs_count %}
        <div class="right-part-tab-user">
            <div class="cost-messages-in-user-tab-messenger"><span>{{ item.unread_msgs_count }}</span></div>
        </div>
    {% endif %}
</div>