{{define "content"}}

Funil com 7 estágios fixos. Arraste os cards entre as colunas para atualizar o estágio.

{{if .Limits}}

{{.Limits.ActiveLeadsCount}} leads ativos · {{.Limits.SlotsRemaining}} disponíveis

{{end}}

Funil de prospecção

7 colunas · role ou arraste perto das bordas
{{$page := .}} {{range $i, $st := .KanbanStages}} {{template "kanban-col" dict "root" $page "stage" $st "order" (add $i 1)}} {{end}}

Nenhum lead corresponde à busca.

{{end}} {{define "kanban-col"}} {{$root := index . "root"}} {{$st := index . "stage"}} {{$order := index . "order"}} {{$cards := index $root.Kanban $st.Code}}
{{$st.Label}}
{{$st.Hint}}
{{len $cards}}
{{range $cards}}
{{with .CompanyName}}{{.}}{{else}}Lead{{end}} {{if .Temperature}} {{derefInt .Temperature 0}} {{end}}
{{with .City}}{{.}}{{end}}{{if .UF}}/{{.UF}}{{end}}
{{if .ResponsibleName}}
{{.ResponsibleName}}
{{end}} {{if .Tags}}
{{range .Tags}}{{.Name}}{{end}}
{{end}} {{if or .Phones .Emails}}
{{if .Phones}} {{index .Phones 0}}{{if gt (len .Phones) 1}} +{{add (len .Phones) -1}}{{end}}{{end}} {{if .Emails}} {{index .Emails 0}}{{if gt (len .Emails) 1}} +{{add (len .Emails) -1}}{{end}}{{end}}
{{else if or .HasPhone .HasEmail}}
{{if .HasPhone}} tel.{{end}} {{if .HasEmail}} e-mail{{end}}
{{end}} {{if .Notes}}

{{.Notes}}

{{end}}
{{end}}
Nenhum lead Arraste cards para {{$st.Label}}
{{end}}