Today's Summary

<%= new Date().toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }) %>

Calories

<%= Math.round(nutrition.calories) %>

/ <%= current_user.target_daily_calories %>

🔥
<% let cal_percent = current_user.target_daily_calories > 0 ? Math.round(nutrition.calories / current_user.target_daily_calories * 100) : 0; %>

<%= Math.round(remaining.calories) %> remaining

Protein

<%= Math.round(nutrition.protein) %>g

/ <%= goals.target_protein_g %>g

💪
<% let prot_percent = goals.target_protein_g > 0 ? Math.round(nutrition.protein / goals.target_protein_g * 100) : 0; %>

<%= Math.round(remaining.protein) %>g remaining

Carbs <%= Math.round(nutrition.carbs) %>g / <%= goals.target_carbs_g %>g
<% let carb_percent = goals.target_carbs_g > 0 ? Math.round(nutrition.carbs / goals.target_carbs_g * 100) : 0; %>
Fat <%= Math.round(nutrition.fat) %>g / <%= goals.target_fat_g %>g
<% let fat_percent = goals.target_fat_g > 0 ? Math.round(nutrition.fat / goals.target_fat_g * 100) : 0; %>
Water <%= water.total_ml %>ml / <%= goals.target_water_ml %>ml
<% let glasses_filled = Math.floor(water.total_ml / 250); %> <% for (let i = 0; i < 8; i++) { %> 💧 <% } %>
Weight <% if (typeof weight_today !== 'undefined' && weight_today) { %>
<%= weight_today.weight_kg %>kg <% if (typeof weight_change !== 'undefined' && weight_change !== null) { %> <%= weight_change.toFixed(1) %>kg <% } %>
<% } else { %>
<% } %>

Macro Distribution

💡 Smart Suggestions

<% if (suggestions && suggestions.length > 0) { %>
<% suggestions.forEach(function(suggestion) { %>

<%= suggestion.category %>

Try: <%= suggestion.examples.join(', ') %>

<% }); %>
<% } else { %>

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

<% } %>

Today's Meals

+ Add Meal
<% if (nutrition.meals && nutrition.meals.length > 0) { %>
<% nutrition.meals.forEach(function(meal) { %>
<% if (meal.type == 'breakfast') { %>🌅<% } else if (meal.type == 'lunch') { %>🌞<% } else if (meal.type == 'dinner') { %>🌙<% } else { %>🍪<% } %>

<%= meal.type %>

<% if (meal.time) { %> <%= meal.time %> <% } %>
<% meal.foods.forEach(function(food) { %>

• <%= food.name %> (<%= food.quantity %>x) - <%= Math.round(food.calories) %> cal

<% }); %>

<%= Math.round(meal.totals.calories) %>

calories

P: <%= Math.round(meal.totals.protein) %>g | C: <%= Math.round(meal.totals.carbs) %>g | F: <%= Math.round(meal.totals.fat) %>g

<% }); %>
<% } else { %>

🍽️

No meals logged yet today.

Add your first meal
<% } %>

📈 Calorie Trend (7 Days)

⚖️ Weight Trend (7 Days)