{% if data|length>0 %} {% for comment in data %}-
{% if comment.createdUid is defined and comment.createdUid !='' and file_exists(base_path~'/images/uploads/user_photo/'~ comment.createdUid | userPhotoById) %}
{% set user_photo = comment.createdUid | userPhotoById %}
{% if user_photo != '' %}
{% else %}
{% endif %}
{% else %}
{% if comment.sendBy=="admin" %}
{% else %}
{% endif %}
{#}
{#}
{% endif %}
{#}
{% endfor %} {% endif %}
{% if comment.sendBy=="admin" %} {{ "Admin" }} {% else %} {{ comment.sendBy }} {% endif %}
{#}{{ comment.sendBy }}
{{ comment.createdAt |dateFormat}}{{ comment.comment | striptags | nl2br}}