📅 Week Planner

@if (Model?.CurrentWeekPlan == null) {

No meal plan for this week yet!

Create a new week plan to start planning your meals.

} else {

Week Plan: @Model!.CurrentWeekPlan!.Name

Week of: @Model!.StartDate.ToString("MMMM dd, yyyy")

@foreach (var dayPlan in Model!.CurrentWeekPlan!.DayPlans) {
@dayPlan.DayOfWeek
@dayPlan.Date.ToString("MMM dd")
@if (dayPlan.Recipe != null) {
@dayPlan.Recipe.Title
@dayPlan.Recipe.Title
@if (!string.IsNullOrEmpty(dayPlan.MainIngredient)) { @dayPlan.MainIngredient } @if (!string.IsNullOrEmpty(dayPlan.Recipe.Time)) { @dayPlan.Recipe.Time } } else {

Click Configure or Random Recipe

No recipe selected

@if (!string.IsNullOrEmpty(dayPlan.MainIngredient)) { @dayPlan.MainIngredient } }
}
}