{{define "content"}} {{$d := .}} {{$change := sub $d.ThisMonth.TotalCents $d.LastMonth.TotalCents}}

Dashboard

This Month (Net)

€0

Income

€0

Expenses

€0

vs Last Month

€0

Spending by Category (This Month)

{{if $d.ThisMonth.ByCategory}} {{else}}
No spending data this month.
{{end}}

Balance Trend (90 days)

{{if $d.BalanceTrend}} {{else}}
No transactions yet. Import some!
{{end}}
{{if $d.CategoryBudgets}}

Budget vs Actual (This Month)

{{range $cat, $budget := $d.CategoryBudgets}} {{$spent := index $d.ThisMonth.ByCategory $cat}} {{$color := index $d.CategoryColors $cat}} {{$spentAbs := centsAbs $spent}}
{{if $color}}{{end}} {{$cat}} €{{cents $spentAbs}} / €{{cents $budget}}
{{end}}

Set budgets in Categories.

{{end}}

Recent Transactions

View all
{{range $d.RecentTxns}} {{$color := index $d.CategoryColors .Category}} {{else}} {{end}}
Date Description Category Amount
{{dateShort .Date}} {{.Description}} {{if $color}}{{end}} {{.Category}} {{if lt .AmountCents 0}}−{{else}}+{{end}}€{{cents (centsAbs .AmountCents)}}
No transactions yet. Import some!
{{end}}