{% extends 'agent/_layout.html.twig' %} {% block title %}{{ player.firstName }} {{ player.lastName }}{% endblock %} {% block agent_content %} ← Back to Player Monitor

{{ player.firstName }} {{ player.lastName }}

{{ player.mobileNumber }}

{% set cards = [ {label: 'Cash In (all-time)', value: '₱' ~ cashIn|number_format(2), testid: 'stat-player-detail-cash-in'}, {label: 'Cash Out (all-time)', value: '₱' ~ cashOut|number_format(2), testid: 'stat-player-detail-cash-out'}, {label: 'Last Load', value: lastLoadAt ? lastLoadAt|date('M d, Y') : 'Never', testid: 'stat-player-detail-last-load'}, {label: 'Last Bet', value: lastBet ? (lastBet.placedAt|date('M d') ~ ' · ' ~ lastBet.game) : '—', testid: 'stat-player-detail-last-bet'}, ] %} {% for c in cards %}

{{ c.label }}

{{ c.value }}

{% endfor %}
{% for t in [{label: 'Deposits (' ~ depositCount ~ ')', value: 'deposits'}, {label: 'Withdrawals (' ~ withdrawalCount ~ ')', value: 'withdrawals'}] %} {{ t.label }} {% endfor %}
{% for row in rows %} {% if tab == 'deposits' %} {% else %} {% endif %} {% else %} {% endfor %}
# Amount {{ tab == 'deposits' ? 'Ref. No.' : 'Bank' }} Submitted Status Reviewed
{{ row.id }} ₱{{ row.amount|number_format(2) }} {% if tab == 'deposits' and row.approvedAmount is not null %}

Approved: ₱{{ row.approvedAmount|number_format(2) }}

{% endif %}
{{ row.transactionReference ?? '—' }}{{ row.bankName }}{{ row.createdAt|date('M d, Y H:i') }} {% if row.status == 'pending' %}Pending {% elseif row.status == 'approved' %}Approved {% else %}Rejected{% endif %} {{ row.reviewedAt ? row.reviewedAt|date('M d, Y H:i') : '—' }}
No {{ tab }} yet.
{% if totalPages > 1 %}

Page {{ currentPage }} of {{ totalPages }} · {{ total }} total

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