{% extends 'admin/layouts/base.html.twig' %} {% block title %}View Payment{% endblock %} {% set active = 'app_admin_payment' %} {% set breadcrumbs = [ { 'link': path('app_admin_dashboard'), 'title': 'Home' }, { 'title':'Payment Management', }, { 'link': path('app_admin_payment'), 'title': 'User Payment List', }, { 'title': 'View', } ]%} {% block content %}
| Id | {{ payment.id }} |
|---|---|
| User Name | {% if payment.userid is empty %} N/A {% else %} {{ payment.userid.firstname ~ ' '~payment.userid.lastname }} {% endif %} |
| Order date (months) | {% if payment.orderid is empty %} N/A {% else %} {{ payment.orderid.createdat|date('Y-m-d H:i:s') }} {% endif %} |
| Payment Method | {% if payment.paymentmethod is empty %} N/A {% else %} {{ payment.paymentmethod|upper }} {% endif %} |
| Payment Amount | {% if payment.paymentamount is empty %} N/A {% else %} {{ payment.paymentamount|number_format(2,',','.') }} {% endif %} |
| Payment Status | {% if payment.paymentstatus is empty %} 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','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 %} |
| Payment Date | {% if payment.paymentdate is empty %} N/A {% else %} {{ payment.paymentdate |date('Y-m-d H:i:s') }} {% endif %} |
| Wordpress Payment | {% if payment.wordpresspaymentid is empty %} No {% else %} Yes {% endif %} |
| Wordpress Payment Id | {{payment.wordpresspaymentid}} |