{% extends '::baseAjax.html.twig' %} {% block ajax_body %}
{% if pagination is defined and pagination.items|length > 0 %} {% for item in pagination.items %} {% if item.usageLimit == '' %} {% set usageLimit ='∞' %} {% else %} {% set usageLimit = item.usageLimit %} {% endif %} {% else %} {% endfor %} {% else %} {% endif %}
{{ 'admin.couponcode.label'|trans }} {{ 'admin.coupontype.label'|trans }} {{ 'admin.amount.label'|trans }} {{ 'admin.usagelimit.label'|trans }} {{ 'admin.status.label'|trans }} {{ 'admin.action.label'|trans }}
{{ item.couponCode }} {% if discount_type is defined %} {% for key,value in discount_type %} {% if key == item.couponType %} {{ value }} {% endif %} {% endfor %} {% endif %} {{ item.couponAmount }}{{ item.usageCount }}/{{ usageLimit |raw }} {% if item.endDate |date('m-d-Y') < "now"|date('m-d-Y') %} {% else %} {% if item.status == 'D' %} {% else %} {% endif %} {% endif %} {% if ob_project_promo_discount_access_rule.coupon.option.coupon_edit.status == 1 %} {% endif %} {% if item.endDate |date('m-d-Y') >= "now"|date('m-d-Y') %} {% endif %} {% if ob_project_promo_discount_access_rule.coupon.option.coupon_delete.status == 1 %} {% endif %}
{{ knp_pagination_render(pagination, 'OfficeBrainPageBundle:AdminUIElements:admin_table_pagination_ajax.html.twig') }} {{ 'admin.total_record'|trans }}:({{ pagination.getTotalItemCount }})
{{ 'admin.no_record_found.label'|trans }}
{% endblock ajax_body %}