{% extends 'base.html.twig' %} {% block title %}Transactions{% endblock %} {% block body %} {% set _setting = setting_service.getSettings() %}
{# ── Header ── #}

Transactions

{% if not is_granted('ROLE_AGENT_PORTAL') and _setting.withdrawalRequestsEnabled %} − Withdraw {% endif %} + New Deposit

Full history of your wallet transactions.

{# ── Type tabs ── #}
All {{ total }} Deposits {% if depositCount > 0 %} {{ depositCount }} {% endif %} {% if not is_granted('ROLE_AGENT_PORTAL') %} Withdrawals {% if withdrawalCount > 0 %} {{ withdrawalCount }} {% endif %} {% endif %} Adjustments {% if adjustmentCount > 0 %} {{ adjustmentCount }} {% endif %}
{# ── Unified transactions table ── #} {% set showTable = currentType in ['all', 'deposits', 'withdrawals', 'adjustments'] %} {% if showTable %}
{% for tx in transactions %} {% else %} {% endfor %}
Date Type Description Amount Balance

{{ tx.createdAt|date('M d, Y') }}

{{ tx.createdAt|date('h:i A') }}

{% if tx.type == 'deposit' %} Deposit {% elseif tx.type == 'withdrawal' %} Withdrawal {% elseif tx.type == 'bet' %} Bet {% elseif tx.type == 'win' %} Win {% elseif tx.type == 'adjustment' %} Adjustment {% elseif tx.type == 'refund' %} Refund {% else %} {{ tx.type|capitalize }} {% endif %} {{ tx.description ?? '—' }} {% set absAmount = tx.absoluteAmount %} {% if tx.amount > 0 %}

+₱{{ absAmount|number_format(2) }}

{% else %}

-₱{{ absAmount|number_format(2) }}

{% endif %}
₱{{ tx.balanceAfter|number_format(2) }}

📋

No transactions yet

Your wallet activity will appear here.

{% endif %} {# ── Pagination ── #} {% if totalPages > 1 %}

Page {{ currentPage }} of {{ totalPages }}  ·  {{ total }} total

{% if currentPage > 1 %} ← Previous {% endif %} {% if currentPage < totalPages %} Next → {% endif %}
{% endif %}
{% endblock %}