{{define "content"}} {{$d := .}} {{$r := .Result}}

{{$d.T.Get "plan.title"}}

{{if $d.Email}}{{$d.Email}}{{end}}

{{$d.T.Get "plan.scenario_title"}}

{{$d.T.Get "plan.scenario_desc"}}

{{if $d.HasResult}} {{if $r.Warning}}
⚠️ {{$r.Warning}}
{{end}}

{{$d.T.Get "plan.result_total_timeline"}}

{{$r.TotalYears}}y {{$r.TotalRemMonths}}m

{{$d.T.Get "plan.result_until_paid"}}

{{$d.T.Get "plan.result_final_monthly"}}

€{{cents $r.Phase4MonthlyCents}}

{{$d.T.Get "plan.result_after_selling"}}

{{$d.T.Get "plan.result_total_interest"}}

€{{cents $r.TotalInterestCents}}

{{$d.T.Get "plan.result_across_both"}}

{{$d.T.Get "plan.result_free_by"}}

{{dateShort $r.FinalDate}}

{{$d.T.Get "plan.result_fully_paid"}}

{{$d.T.Get "plan.roadmap_title"}}

1
{{$d.T.Get "plan.phase1_title"}}
{{if gt $r.Phase1Months 0}}
{{$r.Phase1Months}}mo
until {{dateShort $r.Phase1EndDate}}
{{$d.T.Get "plan.phase1_target"}} €{{cents $r.DownPaymentCents}}
{{$d.T.Get "plan.phase1_already_have"}} €{{cents $r.AlreadyHaveCents}}
{{$d.T.Get "plan.phase1_still_need"}} €{{cents $r.StillNeededCents}}
{{$d.T.Get "plan.phase1_saving"}} €{{cents $r.Form.MonthlySavingsCents}}/mo
{{else}}
{{$d.T.Get "plan.phase1_ready"}}
{{$d.T.Get "plan.phase1_equity_covers"}}
{{$d.T.Get "plan.phase1_down_payment"}} €{{cents $r.DownPaymentCents}}
{{$d.T.Get "plan.phase1_your_equity"}} €{{cents $r.AlreadyHaveCents}}
{{end}}
2
{{$d.T.Get "plan.phase2_title"}}
{{$r.Phase2Months}}mo
until {{dateShort $r.Phase2EndDate}}
{{$d.T.Get "plan.phase2_new_loan"}} €{{cents $r.ConstructionLoanCents}}
{{if $r.CurrentLoan}}
{{$d.T.Get "plan.phase2_existing_loan"}} €{{cents $r.CurrentMonthlyCents}}/mo
{{end}}
{{$d.T.Get "plan.phase2_new_emi"}} €{{cents $r.ConstructionMonthly}}/mo
{{$d.T.Get "plan.phase2_total_burden"}} €{{cents $r.Phase2MonthlyCents}}/mo
3
{{$d.T.Get "plan.phase3_title"}}
{{$d.T.Get "plan.phase3_one_time"}}
{{$d.T.Get "plan.phase3_after_acquisition"}}
{{$d.T.Get "plan.phase3_sale_price"}} €{{cents $r.SalePriceCents}}
{{$d.T.Get "plan.phase3_pay_off"}} -€{{cents $r.MortgagePayoffCents}}
{{$d.T.Get "plan.phase3_net_proceeds"}} €{{cents $r.NetProceedsCents}}
{{$d.T.Get "plan.phase3_applied"}}
4
{{$d.T.Get "plan.phase4_title"}}
{{if gt $r.Phase4Months 0}}
{{$r.Phase4Months}}mo
paid off {{dateShort $r.Phase4EndDate}}
{{$d.T.Get "plan.phase4_remaining_loan"}} €{{cents $r.RemainingBalanceCents}}
{{$d.T.Get "plan.phase4_monthly_payment"}} €{{cents $r.Phase4MonthlyCents}}/mo
{{$d.T.Get "plan.phase4_just_new_loan"}}
{{else}}
{{$d.T.Get "plan.phase4_fully_paid"}}
{{$d.T.Get "plan.phase4_sale_cleared"}}
{{$d.T.Get "plan.phase4_no_remaining"}}
{{$d.T.Get "plan.phase4_sale_covers"}}
{{end}}

{{$d.T.Get "plan.chart_title"}}

{{$d.T.Get "plan.chart_subtitle"}}

{{$d.T.Get "plan.levers_title"}}

{{$d.T.Get "plan.lever1_title"}}
{{$d.T.Get "plan.lever1_desc"}}
{{$d.T.Get "plan.lever2_title"}}
{{$d.T.Get "plan.lever2_desc"}}
{{$d.T.Get "plan.lever3_title"}}
{{$d.T.Get "plan.lever3_desc"}}
{{$d.T.Get "plan.lever4_title"}}
{{$d.T.Get "plan.lever4_desc"}}
{{else}}
🎯

{{$d.T.Get "plan.empty_title"}}

{{$d.T.Get "plan.empty_desc"}}

{{if not $d.Properties}}

Tip: {{$d.T.Get "plan.scenario_desc"}}

{{end}}
{{end}} {{end}}