{% if data|length>0 %} {% for comment in data %}-
{% if comment.createdUid is defined and comment.createdUid !='' and (comment.createdUid | userPhotoById)!="" and file_exists(base_path~'/images/uploads/user_photo/'~ comment.createdUid | userPhotoById) %}
{% set user_photo = comment.createdUid | userPhotoById %}
{#
#}
{% 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 | raw | nl2br}}