{{define "admin/orders.html"}} {{template "admin/layout_head" .}}
{{template "admin_pagehead" (dict "Icon" "bx-receipt" "Title" (T "admin.orders.title") "Desc" (T "admin.orders.desc"))}}
{{range index .Data "Orders"}} {{else}} {{end}}
{{T "admin.orders.col_id"}}{{T "admin.orders.col_user"}}{{T "admin.orders.col_plan"}}{{T "admin.orders.col_amount"}}{{T "admin.orders.col_method"}}{{T "admin.orders.col_status"}}{{T "admin.orders.col_time"}}{{T "admin.orders.col_actions"}}
{{.order_id}} {{.username}}
{{.email}}
{{.plan_id}} / {{.billing_cycle}} {{.pay_amount}} {{.currency}} {{.pay_method}} {{$st := asInt .pay_status}} {{if eq $st 0}}{{T "admin.orders.st_pending"}} {{else if eq $st 1}}{{T "admin.orders.st_paid"}} {{else if eq $st 2}}{{T "admin.orders.st_refunded"}} {{else if eq $st 3}}{{T "admin.orders.st_canceled"}} {{else if eq $st 4}}{{T "admin.orders.st_expired"}} {{else}}{{$st}}{{end}} {{unixTime .created_at}} {{if eq (asInt .pay_status) 1}}
{{else}}—{{end}}
{{T "admin.orders.empty"}}
{{template "admin/layout_foot" .}} {{end}}