{% extends 'wfbo/_layout.html.twig' %} {% block title %}Withdrawals — WFBO{% endblock %} {% block wfbo_title %}Withdrawals{% endblock %} {% block wfbo_content %} {# Flash messages #} {% for flash in app.flashes('success') %}
Total Deposits
Today
₱{{ depositsToday|number_format(2) }}
{{ depositsTodayCount }} approved deposit{{ depositsTodayCount != 1 ? 's' : '' }}
Pending: ₱{{ pendingDepositsSum|number_format(2) }} ({{ pendingDepositsCount }})
Total Withdrawals
Today
₱{{ withdrawalsToday|number_format(2) }}
{{ withdrawalsTodayCount }} approved withdrawal{{ withdrawalsTodayCount != 1 ? 's' : '' }}
Pending: ₱{{ pendingWithdrawalsSum|number_format(2) }} ({{ pendingWithdrawalsCount }})
{{ c.label }}
Withdrawals · Today
₱{{ t.approved|number_format(2) }}
{{ t.approvedCount }} approved
Pending: ₱{{ t.pending|number_format(2) }} ({{ t.pendingCount }})
{{ total }} withdrawal{{ total != 1 ? 's' : '' }}{{ currentStatus ? ' (' ~ currentStatus ~ ')' : '' }}
↻ Refresh| # | User | Amount | Submitted | Bank Details | Notes | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ withdrawal.id }} |
{{ withdrawal.user.firstName }} {{ withdrawal.user.lastName }} {% if 'ROLE_MASTER_AGENT' in withdrawal.user.roles %} Master Agent {% elseif 'ROLE_AGENT' in withdrawal.user.roles %} Agent {% elseif 'ROLE_SUB_AGENT' in withdrawal.user.roles %} Sub Agent {% endif %} {{ withdrawal.user.userIdentifier }} |
₱{{ withdrawal.amount|number_format(2) }} | {{ withdrawal.createdAt|date('M d, Y H:i') }} |
{{ withdrawal.bankName }} {{ withdrawal.bankAccountName }} {{ withdrawal.bankAccountNumber }} |
{{ withdrawal.notes ?? '—' }} |
{% if withdrawal.status == 'pending' %}
Pending
{% elseif withdrawal.status == 'approved' %}
Approved
{% if withdrawal.reviewNote %}
{{ withdrawal.reviewNote }} {% endif %} {% else %} Rejected {% if withdrawal.reviewNote %}{{ withdrawal.reviewNote }} {% endif %} {% endif %} |
{% if withdrawal.status == 'pending' %}
{# Review note #}
{% else %}
{# Approve #}
{# Reject #}
{% if withdrawal.reviewedBy %}
By {{ withdrawal.reviewedBy.firstName }}
{% endif %}
{{ withdrawal.reviewedAt|date('M d, Y h:i A') }} {% else %} — {% endif %} {% if withdrawal.receiptPath %} {% set ext = withdrawal.receiptPath|split('.')|last|lower %} {% if ext in ['jpg', 'jpeg', 'png', 'gif', 'webp'] %} {% else %} View PDF {% endif %} {% endif %} |
| No withdrawals found. | |||||||
Page {{ currentPage }} of {{ totalPages }}