{{template "base.html" .}} {{define "content"}} {{$d := .}}

{{$d.T.Get "property.summary_total_value"}}

€0

{{$d.T.Get "property.summary_total_value_sub"}}

{{$d.T.Get "property.summary_outstanding_loans"}}

€0

{{$d.T.Get "property.summary_outstanding_sub"}}

{{$d.T.Get "property.summary_net_equity"}}

€0

{{$d.T.Get "property.summary_net_equity_sub"}}

{{$d.T.Get "property.properties.section_title"}}
{{if $d.Properties}}
{{range $d.Properties}}
{{.StatusLabel}}

{{.Name}}

{{if .Address}}

📍 {{.Address}}

{{end}}
{{$d.T.Get "property.properties.stat_current_value"}}
€{{cents .CurrentValueCents}}
{{$d.T.Get "property.properties.stat_equity"}}
€{{cents .EquityCents}}
{{$d.T.Get "property.properties.stat_purchase_price"}}
€{{cents .PurchasePriceCents}}
{{$d.T.Get "property.properties.stat_gain"}}
{{printf "%.1f" .GainPct}}%
{{if .LinkedLoan}}
{{$d.T.Get "property.properties.stat_equity"}} {{.EquityPct}}% {{$d.T.Get "property.loans.stat_balance"}} {{.LoanPct}}%
🏦 {{.LinkedLoan.Name}}
{{$d.T.Get "property.properties.loan_remaining"}}€{{cents .LinkedLoan.BalanceCents}}
{{$d.T.Get "property.properties.loan_monthly_payment"}}€{{cents .LinkedLoan.EffectiveMonthlyPaymentCents}}
{{$d.T.Get "property.properties.loan_payoff"}}{{.LinkedLoan.PayoffDate.Format "Jan 2006"}}
{{$d.T.Get "property.properties.loan_rate"}}{{printf "%.2f" .LinkedLoan.InterestRatePct}}%
{{end}}
{{end}}
{{else}}
🏠

{{$d.T.Get "property.properties.empty.title"}}

{{$d.T.Get "property.properties.empty.desc"}}

{{end}} {{if or $d.UnlinkedLoans (not $d.Properties)}}
{{$d.T.Get "property.loans.section_title"}}
{{end}} {{if $d.UnlinkedLoans}}
{{range $d.UnlinkedLoans}}
{{.Type}}

{{.Name}}

{{$d.T.Get "property.loans.stat_balance"}}
€{{cents .BalanceCents}}
{{$d.T.Get "property.loans.stat_monthly"}}
€{{cents .EffectiveMonthlyPaymentCents}}
{{$d.T.Get "property.loans.stat_payoff"}}
{{.PayoffDate.Format "Jan 2006"}}
{{$d.T.Get "property.loans.stat_rate"}}
{{printf "%.2f" .InterestRatePct}}%
{{$d.T.Get "property.loans.stat_monthly"}} {{.PaidPct}}% €{{cents .TotalRemainingInterestCents}} {{$d.T.Get "property.loans.interest_left"}}
{{end}}
{{end}} {{if $d.Properties}}
{{end}} {{end}}