{{ payment.id }} {% if payment.userid is null %} N/A {% else %} {{ payment.userid.firstname ~ ' ' ~ payment.userid.lastname}} {% endif %} {% if payment.orderid is null %} N/A {% else %} {{ payment.orderid.createdat|date('Y-m-d H:i:s') }} {% endif %} {% if payment.paymentmethod is empty %} N/A {% else %} {{ payment.paymentmethod|upper}} {% endif %} {% if payment.paymentamount is empty %} N/A {% else %} {{ payment.paymentamount|number_format('2', ',', '.') }} {% endif %} {% if payment.paymentstatus is null %} N/A {% else %} {% set badgeClass = '' %} {% set statusText = payment.paymentstatus is not null ? payment.paymentstatus : 'N/A' %} {% if statusText in ['completed','success'] %} {% set badgeClass = 'badge bg-success' %} {% elseif statusText in ['refunded', 'cancelled', 'expired','incomplet','failed'] %} {% set badgeClass = 'badge bg-danger' %} {% elseif statusText in ['processing', 'pending'] %} {% set badgeClass = 'badge bg-warning' %} {% elseif statusText in ['on hold', 'on-hold'] %} {% set badgeClass = 'badge bg-info' %} {% else %} {% set badgeClass = 'badge bg-secondary' %} {% endif %} {{ statusText|upper }} {% endif %} {% if payment.paymentdate is null %} N/A {% else %} {{ payment.paymentdate |date('Y-m-d H:i:s') }} {% endif %} {% if payment.wordpresspaymentid is empty %} No {% else %} Yes {% endif %}