{% 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 }} 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 %} 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 }}