{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Physician Leaderboard" %} - PX360{% endblock %} {% block content %}

{% trans "Physician Leaderboard" %}

{% trans "Top-rated physicians for" %} {{ year }}-{{ month|stringformat:"02d" }}

{% trans "Back to Physicians" %}
{% trans "Total Physicians" %}

{{ stats.total_physicians|default:0 }}

{% trans "Average Rating" %}

{{ stats.average_rating|floatformat:2|default:"-" }}

{% trans "Total Surveys" %}

{{ stats.total_surveys|default:0 }}

{% trans "Excellent (4.5+)" %}

{{ distribution.excellent|default:0 }}

{% trans "Clear" %}
{% trans "Top Performers" %}
{% if leaderboard %}
{% for entry in leaderboard %} {% endfor %}
{% trans "Rank" %} {% trans "Physician" %} {% trans "Specialization" %} {% trans "Department" %} {% trans "Rating" %} {% trans "Surveys" %} {% trans "Sentiment" %} {% trans "Trend" %} {% trans "Actions" %}
{% if entry.rank <= 3 %}

{% if entry.rank == 1 %} {% elif entry.rank == 2 %} {% elif entry.rank == 3 %} {% endif %}

{% else %} #{{ entry.rank }} {% endif %}
{{ entry.physician.get_full_name }}
{{ entry.physician.license_number }}
{{ entry.physician.specialization }} {% if entry.physician.department %} {{ entry.physician.department.name }} {% else %} - {% endif %}

{{ entry.rating.average_rating|floatformat:2 }}

{{ entry.rating.total_surveys }}
{{ entry.rating.positive_count }} {{ entry.rating.neutral_count }} {{ entry.rating.negative_count }}
{% if entry.trend == 'up' %} {% trans "Up" %} {# #} {% elif entry.trend == 'down' %} {% trans "Down" %} {% else %} {% trans "Stable" %} {% endif %}
{% else %}

{% trans "No ratings available for this period" %}

{% endif %}
{% trans "Performance Distribution" %}

{{ distribution.excellent|default:0 }}

{% trans "Excellent" %}
(4.5+)

{{ distribution.good|default:0 }}

{% trans "Good" %}
(3.5-4.5)

{{ distribution.average|default:0 }}

{% trans "Average" %}
(2.5-3.5)

{{ distribution.poor|default:0 }}

{% trans "Poor" %}
(<2.5)

{% endblock %}