<div data-roomid={{chat_room.id}} data-session="{{chat_room.chatroomguest.visitor.session_id}}"
class="chat-room w-full flex flex-col gap-1 py-4 px-3 border-b border-gray-200 text-sm cursor-pointer bg-white">
<div class="w-full flex justify-between items-center">
    <div class="w-full flex items-center gap-2">
        <div class="w-[40px] h-[40px] rounded-full">
            <img src="{{chat_room.chatroomguest.visitor.flag_image_url}}">
        </div>
        <div class="flex flex-col">
            <p class="text-secondosiblue font-poppinsBold">{{chat_room.chatroomguest.visitor.ip_address}}</p>
            <p class="text-gray-500 text-xs">{{chat_room.chatmessage_set.all.last.content}}</p>

            <p class="text-gray-500 opacity-70 text-xs">{{chat_room.last_updated}}</p>
        </div>
    </div>

    <div data-roomid={{chat_room.id}}
        class="unread w-[20px] h-[20px] bg-osiblue rounded-full shadow-md flex justify-center items-center text-white text-[10px] {% if chat_room.number_of_unread == 0 %} hidden {% endif %}">
        <p>{{number_of_unread}}</p>
    </div>
</div>
</div>