{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% load social_filters %} {% block title %}{% trans "Analytics Dashboard" %} - {% trans "Social Media Monitoring" %} - PX360{% endblock %} {% block content %}

{% trans "Analytics Dashboard" %}

{% trans "Social media insights and trends" %}

{% trans "Dashboard" %}
-
{% trans "Total Comments" %}

{{ total_comments }}

{{ analyzed_comments }} {% trans "analyzed" %}
{% trans "Positive" %}

{{ sentiment_distribution|get_sentiment_count:'positive' }}

{% widthratio sentiment_distribution|get_sentiment_count:'positive' total_comments 100 %}% {% trans "of total" %}
{% trans "Negative" %}

{{ sentiment_distribution|get_sentiment_count:'negative' }}

{% widthratio sentiment_distribution|get_sentiment_count:'negative' total_comments 100 %}% {% trans "of total" %}
{% trans "Avg Engagement" %}

{{ engagement_metrics.avg_likes|add:engagement_metrics.avg_replies|floatformat:1 }}

{% trans "likes + replies" %}
{% trans "Sentiment Distribution" %}
{% trans "Platform Distribution" %}
{% trans "Daily Trends" %}
{% trans "Top Keywords" %}
{% if top_keywords %}
{% for keyword in top_keywords|slice:":12" %}
{{ keyword.keyword }} {{ keyword.count }}
{% endfor %}
{% else %}

{% trans "No keywords found" %}

{% endif %}
{% trans "Top Topics" %}
{% if top_topics %}
{% for topic in top_topics|slice:":10" %}
{{ topic.topic }}
{{ topic.count }}
{% endfor %}
{% else %}

{% trans "No topics found" %}

{% endif %}
{% trans "Platform Breakdown" %}
{% for platform in platform_distribution %} {% empty %} {% endfor %}
{% trans "Platform" %} {% trans "Comments" %} {% trans "Avg Sentiment" %} {% trans "Total Likes" %} {% trans "Total Replies" %} {% trans "Actions" %}
{{ platform.platform_display }} {{ platform.count }} {{ platform.avg_sentiment|floatformat:2 }} {{ platform.total_likes }} {{ platform.total_replies }} {% trans "View" %}

{% trans "No data available" %}

{% trans "Top Entities" %}
{% if top_entities %}
{% for entity in top_entities|slice:":20" %}
{{ entity.entity }}
{{ entity.count }}
{% endfor %}
{% else %}

{% trans "No entities found" %}

{% endif %}
{% block extra_js %} {% endblock %} {% endblock %}