{% extends "layouts/base.html" %} {% load static i18n %} {% block extrastyle %}
{% endblock %} {% block content %}

### {% trans "Histórico de Coletas" %}

{% trans "Voltar" %}
{% if user_seasons %}

##### {% trans "Filtrar por Temporada" %}

{% trans "Todas as Temporadas" %} {% for s in user_seasons %} {{ s.name }} {% if s.is_active %} {% trans "Ativa" %} {% endif %} {% endfor %}
{% endif %} {% if not history_by_season %}
{% if selected_season %} {% trans "Você ainda não coletou nenhum prêmio diário nesta temporada." %} {% else %} {% trans "Você ainda não coletou nenhum prêmio diário." %} {% endif %}
{% else %}
{% trans "Total de coletas" %}: {{ total_claims }} {% if selected_season %} • {% trans "Temporada" %}: {{ selected_season.name }} {% endif %}
{% for season_key, season_data in history_by_season.items %} {% with season_info=season_data.season month_data=season_data.history_by_month %}

##### {{ season_info.name }} {% if season_info.is_active %} {% trans "Ativa" %} {% endif %} ({{ season_info.start_date|date:"d/m/Y" }} - {{ season_info.end_date|date:"d/m/Y" }})

{% if month_data %} {% for month_key, month_info in month_data.items %}

##### {{ month_info.month_name }} {{ month_info.year }}

{{ month_info.days_claimed|length }} / {{ month_info.total_days }} {% trans "dias" %} {% widthratio month_info.days_claimed|length month_info.total_days 100 %}%
{% for day_num in month_info.days_list %} {% if day_num in month_info.days_claimed %}
{{ day_num }}
{% else %}
{{ day_num }}
{% endif %} {% endfor %}
{% if month_info.claims %}

###### {% trans "Detalhes das coletas" %}

{% trans "Dia" %} | {% trans "Data/Hora" %} | {% trans "IP" %}
--- | --- | ---
{% for claim in month_info.claims %}
{% trans "Dia" %} {{ claim.day_of_month }} | {{ claim.created_at|date:"d/m/Y H:i" }} | {{ claim.ip_address|default:"-" }}
{% endfor %}

{% endif %}
{% endfor %} {% else %}
{% trans "Nenhuma coleta registrada para esta temporada." %}
{% endif %}
{% endwith %} {% endfor %} {% endif %}
{% endblock %}