{% 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'}, {label: 'Bets (' ~ betCount ~ ')', value: 'bets'}] %} {{ t.label }} {% endfor %}
{% if tab == 'bets' %} {% for row in rows %} {% else %} {% endfor %}
Date Game Ref # Detail Amount Payout Status
{{ row.createdAt|date('M d, Y H:i') }} {% if row.game == 'vk' %} Video Karera {% elseif row.game == 'high-low' %} Pataasan {% elseif row.game == 'mines' %} Mines {% elseif row.game == 'fk' %} Fruit King {% elseif row.game == 'pk' %} Pachinko {% elseif row.game == 'sw' %} Spin & Win {% elseif row.game == 'pd' %} Pusoy Dos {% elseif row.game == 'lr' %} Live Racing {% elseif row.game == 'cg' %} Color Game {% endif %} {{ row.refId ? '#' ~ row.refId : '—' }} {% if row.game == 'high-low' %} {% if row.roundCards is not null %} {% set cards = row.roundCards|split('|') %} {% set winnerCard = row.roundResult in ['card1', 'card2'] ? attribute({card1: cards[0], card2: cards[1]}, row.roundResult) : null %}
Bet: Card {{ row.description|slice(4) }} {% if row.roundResult is not null %} Result: Card {{ row.roundResult|slice(4) }} ↑ {% if winnerCard %} {% endif %} {% endif %}
{% else %}
Bet: Card {{ row.description|slice(4) }}
{% endif %} {% elseif row.game == 'cg' %} {% set dice = row.roundResult ? row.roundResult|split(',') : [] %} {% set cgDiceBg = {'yellow':'#F4B942','white':'#F5F5F5','pink':'#FF3E9A','blue':'#3D87E8','red':'#E63946','green':'#3FB65D'} %} {% set cgDiceFg = {'yellow':'#3a2606','white':'#1a1330','pink':'#ffffff','blue':'#ffffff','red':'#ffffff','green':'#ffffff'} %}
{{ row.description }} {% if dice|length == 3 %}
{% for d in dice %} {{ d|slice(0, 1) }} {% endfor %}
{% endif %}
{% elseif row.game == 'mines' %} {{ row.description|replace({'_': ' '})|capitalize }} — {{ row.roundResult }} tile{{ row.roundResult == '1' ? '' : 's' }} revealed {% elseif row.game == 'fk' %} Bet: {{ row.description|capitalize }}{% if row.roundResult %} — Landed: {{ row.roundResult|capitalize }}{% endif %} {% elseif row.game == 'pd' %} {{ row.description }}{% if row.roundResult %} — finished {{ row.roundResult }}{% endif %} {% elseif row.game == 'lr' %} {{ row.description|title }}{% if row.legSummary %} — {{ row.legSummary }}{% endif %}{% if row.comboCount is not null and row.comboCount > 1 %} (×{{ row.comboCount }}){% endif %} {% else %} {{ row.description }} {% endif %}
₱{{ row.amount|number_format(2) }} {% if (row.status == 'won' or row.status == 'mixed') and row.payout and row.payout > 0 %} ₱{{ row.payout|number_format(2) }} {% else %} — {% endif %} {% if row.status == 'won' %}Won {% elseif row.status == 'lost' %}Lose {% elseif row.status == 'void' %}Void {% elseif row.status == 'mixed' %} {% set counts = row.statusCounts is not null ? row.statusCounts|json_decode : null %} {% set mixedParts = [] %} {% if counts %} {% if counts.pending > 0 %}{% set mixedParts = mixedParts|merge([counts.pending ~ ' pending']) %}{% endif %} {% if counts.won > 0 %}{% set mixedParts = mixedParts|merge([counts.won ~ ' won']) %}{% endif %} {% if counts.lost > 0 %}{% set mixedParts = mixedParts|merge([counts.lost ~ ' lose']) %}{% endif %} {% if counts.void > 0 %}{% set mixedParts = mixedParts|merge([counts.void ~ ' void']) %}{% endif %} {% endif %} {{ mixedParts|length > 0 ? mixedParts|join(', ') : 'Mixed' }} {% else %}Pending{% endif %}
No bets yet.
{% else %} {% 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.
{% endif %}
{% if totalPages > 1 %}

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

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