{{define "content"}}{{template "settings-start" .}}{{with .Data}}

Billing

{{with .Problem}}{{end}}

{{.Plan.Name}}{{if eq .Account.Status "trialing"}} trial{{else if eq .Account.Status "past_due"}} payment due{{end}}{{if .ReadOnly}} read-only{{end}}

{{if eq .Account.Status "trialing"}}
Trial
until {{.Account.TrialEnds.Local.Format "2 Jan 2006"}}; then the Free plan, unless you subscribe
{{end}} {{if eq .Account.Status "past_due"}}
Payment
due since {{.Account.PastDueSince.Local.Format "2 Jan 2006"}}: after 14 days the team becomes read-only, after 60 it's deleted
{{end}}
People
{{.People}}{{if .Plan.Seats}} of {{.Plan.Seats}}{{else if .Account.Seats}} ยท {{.Account.Seats}} paid for{{end}}
Agents
{{.Agents}} of {{.Plan.Agents}}
Storage
{{bytes .Storage}} of {{bytes .StorageOf}}
Crawl
{{.Plan.CrawlPages}} pages, {{.Plan.CrawlEvery}}
{{if .Owner}}{{with .Invoice}}
Next invoice
{{money .AmountDue}} {{.Currency}}, {{.Date.Local.Format "2 Jan 2006"}}
{{end}}{{with .InvoiceErr}}
Next invoice
{{.}}
{{end}}{{end}}
{{if .Kept}}

Who keeps editing

The {{.Plan.Name}} plan has {{.Plan.Seats}} people, and the team has {{.People}}. Everyone keeps their account and can read; only {{.Plan.Seats}} change things.{{if not .Owner}} The team's owner chooses who.{{end}} Nothing is deleted.

{{if .Owner}}
{{end}}
{{end}} {{if .Owner}} {{if ne .Account.Status "active"}}

Subscribe to {{.Paid.Name}}

{{money (int64 .Paid.PerSeatCents)}} a person a month, for every module, {{.Paid.Agents}} agents, {{.Paid.StorageGBPerSeat}} GB per person, and a daily SEO crawl of up to {{.Paid.CrawlPages}} pages. Today that's {{.People}} {{if eq .People 1}}person{{else}}people{{end}}.

{{if .Yearly}} {{end}}
{{end}}

Payment and invoices

The card, the billing address, past invoices, and cancelling: on Stripe's page.

{{else}}

The team's owner manages the subscription and its payments.

{{end}} {{end}}{{template "settings-end"}}{{end}}