{{ define "content" }}
Card Balance
--
Spent Today
TODAY
{{ range $index, $transaction := .transactions }} {{ if greaterThan $index 0 }} {{ $previousIndex := subtract $index 1 }} {{ $previousTrasnaction := index $.transactions $previousIndex }} {{ if differentDay $transaction.Created $previousTrasnaction.Created }}
{{ $transaction.Created.Format "Monday, 6 FEB" }}
{{ end }} {{ end }}
{{ if eq $transaction.HasLogo true }}
{{ end }} {{ if eq $transaction.HasLogo false }}
{{ end }}
{{ $transaction.FriendlyName }}
{{ if notEq $transaction.Notes "" }}

{{ $transaction.Notes }}

{{ end }}
{{ if notEq $transaction.Notes "Active card check" }}
{{ if greaterThan64 $transaction.Amount 0}}
  • +
  • {{ toIntegerSegment $transaction.Amount true }}
  • {{ toFractionalSegment $transaction.Amount false }}
{{ end }} {{ if lessThanOrEq64 $transaction.Amount 0}}
  • {{ toIntegerSegment $transaction.Amount true }}
  • {{ toFractionalSegment $transaction.Amount false }}
{{ end }}
{{ end }} {{ if eq $transaction.Notes "Active card check" }}
{{ end }}
{{ end }} {{ end }}