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

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

{{if $d.Projections}}

{{$d.T.Get "projections.card_annual_spend"}}

€0.00

{{$d.T.Get "projections.card_annual_sub"}}

{{$d.T.Get "projections.card_monthly_spend"}}

{{$monthly := div $d.AnnualTotal 12}}
€0.00

{{$d.T.Get "projections.card_monthly_sub"}}

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

{{range $d.Projections}} {{$color := index $d.CategoryColors .Name}} {{end}}
{{$d.T.Get "projections.table_col_category"}} {{$d.T.Get "projections.table_col_monthly_avg"}} {{$d.T.Get "projections.table_col_projected"}} {{$d.T.Get "projections.table_col_share"}}
{{if $color}}{{end}} {{.Name}} €{{printf "%.2f" .MonthlyAvg}} €{{printf "%.2f" .AnnualTotal}}
{{.PacePct}}%
{{else}}
📊

{{$d.T.Get "projections.empty.title"}}

{{$d.T.Get "projections.empty.desc"}}

{{$d.T.Get "projections.empty.btn_import"}}
{{end}} {{end}}