|
{% if userCommision.getStatus != 'paid' %}
{% endif %}
|
{{ userCommision.id }} |
{{ userCommision.customerId.firstname ~ ' ' ~ userCommision.customerId.lastname }} |
{{ userCommision.productId.name }} |
{{ userCommision.productId.regularprice|number_format(2,',','.') }} |
{{ userCommision.amount|number_format('2', ',', '.') }} |
Level-{{userCommision.getLevel}} |
{% if userCommision.getStatus is null %}
N/A
{% else %}
{% set badgeClass = '' %}
{% set statusText = userCommision.getStatus is not null ? userCommision.getStatus : 'N/A' %}
{% if statusText == 'paid' %}
{% set badgeClass = 'badge bg-success' %}
{% elseif statusText == 'unpaid' %}
{% set badgeClass = 'badge bg-warning' %}
{% elseif statusText == 'cancelled' %}
{% set badgeClass = 'badge bg-danger' %}
{% endif %}
{{ statusText|upper }}
{% endif %}
|
{{ userCommision.getCommissionDate|date("d-m-y H:i:s") }} |