{{define "content" -}}

Product catalog

{{with .Data}}

A pack funds chips (a money price per rail — RUB via direct, VOTE via vk, XTR via telegram); a value buys benefits with chips (a CHIP price). Archived products are hidden from players but still credit an in-flight payment and can be granted. A product with transactions can only be archived, not deleted. Amounts are in minor units (RUB kopecks; VOTE/XTR/CHIP whole). The tournament atom is not sellable yet — keep such a product archived.

Add product

Atoms (quantity; blank = none)
Prices (minor units; blank = none)

Rewarded ads (watch for chips)

The chips a player earns per rewarded-video view (VK only), plus the per-day and per-hour caps that bound free chips — 0 payout turns rewarded off. This is the shared reward config, not a product.

Payment availability (kill switch)

Turn purchases off on a rail/channel and show the user a localized reason on their next attempt. Unchecked = off; an empty message shows a built-in “temporarily unavailable”. Fail-open: a rail you never touch stays on. A per-user “allow” override (on a user card) bypasses this switch.

{{range .Rails}}
{{end}}

Products

Showing {{if .ShowAll}}all products (active + archived) — active only{{else}}active products — show all (incl. archived){{end}}.

{{range .Products}} {{else}}{{end}}
TitleStatusAtomsPrices
{{.Title}} {{if .Active}}active{{else}}archived{{end}}{{if .Transacted}} transacted{{end}} {{range .Atoms}}{{.Atom}}×{{.Quantity}} {{end}} {{range .Prices}}{{.Currency}}{{if .Method}}/{{.Method}}{{end}} {{.Amount}} {{end}}
{{if not .Transacted}}
{{end}}
no products
{{end}} {{- end}}