{% extends 'base.html.twig' %} {% block title %}Withdrawal Request{% endblock %} {% block body %}
{# Flash messages #} {% for flash in app.flashes('success') %} {% endfor %} {% for flash in app.flashes('danger') %} {% endfor %}

Withdrawal

Request a withdrawal from your wallet balance.

{# ── Withdrawal hours notice ── #} {% if withdrawal_window_today_label %} {% endif %} {# ── Wallet balance hint ── #}

Available balance: ₱{{ app.user.walletBalance|number_format(2) }}

{# ── WITHDRAWALS BLOCKED FOR THIS ACCOUNT ── #} {% if blocked %}

Withdrawal requests are unavailable for your account

Please contact support for assistance.

{# ── OUTSIDE WITHDRAWAL HOURS ── #} {% elseif not allowed %}

Withdrawal requests are closed right now

{% if withdrawal_window_today_label %} Requests are accepted today from {{ withdrawal_window_today_label }}. {% else %} Please try again during the scheduled withdrawal hours. {% endif %}

{# ── Withdrawal Form ── #} {% else %}

New Withdrawal Request

{{ form_start(withdrawalForm, {attr: { 'data-testid': 'withdrawal-form', 'data-controller': 'form-validate', 'data-form-validate-min-value': min_withdrawal_amount > 0 ? min_withdrawal_amount : 1, 'data-form-validate-max-value': app.user.walletBalance, 'novalidate': 'novalidate', 'data-turbo': 'false' }}) }} {# Error summary #} {% if withdrawalForm.vars.submitted and not withdrawalForm.vars.valid %} {% endif %} {# Amount #}
{{ form_label(withdrawalForm.amount, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(withdrawalForm.amount) }} {{ form_errors(withdrawalForm.amount) }}

Maximum: ₱{{ app.user.walletBalance|number_format(2) }}

{# Bank details section #}

Bank / E-Wallet Details

{{ form_label(withdrawalForm.bankName, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(withdrawalForm.bankName) }} {{ form_errors(withdrawalForm.bankName) }}
{{ form_label(withdrawalForm.bankAccountName, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(withdrawalForm.bankAccountName) }} {{ form_errors(withdrawalForm.bankAccountName) }}
{{ form_label(withdrawalForm.bankAccountNumber, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(withdrawalForm.bankAccountNumber) }} {{ form_errors(withdrawalForm.bankAccountNumber) }}
{{ form_label(withdrawalForm.notes, null, {label_attr: {class: 'form-label--sm'}}) }} {{ form_widget(withdrawalForm.notes) }}
{{ form_end(withdrawalForm) }}
{% endif %} {# ── Withdrawal History ── #}

History

{% for withdrawal in withdrawals %} {% else %} {% endfor %}
Date Amount Bank Details Status Review Note
{{ withdrawal.createdAt|date('M d, Y') }} ₱{{ withdrawal.amount|number_format(2) }}

{{ withdrawal.bankName }}

{{ withdrawal.bankAccountName }}

{{ withdrawal.bankAccountNumber }}

{% if withdrawal.status == 'pending' %} Pending {% elseif withdrawal.status == 'approved' %} Approved {% else %} Rejected {% endif %} {{ withdrawal.reviewNote ?? '—' }}
No withdrawal requests yet.
{# Pagination #} {% if totalPages > 1 %}

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

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