{% extends "base.html" %} {% block content %}

{{ tr("Wallet") }}

{{ tr("Top-up TIC via MBank") }}

{{ tr("Enter top-up amount in TIC. Minimum is {amount} TIC.", amount=min_topup_tic|ticfmt) }} {{ tr("Keep transfer description exactly equal to your deposit code.") }}

{{ tr("Exchange rate: 1 TIC = 1 VND") }}

{{ tr("If your balance is not credited after 5 minutes, contact") }} Zalo

{{ wallet_summary['total_topup_tic']|ticfmt }} TIC

{{ tr("Total Top-up") }}

{{ wallet_summary['used_amount_tic']|ticfmt }} TIC

{{ tr("Used Amount") }}

{{ wallet_summary['current_balance_tic']|ticfmt }} TIC

{{ tr("Current Balance") }}

{{ tr("Create Top-up Request") }}

{% if pending_topup %}

{{ tr("Pending Top-up") }}

{{ tr("Amount") }}: {{ pending_topup['amount_tic']|ticfmt }} TIC

{{ tr("Bank") }}: {{ pending_topup['bank_name'] }}

{{ tr("Account Number") }}: {{ pending_topup['account_number'] }}

{{ tr("Account Name") }}: {{ pending_topup['account_name'] }}

{{ tr("Deposit Code") }}: {{ pending_topup['deposit_code'] }}

{{ tr("Status") }}: {{ pending_topup['status'] }}

{{ tr("Transaction Ref") }}: {{ pending_topup['matched_transaction_ref'] or '-' }}

{{ tr("Paid At") }}: {{ (pending_topup['paid_at']|dtfmt) if pending_topup['paid_at'] else '-' }}

{{ tr("Your Wallet") }}: {{ current_user['wallet_balance']|ticfmt }} TIC

{{ tr("Expire At") }}: {{ pending_topup['expires_at']|dtfmt }}

{{ tr("Auto-checking payment status every 8 seconds...") }}

MBank top-up QR

{{ tr("Scan this QR and keep transfer message as your deposit code.") }}

{% endif %}

{{ tr("Top-up History") }}

{% if not topups %}

{{ tr("No top-up requests yet.") }}

{% else %}
{% for item in topups %} {% endfor %}
{{ tr("ID") }} {{ tr("Amount") }} {{ tr("Code") }} {{ tr("Status") }} {{ tr("Transaction Ref") }} {{ tr("Created") }} {{ tr("Paid At") }}
#{{ item['id'] }} {{ item['amount_tic']|ticfmt }} TIC {{ item['deposit_code'] }} {{ item['status'] }} {{ item['matched_transaction_ref'] or '-' }} {{ item['created_at']|dtfmt }} {{ (item['paid_at']|dtfmt) if item['paid_at'] else '-' }}
{% endif %}
{% if pending_topup %} {% endif %} {% endblock %}