{{/* Savings — an optional bar comparison (`bars`: name, amount, highlight) and a savings calculator (`apps`: name, cost, perSeat, selected; compared with `federatedAnnual`), rendered by partials/savings-calc.html. */}} {{ $s := . }} {{ $key := partial "section-id.html" $s | default "savings" }} {{ partial "sections/head.html" $s }} {{ with $s.bars }} {{ $max := 0 }} {{ range . }}{{ if gt .amount $max }}{{ $max = .amount }}{{ end }}{{ end }}
{{ with $s.barsTitle }}
{{ . }}
{{ end }}
    {{ range . }}
  1. {{ .name }} ${{ lang.FormatNumber 0 .amount }}
  2. {{ end }}
{{ with $s.barsNote }}

{{ . | markdownify }}

{{ end }}
{{ end }} {{ with $s.apps }} {{ partial "savings-calc.html" (dict "key" $key "apps" . "annual" $s.federatedAnnual "note" $s.calcNote) }} {{ end }} {{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }}