{% extends 'agent/_layout.html.twig' %} {% block title %}Deposits & Withdrawals{% endblock %} {% block agent_content %}
{{ total }} {{ type }} request{{ total != 1 ? 's' : '' }}{{ currentStatus ? ' (' ~ currentStatus ~ ')' : '' }}{% if search %} matching "{{ search }}"{% endif %}.
{# ── Type sub-tabs ── #}| # | Player | Amount | {% if type == 'deposits' %}Ref. No. | {% else %}Bank | {% endif %}Submitted | 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 %} |
{% if type == 'deposits' %}
{{ row.transactionReference ?? '—' }} | {% else %}
{{ row.bankName }} {{ row.bankAccountName }} · {{ row.bankAccountNumber }} |
{% endif %}
{{ 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 ~ '"' : '' }}. | |||||||
Page {{ currentPage }} of {{ totalPages }}