{{$index:=1}}
{{range $index ,$data :=.Notifacation}}
{{if lt $index 20}}
-
{{$data.ClientName}} has notified you of a
payment for Invoice # {{$data.InvoiceNumber}}
{{end}}
{{if gt $index 20}}
-
{{$data.ClientName}} has notified you of a
payment for Invoice # {{$data.InvoiceNumber}}
{{end}}
{{end}}
{{if gt .Notifacation_length 20}}
more .. {{end}}
{{if eq .Notifacation_length 0}}
No new notifications for you
{{end}}