{% extends "base.html" %}
{% block title %}
    {{ title }}
{% endblock title %}
{% load static %}
{% block content %}
    
        
            
        
        
            
                Playtime
                
                    
                        
                            | Hours | 
                            {{ total_hours }} | 
                        
                        
                            | Sessions | 
                            {{ total_sessions }} | 
                        
                        
                            | Days | 
                            {{ unique_days }} ({{ unique_days_percent }}%) | 
                        
                        
                            | Games | 
                            {{ total_games }} | 
                        
                        
                            | Games ({{ year }}) | 
                            {{ total_2023_games }} | 
                        
                        
                            | Finished | 
                            {{ all_finished_this_year.count }} | 
                        
                        
                            | Finished ({{ year }}) | 
                            {{ this_year_finished_this_year.count }} | 
                        
                    
                
             
            
                Purchases
                
                    
                        
                            | Total | 
                            {{ all_purchased_this_year.count }} | 
                        
                        
                            | Refunded | 
                            
                                {{ all_purchased_refunded_this_year.count }} ({{ refunded_percent }}%)
                             | 
                        
                        
                            | Unfinished | 
                            
                                {{ purchased_unfinished.count }} ({{ unfinished_purchases_percent }}%)
                             | 
                        
                        
                            | Backlog Decrease | 
                            {{ backlog_decrease_count }} | 
                        
                        
                            | Spendings ({{ total_spent_currency }}) | 
                            {{ total_spent }} ({{ spent_per_game }}/game) | 
                        
                    
                
             
         
        Top games by playtime
        
            
                
                    | Name | 
                    Playtime (hours) | 
                
            
            
                {% for game in top_10_games_by_playtime %}
                    
                        | 
                            {{ game.name }}
                         | 
                        {{ game.formatted_playtime }} | 
                    
                {% endfor %}
            
        
        Platforms by playtime
        
            
                
                    | Platform | 
                    Playtime (hours) | 
                
            
            
                {% for item in total_playtime_per_platform %}
                    
                        | {{ item.platform_name }} | 
                        {{ item.formatted_playtime }} | 
                    
                {% endfor %}
            
        
        Finished
        
            
                
                    | Name | 
                    Date | 
                
            
            
                {% for purchase in all_finished_this_year %}
                    
                        | 
                            {{ purchase.edition.name }}
                         | 
                        {{ purchase.date_finished | date:"d/m/Y" }} | 
                    
                {% endfor %}
            
        
        Finished ({{ year }} games)
        
            
                
                    | Name | 
                    Date | 
                
            
            
                {% for purchase in this_year_finished_this_year %}
                    
                        | 
                            {{ purchase.edition.name }}
                         | 
                        {{ purchase.date_finished | date:"d/m/Y" }} | 
                    
                {% endfor %}
            
        
        Bought and Finished ({{ year }})
        
            
                
                    | Name | 
                    Date | 
                
            
            
                {% for purchase in purchased_this_year_finished_this_year %}
                    
                        | 
                            {{ purchase.edition.name }}
                         | 
                        {{ purchase.date_finished | date:"d/m/Y" }} | 
                    
                {% endfor %}
            
        
        All Purchases
        
     
{% endblock content %}