{{define "dashboard"}}

{{.T.dossiers}}

{{range .AccessibleDossiers}} {{if .NewGroup}}
{{end}}
{{initials .Name}}

{{.Name}}{{with langFlag .Lang}} {{.}}{{end}}

{{if .CanEdit}}
{{end}} {{if eq .RelationInt 99}}
{{end}}

{{if .IsSelf}}{{$.T.you}}{{else if eq .RelationInt 99}}{{$.T.role}}: {{.Relation}}{{else}}{{$.T.my_role}}: {{.Relation}}{{if .IsCareReceiver}} · {{$.T.care}}{{end}}{{end}}

{{if .Context}}{{.Context}}{{else}} {{end}}

{{printf "%.10s" .DateOfBirth}}{{with age .DateOfBirth}} · {{.}}{{end}}{{if .Sex}} · {{sexT .Sex $.Lang}}{{end}}

{{if .Stats.Chips}} {{range .Stats.Chips}}{{.Icon}} {{if .Count}}{{.Count}} {{end}}{{.Label}}{{end}} {{if .Stats.OverflowCount}}+{{.Stats.OverflowCount}} more{{end}} {{else}} No data yet {{end}}
{{end}} + {{.T.add_dossier}}
{{template "footer"}}
{{end}}