{% extends 'wfbo/_layout.html.twig' %} {% block title %}{{ subject.firstName }} {{ subject.lastName }} — Transactions{% endblock %} {% block wfbo_title %}User Transactions{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('success') %}
{{ subject.firstName }} {{ subject.lastName }} {% if subject.isHouseAgent %} House Agent {% endif %}
{{ subject.userIdentifier }}
Wallet Balance
₱{{ subject.walletBalance|number_format(2) }}
Agents
System Adjustment
Auditor only — credit or debit this player's wallet.
Total Deposited
₱{{ totalDeposited|number_format(2) }}
Total Bet Amount
₱{{ totalBetAmount|number_format(2) }}
Total Win Amount
₱{{ totalWinAmount|number_format(2) }}
Total Commission
₱{{ totalCommissionAmount|number_format(2) }}
Direct Referrals
{{ directReferralCount }}
Players Logged In · {{ periodLabel }}
{{ playersLoggedIn }}
Active Players · {{ periodLabel }}
{{ activePlayers }}
Referrals from Agents
{{ subAgentReferralCount }}
Total Player Bet Amount
₱{{ totalPlayerBetAmount|number_format(2) }}
Total Player Win Amount
₱{{ totalPlayerWinAmount|number_format(2) }}
Total Win Rate
{{ totalPlayerWinRate|number_format(2) }}%
Total Revenue Collected
₱{{ totalPlayerRevenue|number_format(2) }}
| Date | Type | Description | Amount | Balance |
|---|---|---|---|---|
|
{{ tx.createdAt|date('M d, Y') }} {{ tx.createdAt|date('h:i A') }} |
{% if tx.type == 'deposit' %} Deposit {% elseif tx.type == 'withdrawal' %} Withdrawal {% elseif tx.type == 'bet' %} Bet {% elseif tx.type == 'win' %} Win {% elseif tx.type == 'adjustment' %} Adjustment {% elseif tx.type == 'refund' %} Refund {% elseif tx.type == 'commission' %} Commission {% else %} {{ tx.type|capitalize }} {% endif %} | {{ tx.description ?? '—' }} |
{% set absAmount = tx.absoluteAmount %}
{% if tx.amount > 0 %}
+₱{{ absAmount|number_format(2) }} {% else %}-₱{{ absAmount|number_format(2) }} {% endif %} |
₱{{ tx.balanceAfter|number_format(2) }} |
| No {{ currentType }} found for this user. | ||||
| Date | Game | Ref # | Detail | Bet | Payout | Outcome |
|---|---|---|---|---|---|---|
| No bets found for this user. | ||||||
{{ bet.created_at|date('M d, Y') }}
{{ bet.created_at|date('h:i A') }}
{% endif %}
{% endif %}
₱{{ bet.amount|number_format(2) }}
₱{{ bet.payout|number_format(2) }}
{% else %}—
{% endif %}| Player | Date | Game | Ref # | Detail | Bet | Payout | Outcome |
|---|---|---|---|---|---|---|---|
| {{ player ? player.firstName ~ ' ' ~ player.lastName : '#' ~ bet.bettor_id }} | {{ _self.bet_cells(bet, lrBetSummaries) }}|||||||
| No bets found for this agent's players. | |||||||
| Date | Action | Performed By |
|---|---|---|
|
{{ log.createdAt|date('M d, Y') }} {{ log.createdAt|date('h:i A') }} |
{{ log.action }} | {% if log.actor %} {{ log.actor.firstName }} {{ log.actor.lastName }} {% else %} — {% endif %} |
| No activity recorded for this user. | ||
| Date | Player | Mobile # | Game | Ref # | Detail | Bet Amount | Commission | Status |
|---|---|---|---|---|---|---|---|---|
|
{{ commission.createdAt|date('M d, Y') }} {{ commission.createdAt|date('h:i A') }} |
{{ commission.sourcePlayer.firstName }} {{ commission.sourcePlayer.lastName }} | {{ commission.sourcePlayer.userIdentifier }} | Live Racing | {{ commission.bet.referenceNumber }} | {{ commission.bet.betTypeKey|replace({'_': ' '})|title }} · {{ commission.role|capitalize }} {% set meta = lrCommissionMeta[commission.id] ?? null %} {% if meta %} {{ meta.eventLabel }}{% if meta.raceNumbers is not empty %} · R{{ meta.raceNumbers|join(', R') }}{% endif %} {% endif %} |
₱{{ commission.bet.amount|number_format(2) }} |
₱{{ commission.amount|number_format(2) }} |
{% if commission.bet.status == 'won' %} Won {% elseif commission.bet.status == 'lost' %} Lose {% elseif commission.bet.status == 'void' %} Void {% else %} Processing {% endif %} |
|
{{ commission.createdAt|date('M d, Y') }} {{ commission.createdAt|date('h:i A') }} |
{{ commission.sourcePlayer.firstName }} {{ commission.sourcePlayer.lastName }} | {{ commission.sourcePlayer.userIdentifier }} | {% if commission.raceBet %} Video Karera {% elseif commission.highLowBet %} Pataasan {% elseif commission.colorGameBet %} Color Game {% elseif commission.fruitKingBet %} Fruit King {% elseif commission.ezdosBet %} EZDOS {% elseif commission.pachinkoBet %} Pachinko {% elseif commission.h2hBet %} Head2Head {% else %} Mines {% endif %} | {% if commission.raceBet %} #{{ commission.raceBet.race.id }} {% elseif commission.highLowBet %} #{{ commission.highLowBet.round.id }} {% elseif commission.ezdosBet %} #{{ commission.ezdosBet.draw.id }} {% elseif commission.h2hBet %} #{{ commission.h2hBet.race.id }} {% else %} #{{ cb.id }} {% endif %} | {% if commission.raceBet %} {{ commission.raceBet.firstHorse }}-{{ commission.raceBet.secondHorse }} {% elseif commission.highLowBet %} {% if commission.highLowBet.prediction == 'card1' %} Card 1 {% else %} Card 2 {% endif %} {% elseif commission.colorGameBet %} {{ commission.colorGameBet.color|capitalize }} · {{ commission.colorGameBet.matchCount }} match {% elseif commission.fruitKingBet %} {{ commission.fruitKingBet.symbol|capitalize }}{% if commission.fruitKingBet.resultSymbol %} — {{ commission.fruitKingBet.resultSymbol|capitalize }}{% if commission.fruitKingBet.resultTier == 'triple' %} (triple){% endif %}{% endif %} {% elseif commission.ezdosBet %} {{ commission.ezdosBet.number1 }} × {{ commission.ezdosBet.number2 }} {% elseif commission.pachinkoBet %} {{ commission.pachinkoBet.multiplier }}× {% elseif commission.h2hBet %} Race {{ commission.h2hBet.race.raceNo }} - Horse {{ commission.h2hBet.horse }} {% else %} {{ commission.minesGame.tier|replace({'_': ' '})|capitalize }} — {{ commission.minesGame.tilesRevealed }} tile{{ commission.minesGame.tilesRevealed == 1 ? '' : 's' }} revealed {% endif %} |
₱{{ cb.amount|number_format(2) }} |
₱{{ commission.amount|number_format(2) }} |
{% if cb.status == 'won' or cb.status == 'cashed_out' %} Won {% elseif cb.status == 'lost' or cb.status == 'busted' %} Lose {% else %} Processing {% endif %} |
| No commissions found for this agent. | ||||||||
Commission from a multi-race bet is attributed to its last leg — the race it settles against. Click a race to see its entries.
Select an event above to see its per-race commission breakdown.
{% else %}| Race | Losing Bets | Commission |
|---|---|---|
| Race {{ r.raceNumber }} | {{ r.betCount }} | ₱{{ r.commission|number_format(2) }} |
| No Live Racing commissions for this event. | ||
| Unattributed | — | ₱{{ commRaceUnattributed|number_format(2) }} |
| Total | {{ commRaceTotal.betCount }} | ₱{{ commRaceTotal.commission|number_format(2) }} |
| # | Player Name | Mobile | Joined | Last Seen | Last Bet |
|---|---|---|---|---|---|
| {{ loop.index }} | {{ player.firstName }} {{ player.lastName }} | {{ player.mobileNumber }} | {{ player.createdAt|date('M d, Y') }} | {{ player.lastSeenAt ? player.lastSeenAt|date('M d, H:i') : '—' }} | {% set lb = latestBetByPlayer[player.id] ?? null %} {% if lb %}{{ lb.placedAt|date('M d, H:i') }} · {{ lb.game }}{% else %}—{% endif %} |
| No referred players found. | |||||
| # | Agent Name | Mobile | Role | Joined |
|---|---|---|---|---|
| {{ loop.index }} | {{ agent.firstName }} {{ agent.lastName }} | {{ agent.mobileNumber }} | {% if isSub %} Sub-Agent {% elseif 'ROLE_AGENT' in agent.roles %} Agent {% else %} Master Agent {% endif %} | {{ agent.createdAt|date('M d, Y') }} |
| No agents found under this account. | ||||
Page {{ currentPage }} of {{ totalPages }} · {{ total }} total