{{define "summary"}}
{{range $l := .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}} {{range .Estimate.Loans}}{{end}}
{{$l.Name}}
Type{{.Type.Name}}
Term{{.Term}} Years
Amortization{{.Amortization}}
Interest rate{{.Interest}}%
Monthly MI${{dollars .Mi.Premium}}/month
Real estate taxes${{dollars .Tax}}/month
Total monthly${{dollars .Result.TotalMonthly}}
Purchase price${{dollars $.Estimate.Price}}
Loan amount${{dollars .Amount}}
Down payment${{diff .Amount $.Estimate.Price}}
Closing costs${{dollars .Result.TotalFees}}
MI Premium${{.Mi.Upfront}}
Credits${{dollars .Result.TotalCredits}}
Cash to close${{dollars .Result.CashToClose}}
{{end}}