{% load static %}

<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">

{% for latest in user_statuses_time_ago %}
<div class="w-full flex flex-col py-3">
    <div class="w-full flex flex-col justify-center items-start gap-2">
        <div class="w-full flex justify-between items-center gap-2">
            <div class="flex justify-start gap-2">
                <div class="w-[45px] h-[45px] rounded-full">
                    <img src='{{latest.status.staff.image.url}}' alt="user profile"
                        class="w-full h-full object-cover rounded-full">
                </div>
                <div class="flex flex-col">
                    <h1 class="text-sm text-slate-700 font-semibold">{{latest.status.staff.user.first_name}}
                        {{latest.status.staff.user.last_name}}</h1>
                    {% if latest.time_ago == '0min ago' %}
                    <p class="text-sm text-gray-500">Just Now</p>
                    {%else %}
                    <p class="text-sm text-gray-500">{{ latest.time_ago}}</p>
                    {%endif%}
                </div>
            </div>
            <div class="cursor-pointer">
                <i class="fa fa-thumbs-up" style="color: rgb(184, 184, 184); font-size: 15px;"></i>
            </div>
        </div>

        <!-- Status -->
        <div class="w-full">
            
            <p class="text-sm text-gray-500">{{latest.status.text}}</p>
        </div>

        <!-- Add comment section -->
        <div class="w-full h-fit flex justify-between items-center border border-gray-200 mt-2 rounded-md relative">
            <input type="text" placeholder="Add Comment..."
                class="outline-none text-gray-500 px-3 w-full text-sm h-[40px] rounded-tl-md rounded-bl-md">
            <button class="w-fit absolute right-0 h-full px-3 py-2 bg-slate-800 rounded-tr-md rounded-br-md">
                <i class="fa fa-send" style="color: white; font-size: 15px;"></i>
            </button>
        </div>
    </div>
</div>

{% endfor %}