{% extends "base.html" %} {% block title %}Dashboard - Calorie Tracker{% endblock %} {% block content %}

Today's Summary

{{ today.strftime('%A, %B %d, %Y') }}

Calories

{{ nutrition.calories|round|int }}

/ {{ current_user.target_daily_calories }}

🔥
{% set cal_percent = (nutrition.calories / current_user.target_daily_calories * 100)|int if current_user.target_daily_calories > 0 else 0 %}

{{ remaining.calories|round|int }} remaining

Protein

{{ nutrition.protein|round|int }}g

/ {{ goals.target_protein_g }}g

💪
{% set prot_percent = (nutrition.protein / goals.target_protein_g * 100)|int if goals.target_protein_g > 0 else 0 %}

{{ remaining.protein|round|int }}g remaining

Carbs {{ nutrition.carbs|round|int }}g / {{ goals.target_carbs_g }}g
{% set carb_percent = (nutrition.carbs / goals.target_carbs_g * 100)|int if goals.target_carbs_g > 0 else 0 %}
Fat {{ nutrition.fat|round|int }}g / {{ goals.target_fat_g }}g
{% set fat_percent = (nutrition.fat / goals.target_fat_g * 100)|int if goals.target_fat_g > 0 else 0 %}
Water {{ water.total_ml }}ml / {{ goals.target_water_ml }}ml
{% set glasses_filled = (water.total_ml / 250)|int %} {% for i in range(8) %} 💧 {% endfor %}
Weight {% if weight_today %}
{{ weight_today.weight_kg }}kg {% if weight_change %} {{ weight_change|round(1) }}kg {% endif %}
{% else %}
{% endif %}

Macro Distribution

💡 Smart Suggestions

{% if suggestions %}
{% for suggestion in suggestions %}

{{ suggestion.category }}

Try: {{ suggestion.examples|join(', ') }}

{% endfor %}
{% else %}

You're on track! Keep up the good work! 🎉

{% endif %}

Today's Meals

+ Add Meal
{% if nutrition.meals %}
{% for meal in nutrition.meals %}
{% if meal.type == 'breakfast' %}🌅{% elif meal.type == 'lunch' %}🌞{% elif meal.type == 'dinner' %}🌙{% else %}🍪{% endif %}

{{ meal.type }}

{% if meal.time %} {{ meal.time }} {% endif %}
{% for food in meal.foods %}

• {{ food.name }} ({{ food.quantity }}x) - {{ food.calories|round|int }} cal

{% endfor %}

{{ meal.totals.calories|round|int }}

calories

P: {{ meal.totals.protein|round|int }}g | C: {{ meal.totals.carbs|round|int }}g | F: {{ meal.totals.fat|round|int }}g

{% endfor %}
{% else %}

🍽️

No meals logged yet today.

Add your first meal
{% endif %}

📈 Calorie Trend (7 Days)

⚖️ Weight Trend (7 Days)

{% endblock %}