{% import "_modules/bsmacros.html.twig" as bs %} {% extends "baseadmin.html.twig" %} {% block title %}Transactions - {{ parent() }}{% endblock %} {% block breadcrumb %} {{ parent() }} {% endblock %} {% block content %} {% if disputes|length > 0 %}

There are {{ disputes|length }} disputes that need attention.

{% endif %}
All Transactions
{% for txn in transactions %} {% else %} {% endfor %}
UUID Product Orders Actual Amount Expected Amount Timestamp User Recipient
{{ txn.uuid }} {{ product_repository.find(txn.productId).name }} {% if txn.orders|length > 0 %}
    {% for order in txn.orders %}
  • {% set orderStatusIcons = { 'PENDING': 'clock-rotate-left text-warning', 'CLOSED': 'check text-success', 'CANCELED': 'times text-danger' } %} {{ order.uuid }} ({{ order.operations|length }} ops)
      {% for op in order.operations %}
    • {{ op.uuid }} {{ op.event|capitalize }}: {{ op.type|capitalize }}
    • {% endfor %}
  • {% endfor %}
{% else %} No orders {% endif %}
${{ txn.amount|number_format(2) }} {% if txn.disputed %} {% endif %} {{ product_repository.find(txn.productId).price|tarin_price(2) }} {{ txn.timestamp|date_tz }} {{ get_user_by_steam(txn.usersteamid).username ?? txn.usersteamid }} {{ get_user_by_steam(txn.recipientsteamid).username ?? txn.recipientsteamid }}
No transactions found.
{% endblock %}