{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Event Details{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('success') %}
No races added yet.
{% else %}| Race Number | Horses | Status | Actions |
|---|---|---|---|
| {{ race.raceNumber }} | {{ horseCountByRaceId[race.id] ?? 0 }} | {% if race.open %} Open {% else %} Closed {% endif %} |
View
{% if race.open and not event.published %}
{% endif %}
|
Multi-race bets (Daily Double, Pick 4/5/6, …) are attributed entirely to their last leg's race, not split across every race they cover, so these rows sum to the event Total — the true event net revenue, each bet counted once, test accounts excluded, matching the dashboard.
No races added yet.
{% else %}| Race Number | Bets | Bet Amount | Payout | Commission | Revenue |
|---|---|---|---|---|---|
| {{ race.raceNumber }} | {{ s.count }} | ₱{{ s.betAmount|number_format(2) }} | ₱{{ s.payout|number_format(2) }} | ₱{{ s.commission|number_format(2) }} | ₱{{ s.revenue|number_format(2) }} |
| Total | {{ reportTotals.count }} | ₱{{ reportTotals.betAmount|number_format(2) }} | ₱{{ reportTotals.payout|number_format(2) }} | ₱{{ reportTotals.commission|number_format(2) }} | ₱{{ reportTotals.revenue|number_format(2) }} |
Payout % (large) = amount paid out ÷ amount staked on settled tickets — red over 100% — the house lost (paid out more than it took in); green under 100% — the house won. Win % = winning tickets ÷ settled tickets (a boxed ticket counts once — won if any combo won). Settled bets only (won + lost), test accounts excluded; multi-race bets count under their last leg's race.
{{ races is empty ? 'No races added yet.' : 'No bet types offered on this event yet.' }}
{% else %} {% import _self as wr %}| Race | {% for col in winRateMatrix.columns %}{{ col.label }} | {% endfor %}All bet types |
|---|---|---|
| {{ row.label }} | {% for col in winRateMatrix.columns %}{{ wr.wr_cell(row.cells[col.key]) }} | {% endfor %}{{ wr.wr_cell(row.all) }} |
| Total | {% for col in winRateMatrix.columns %}{{ wr.wr_cell(winRateMatrix.totals[col.key]) }} | {% endfor %}{{ wr.wr_cell(winRateMatrix.grandTotal) }} |
A ticket is puro while it has hit the winner of every leg run so far. A scratched pick in a finished leg is out. Void bets and test accounts are not counted.
{% if puroCards is empty %}No Pick 4 / 5 / 6 or WTA offered in this event.
{% endif %} {% for card in puroCards %} {% set id = card.eventBetTypeId %} {% set first = card.legs|first %} {% set last = card.legs|last %}{{ typeLabels[card.betType] ?? card.betType }} · R{{ first.raceNumber }}–R{{ last.raceNumber }}
{% if card.status == 'finished' %} Finished — {{ card.alive.tickets }} winning ticket{{ card.alive.tickets != 1 ? 's' : '' }} {% elseif card.status == 'running' %} {{ card.completedLegs }} of {{ card.legs|length }} legs run {% else %} Not started {% endif %}After each leg
| Leg | Tickets puro | Combos | Stake | Players | |
|---|---|---|---|---|---|
| After R{{ f.raceNumber }} (#{{ f.winnerNumber }} won) | {{ f.ticketPct|number_format(1) }}% {{ f.tickets|number_format }} | {{ f.combos|number_format }} {{ f.comboPct|number_format(1) }}% | ₱{{ f.stake|number_format(2) }} | {{ f.players|number_format }} |
Next leg R{{ card.nextLeg.raceNumber }} — horses the puro tickets need
| Horse | Share of puro tickets | Tickets | Combos | Stake | |
|---|---|---|---|---|---|
| #{{ h.number }} {{ h.name }}{% if h.scratched %} scratched{% endif %} | {{ h.ticketShare|number_format(1) }}% | {{ h.tickets|number_format }} | {{ h.combos|number_format }} | ₱{{ h.stake|number_format(2) }} |
A boxed ticket can ride several horses, so shares can add up to more than 100%.
{% elseif card.status == 'running' and card.alive.tickets == 0 %}No ticket is puro anymore.
{% endif %}Players who won the most on this event, ranked by total payout.
{% if topEarners is empty %}No winners yet for this event.
{% else %}| # | Player | Won | Staked | Bets | Status |
|---|---|---|---|---|---|
| {{ loop.index }} |
{{ earner.firstName }} {{ earner.lastName }}
{{ earner.mobileNumber }} |
₱{{ earner.totalPayout|number_format(2) }} | ₱{{ earner.totalStaked|number_format(2) }} | {{ earner.betCount }} |
{% if earner.isOnHold %}
On Hold
|