{{define "admin_orders.html"}} {{.Title}} {{template "admin_nav" .}}

Заказы

{{if .Success}}
{{.Success}}
{{end}}
{{range .Orders}} {{$orderStatus := .Status}} {{else}} {{end}}
# Дата Клиент Сумма Статус Изменить
{{.ID}} {{.CreatedAt.Format "02.01.2006 15:04"}}
{{.GuestName}}
{{.GuestEmail}}
{{.GuestPhone}}
{{if eq .PaymentMethod "heleket"}}
Heleket {{if .HeleketPaymentStatus}}({{.HeleketPaymentStatus}}){{end}}
{{end}}
{{printf "%.0f" .Total}} ₽ {{orderIcon .Status}} {{orderLabel .Status}}
Адрес: {{.Address}} {{if .Items}}
    {{range .Items}}
  • {{.ProductName}} × {{.Quantity}} — {{printf "%.0f" .Price}} ₽
  • {{end}}
{{end}}
Заказов пока нет

Статусы

{{range .StatusList}} {{orderIcon .Code}} {{.Label}} {{end}}
{{end}}