{% extends 'agent/_layout.html.twig' %} {% block title %}Deposits & Withdrawals{% endblock %} {% block agent_content %}

Downline Deposits & Withdrawals

{{ total }} {{ type }} request{{ total != 1 ? 's' : '' }}{{ currentStatus ? ' (' ~ currentStatus ~ ')' : '' }}{% if search %} matching "{{ search }}"{% endif %}.

{# ── Type sub-tabs ── #}
{% set types = [{label: 'Deposits', value: 'deposits'}, {label: 'Withdrawals', value: 'withdrawals'}] %} {% for t in types %} {{ t.label }} {% endfor %}
{# ── Status filter pills ── #}
{% set filters = [ {label: 'All', value: null}, {label: 'Pending', value: 'pending'}, {label: 'Approved', value: 'approved'}, {label: 'Rejected', value: 'rejected'}, ] %} {% for f in filters %} {{ f.label }} {% if f.value == 'pending' %} {{ pendingCount }} {% endif %} {% endfor %}
{% if currentStatus %}{% endif %} {% if search %} Clear {% endif %}
{% if type == 'deposits' %} {% else %} {% endif %} {% for row in rows %} {% if type == 'deposits' %} {% else %} {% endif %} {% else %} {% endfor %}
# Player AmountRef. No.BankSubmitted Status Reviewed
{{ row.id }}

{{ row.user.firstName }} {{ row.user.lastName }}

{{ row.user.mobileNumber }}

₱{{ row.amount|number_format(2) }} {% if type == 'deposits' and row.approvedAmount is not null %}

Approved: ₱{{ row.approvedAmount|number_format(2) }}

{% endif %}
{{ row.transactionReference ?? '—' }} {{ row.bankName }}
{{ row.bankAccountName }} · {{ row.bankAccountNumber }}
{{ row.createdAt|date('M d, Y H:i') }} {% if row.status == 'pending' %} Pending {% elseif row.status == 'approved' %} Approved {% else %} Rejected {% endif %} {% if row.reviewNote %}

{{ row.reviewNote }}

{% endif %}
{% if row.reviewedAt %} {{ row.reviewedAt|date('M d, H:i') }} {% if row.reviewedBy %}
by {{ row.reviewedBy.firstName }} {{ row.reviewedBy.lastName }}{% endif %} {% else %} — {% endif %}
No {{ type }} requests from your downline{{ currentStatus ? ' with status "' ~ currentStatus ~ '"' : '' }}.
{% if totalPages > 1 %}

Page {{ currentPage }} of {{ totalPages }}

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