{{> partials/menu}}

{{ @root.__ "Discount codes" }}

{{#if discounts}}
    {{#each discounts}}
  • {{ @root.__ "Code" }}:  {{this.code}}
    {{ @root.__ "Type" }}:  {{this.type}}
    {{ @root.__ "Status" }}: {{#ifCond (discountExpiry this.start this.end) '===' true}} {{ @root.__ "Running" }} {{else}} {{ @root.__ "Not running" }} {{/ifCond}}
    {{ @root.__ "Edit" }}
  • {{/each}}
{{else}}

{{ @root.__ "There are currently no discount codes setup." }}

{{/if}}