{foreach $aw_users as $user}
    <div class="discussion {if $receiver_id eq $user.user_id} message-active {/if}" data-receiverId="{$user.user_id}">
        <div class="photo" style="background-image: url('{$path}/messages/chat.png');"></div>
        <div class="desc-contact">
            <p class="name">{$user.name}</p>
            {if $user.last_message}
                <p class="message">{$user.last_message}</p>
            {/if}
        </div>
        {if $user.last_message_date}
            <div class="timer">{$user.last_message_date}</div>
        {/if}
    </div>
{/foreach}