{%csrf_token%}
Diet Plan Chart
{% if is_day %}

Select Day To Find Meals.

{% if diet.Notes %}

Note:- {{diet.Notes}}

{% endif %} {% endif %}
{% if is_day %} {% if diet_notes %} {% include '../tags/edit_diet_note.html' %}

Diet Note:- {{diet_notes}}
  

{% else %}
{% include '../tags/edit_diet_note.html' with notes=notes %}
Diet Plan Note
{% endif %}
Note:- {{day_note}}

Assigned on : {{response_data.AssignedDate}}
{% if response_data.DietPlanList.0.TotalMealDays %}Diet Plan End Date : {{ response_data.AssignedDate|get_diet_plan_end_date_actual:response_data.DietPlanList.0.TotalMealDays }}{% else %}{% endif %}
{% if response_data.DietPlanList.0.TotalMealDays %}Next Diet Assign Date : {{ response_data.AssignedDate|get_diet_plan_end_date:response_data.DietPlanList.0.TotalMealDays }}{% else %}{% endif %}

Member Name : {{customer_info.cust_user.first_name|title}} {{customer_info.cust_user.last_name|title}}

Member ID : {{customer_info.fitness_center.fitness_center_prefix}}-{{customer_info.id}}

Diet Plan Name : {{response_data.PlanName|title}} - ({{is_day}})
Plan Created by : {{response_data.CreatedBy|title}}
Total Diet Days : {{response_data.DietPlanList.0.TotalMealDays}}


{% include '../tags/cust_add_meal.html' %}
Add Meal
{% include '../tags/add_day_meal_note.html' %}
Day Note
{% include '../tags/confirm_change_plan.html' %}
Change Plan
  Diet History
  Diet Schedule
{% include '../tags/delete_plan.html' %} {% endif %}
Allow PDF
{% if pdf_link %} {% if customer_info.fitness_center_id == 1496 %} {% else %}
{% endif %}   PDF Link
{% endif %} {% if customer_info.fitness_center_id == 1496 or customer_info.fitness_center_id == 239 or customer_info.fitness_center_id == 2886 %}
Show Calories Breakdown
{% endif %}

Calories

{{total_diet_calories|floatformat:2}} kcal

{{total_diet_protein|floatformat:2}} gm

Proteins

{{total_diet_carbs|floatformat:2}} gm

Carbs

{{total_diet_fats|floatformat:2}} gm

Fats

{{total_diet_fiber|floatformat:2}} gm

Fibers
{% for diet in diet_data %}
{{diet.MealName}} {{diet.MealTime}}
{% include '../tags/edit_meal.html' %} + Add Food
Edit Meal
Delete
{% if diet.MealNotes %}

Note:- {{diet.MealNotes}}

{% endif %}
{% if diet.MealItems %}

{{diet.MealItems|get_total_calories}} kcal

Calories

{{diet.MealItems|get_total_protien}} gm

Proteins

{{diet.MealItems|get_total_carbs}} gm

Carbs

{{diet.MealItems|get_total_fats}} gm

Fats

{{diet.MealItems|get_total_fibre}} gm

Fibers
{% endif %}
{% for meal in diet.MealItems %}
{{meal.ItemName}}
Quantity : {{meal.Quantity}} {{meal.QuantityUnits}}
add alternate food
{% include '../tags/add_cust_plan_meal_item.html' %} {% include '../tags/confirm_delete_meal_item_weekly.html' %} Delete
{% if meal.AlternateFoods %} {% for alt_food in meal.AlternateFoods %}
{{alt_food.ItemName}}
Quantity : {{alt_food.Quantity}} {{alt_food.QuantityUnits}}
{% include '../tags/add_cust_plan_alt_meal_item.html' %} Delete
{% endfor %} {% endif %}
{% endfor %}
{% endfor %} {% endif %}