{% extends 'base.html.twig' %} {% block title %}Video Karera{% endblock %} {% block body %}
{# โ”€โ”€ Header โ”€โ”€ #}

Video Karera

Race #{{ race.id }}
๐Ÿ‘ค 0 bettors
{# โ”€โ”€ Race canvas panel โ”€โ”€ #}
{# Countdown overlay drawn on top of the idle canvas #} {# Mute toggle โ€” top-right corner of canvas #} {# Confetti overlay โ€” shown on win, layered above the result overlay inside the canvas panel #} {# Result overlay โ€” shown inside canvas after race finishes #} {# Fullscreen toggle โ€” top-right corner of canvas panel #}
{# โ”€โ”€ How to Play โ”€โ”€ #}
1
Pick a Pair
Pumili ng Pair
Choose 2 horses (1โ€“6) you think will finish 1st and 2nd.
Pumili ng 2 kabayo (1โ€“6) na sa tingin mo ay magtatapos sa 1st at 2nd.
2
Check the Dividend
Suriin ang Dividend
Each pair has a dividend multiplier shown in the table. Higher dividend = bigger payout.
Bawat pair ay may dividend multiplier na nakikita sa table. Mas mataas ang dividend = mas malaki ang payout.
3
Place Your Bet
Ilagay ang Iyong Taya
Select a preset bet amount and tap Place Bet before the countdown ends.
Pumili ng preset na halaga ng taya at i-tap ang Place Bet bago matapos ang countdown.
4
Watch the Race
Panoorin ang Karera
Horses race automatically โ€” no action needed. The top 2 finishers determine the winning pair.
Ang mga kabayo ay automatic na nagkarera โ€” walang kailangang gawin. Ang top 2 finishers ang tumutukoy sa winning pair.
5
Collect Your Winnings
Kolektahin ang Iyong mga Panalo
If your pair finishes in the top 2 (exact order), you win: Bet ร— Dividend.
Kung ang iyong pair ay nagtatapos sa top 2 (eksaktong order), panalo ka: Taya ร— Dividend.
Example
Halimbawa
You bet โ‚ฑ50 on pair 1-3 with a dividend of 8ร—. If horses 1 and 3 finish in the top 2 โ†’ you win โ‚ฑ400.
Nagtaya ka ng โ‚ฑ50 sa pair 1-3 na may dividend na 8ร—. Kung ang mga kabayo 1 at 3 ay nagtatapos sa top 2 โ†’ panalo ka ng โ‚ฑ400.
{# โ”€โ”€ Main content: bet form + dividend table โ”€โ”€ #}
{# โ”€โ”€ Dividend reference table + My Bets โ”€โ”€ #}

Dividends

{% for col in 6..2 %} {% endfor %} {% for row in 1..5 %} {% for col in 6..2 %} {% if col > row %} {% set key = row ~ '-' ~ col %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ col }}
{{ row }} {{ dividends[key]|default('0')|replace({'.00': ''}) }}
{# โ”€โ”€ Legend โ”€โ”€ #}
Your bet
{% if setting.combinationBetLimit %}

Cell color shows bet fill โ€” light yellow = few bets, orange = filling up, red = full (no more bets accepted).

{% endif %}
{# โ”€โ”€ Bet form โ”€โ”€ #}

Place Your Bet

{% if playBlocked %} {# Restriction notice โ€” shown when the user's role is blocked from betting #}
๐Ÿšซ
Betting not available for your account.
{% else %} {# Betting closed state (hidden by default) #} {# Bet form (shown during betting_open) #}

Select two horses that you think will finish 1st and 2nd:

{% for h in 1..6 %} {% endfor %}
Select 2 horses to see the dividend.
{% for amount in [1, 5, 10, 50, 100] %} {% endfor %}
{% endif %}
{# โ”€โ”€ Last 50 races โ”€โ”€ #} {% if pastRaces is not empty %}

Recent Results

View all โ†’
{% for pastRace in pastRaces %} {% set wp = pastRace.winningPair %} {% set myRaceBets = pastBets[pastRace.id] ?? [] %} {% endfor %}
# Time Winning Pair Your Bet Outcome
{{ pastRace.id }} {{ pastRace.scheduledAt|date('M d, H:i') }}
{% for horse in pastRace.result|slice(0, 2) %} {{ horse }} {% endfor %}
{% if myRaceBets is not empty %} {% for b in myRaceBets %}
{{ b.firstHorse }} & {{ b.secondHorse }} โ‚ฑ{{ b.amount|number_format(2) }}
{% endfor %} {% else %} โ€” {% endif %}
{% if myRaceBets is not empty %} {% for b in myRaceBets %}
{% if b.status == 'won' %} Won โ‚ฑ{{ b.payout|number_format(2) }} {% elseif b.status == 'lost' %} Lost {% else %} Processing {% endif %}
{% endfor %} {% else %} โ€” {% endif %}
{% endif %}
{# โ”€โ”€ Sticky Wallet Bar โ”€โ”€ #}

Balance

โ‚ฑ{{ app.user.walletBalance|number_format(2) }}

+ Add Funds
{% endblock %}