{% extends 'layouts/base.html' %} {% load social_filters %} {% load social_icons %} {% load action_icons %} {% load star_rating %} {% block title %}Comment Detail - {{ platform_name }}{% endblock %} {% block page_title %}Comment Details{% endblock %} {% block page_subtitle %}View detailed analysis from {{ platform_name }}{% endblock %} {% block content %}

Comment Details

View detailed analysis from {{ platform_name }}

{% social_icon platform_type size=24 %}
{{ platform_name }}
{{ comment.author_name|slice:":1"|upper }}

{{ comment.author_name }}

{% if comment.synced_via_webhook %} Real-time {% endif %} {% if comment.ai_analysis %} AI Analyzed {% endif %} {% if comment.rating %} {{ comment.rating }}/5 {% endif %}
{{ comment.created_at|date:"M d, Y H:i" }}

{{ comment.text }}

{% if comment.media_url %}
Comment media
{% endif %}
{{ comment.like_count }}
Likes
{{ comment.reply_count }}
Replies
{{ comment.comment_id|truncatechars:12 }}
ID
{% if replies %}
Replies ({{ replies|length }})
{% for reply in replies %}
{{ reply.author_name }} {% if reply.author_name == 'You' %} You {% endif %}
{{ reply.created_at|date:"M d, Y H:i" }}

{{ reply.text }}

{{ reply.reply_id|truncatechars:10 }}
{% endfor %}
{% endif %}
Post a Reply
{% csrf_token %}

Your reply will be posted publicly to platform

Cancel

Comment Information

Platform {{ platform_name }}
{% if platform_type == 'META' and comment.source_platform %}
Source {% if comment.source_platform == 'FB' %} Facebook {% elif comment.source_platform == 'IG' %} Instagram {% endif %}
{% endif %}
Author {{ comment.author_name }}
Created {{ comment.created_at|date:"M d, Y H:i" }}
Replies {{ replies|length }}
Sync Method {% if comment.synced_via_webhook %} Webhook {% else %} Polling {% endif %}
{% if comment.ai_analysis %} {% if comment.ai_analysis.sentiment %}
Sentiment Analysis
English
{{ comment.ai_analysis.sentiment.classification.en|capfirst }}
العربية
{{ comment.ai_analysis.sentiment.classification.ar }}
Sentiment Score {{ comment.ai_analysis.sentiment.score|floatformat:2 }}
Confidence {{ comment.ai_analysis.sentiment.confidence|floatformat:0 }}%
{% if comment.ai_analysis.sentiment.urgency_level %}
Urgency Level {% if comment.ai_analysis.sentiment.urgency_level.en == 'critical' %} {{ comment.ai_analysis.sentiment.urgency_level.en }} {% elif comment.ai_analysis.sentiment.urgency_level.en == 'high' %} {{ comment.ai_analysis.sentiment.urgency_level.en }} {% elif comment.ai_analysis.sentiment.urgency_level.en == 'medium' %} {{ comment.ai_analysis.sentiment.urgency_level.en }} {% else %} {{ comment.ai_analysis.sentiment.urgency_level.en }} {% endif %}
{% endif %}
{% endif %} {% if comment.ai_analysis.actionable_insights %}
Actionable Insights
{% if comment.ai_analysis.actionable_insights.primary_concern %}
Primary Concern
{{ comment.ai_analysis.actionable_insights.primary_concern.en }}
{{ comment.ai_analysis.actionable_insights.primary_concern.ar }}
{% endif %} {% if comment.ai_analysis.actionable_insights.requires_followup is not None %}
Requires Follow-up {% if comment.ai_analysis.actionable_insights.requires_followup %} Yes {% else %} No {% endif %}
{% endif %} {% if comment.ai_analysis.actionable_insights.followup_priority %}
Follow-up Priority {% if comment.ai_analysis.actionable_insights.followup_priority.en == 'urgent' %} {{ comment.ai_analysis.actionable_insights.followup_priority.en }} {% elif comment.ai_analysis.actionable_insights.followup_priority.en == 'high' %} {{ comment.ai_analysis.actionable_insights.followup_priority.en }} {% else %} {{ comment.ai_analysis.actionable_insights.followup_priority.en }} {% endif %}
{% endif %}
{% endif %} {% if comment.ai_analysis.business_intelligence %}
Business Intelligence
{% if comment.ai_analysis.business_intelligence.patient_satisfaction_score %}
Patient Satisfaction Score
{{ comment.ai_analysis.business_intelligence.patient_satisfaction_score }}
{% endif %} {% if comment.ai_analysis.business_intelligence.retention_risk %}
Retention Risk {% if comment.ai_analysis.business_intelligence.retention_risk.level == 'high' %} {{ comment.ai_analysis.business_intelligence.retention_risk.level }} {% elif comment.ai_analysis.business_intelligence.retention_risk.level == 'medium' %} {{ comment.ai_analysis.business_intelligence.retention_risk.level }} {% else %} {{ comment.ai_analysis.business_intelligence.retention_risk.level }} {% endif %}
{% endif %} {% if comment.ai_analysis.business_intelligence.reputation_impact %}
Reputation Impact {% if comment.ai_analysis.business_intelligence.reputation_impact.level == 'severe' %} {{ comment.ai_analysis.business_intelligence.reputation_impact.level }} {% elif comment.ai_analysis.business_intelligence.reputation_impact.level == 'negative' %} {{ comment.ai_analysis.business_intelligence.reputation_impact.level }} {% elif comment.ai_analysis.business_intelligence.reputation_impact.level == 'positive' %} {{ comment.ai_analysis.business_intelligence.reputation_impact.level }} {% else %} {{ comment.ai_analysis.business_intelligence.reputation_impact.level }} {% endif %}
{% endif %}
{% endif %} {% if comment.ai_analysis.keywords %}
Keywords
{% for keyword in comment.ai_analysis.keywords.en %} {{ keyword }} {% endfor %}
{% for keyword in comment.ai_analysis.keywords.ar %} {{ keyword }} {% endfor %}
{% endif %} {% if comment.ai_analysis.emotions %}
Emotion Analysis
Joy / فرح {{ comment.ai_analysis.emotions.joy|floatformat:0 }}%
Anger / غضب {{ comment.ai_analysis.emotions.anger|floatformat:0 }}%
Sadness / حزن {{ comment.ai_analysis.emotions.sadness|floatformat:0 }}%
Fear / خوف {{ comment.ai_analysis.emotions.fear|floatformat:0 }}%
{% endif %} {% if comment.ai_analysis.summaries %}
AI Summary

{{ comment.ai_analysis.summaries.en }}

{{ comment.ai_analysis.summaries.ar }}

{% endif %} {% else %}
AI Analysis Pending

This comment is waiting for AI-powered analysis. The system will automatically analyze sentiment, topics, emotions, and generate actionable business intelligence insights.

Analysis will include:
  • Sentiment analysis (English & Arabic)
  • Actionable insights & recommendations
  • Business intelligence metrics
  • Patient journey tracking
  • Service quality indicators
{% endif %}
{% endblock %}