{% extends "base.html" %}
{% block title %}{{ title }}{% endblock title %}
{% load static %}
{% block content %}
    
        
            
        
        
            
                
                    | Statistic | Value | 
            
                
                    | Hours | {{ total_hours }} | 
                
                    | Games | {{ total_games }} | 
                
                    | Games ({{ year }}) | {{ total_2023_games }} | 
                
                    | Purchases | {{ all_purchased_this_year.count }} | 
                
                    | Spendings ({{ total_spent_currency }}) | {{ total_spent }} | 
                
                    | {{ total_spent_currency }}/game | {{ spent_per_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 %}
            
        
        Purchases
        
            
                
                    | Name | Price ({{ total_spent_currency }}) | Date | 
            
            
                {% for purchase in all_purchased_this_year %}
                
                    | {{ purchase.edition.name }} | {{ purchase.price }} | {{ purchase.date_purchased | date:"d/m/Y" }} | 
                {% endfor %}
            
        
     
{% endblock content %}