{% load i18n pilotstats %}
{# A plain .card, like Alliance Auth's own widgets: the dashboard isn't inside #}
{# Pilot Stats' pages, so bg-body-tertiary would be light on Darkly. #}
{% translate "Pilot Stats — Last 7 Days" as widget_title %}
{% include "framework/dashboard/widget-title.html" with title=widget_title %}
{% if upload_count or payout_isk or kills %}
{{ damage_out|floatformat:"0g" }}
{% trans "Damage dealt" %}
{{ reps_given|floatformat:"0g" }}
{% trans "Reps given" %}
{% if wallet_connected or payout_isk %}{{ payout_isk|isk }}{% else %}—{% endif %}
{% trans "Payouts" %}
{% if isk_per_hour is not None %}{{ isk_per_hour|isk }}{% else %}—{% endif %}
{% trans "ISK per hour" %}
{{ kills }}
{% trans "Kills" %}
{% else %}
{% trans "No combat logs in the last 7 days." %}
{% endif %}
{% if last_session %}
{% trans "Last session" %}:
{{ last_session.character.character_name }}
{% if last_session.session_started and last_session.session_ended %}· {{ last_session.duration_display }}{% endif %}
{% endif %}
{% if rank %}
{% if last_session %}·{% endif %}
{% blocktrans %}7-day damage rank #{{ rank }}{% endblocktrans %}
{% endif %}