{% extends 'base.html.twig' %} {% block title %}Pataasan{% endblock %} {% block body %}
{# ── Header ── #}

Pataasan

Round #{{ round.id }}
πŸ‘€ 0 bettors
{# ── Table canvas panel ── #}
{# Fullscreen toggle β€” top-right corner of canvas panel #} {# Mute toggle β€” bottom-right corner of canvas panel #} {# Instruction label β€” top center, visible during betting #} {# Countdown overlay β€” bottom center #} {% if not playBlocked %} {# Bet panel β€” slides up from bottom when a card is selected #}
{# Bet form #}
{# Selected card indicator + change button #}
Selected
{# Amount pickers #}
{% for amount in [1, 5, 10, 50, 100] %} {% endfor %}
{# Submit #}
{# Next Round button β€” shown after result #}
{% endif %}
{# ── How to Play ── #}
{% set steps = [ { n: '1', title: 'All Cards Are Hidden', title_tl: 'Lahat ng Card ay Nakatago', desc: 'Two cards are dealt face-down. No one sees any card values until the reveal.', desc_tl: 'Dalawang card ang ibinibigay nang nakaharap sa ibaba. Walang nakakakita ng halaga ng card hanggang sa pagbubunyag.' }, { n: '2', title: 'Pick the Highest Card', title_tl: 'Piliin ang Pinakamataas na Card', desc: 'Tap one or more cards on the table β€” you can bet on multiple cards in the same round.', desc_tl: 'I-tap ang isa o higit pa sa mga card sa mesa β€” maaari kang magtaya sa maraming card sa iisang round.' }, { n: '3', title: 'Place Your Bet', title_tl: 'Ilagay ang Iyong Taya', desc: 'A panel slides up from the bottom. Choose an amount and tap Place Bet before the countdown ends.', desc_tl: 'Isang panel ang dumadaing mula sa ibaba. Pumili ng halaga at i-tap ang Place Bet bago matapos ang countdown.' }, { n: '4', title: 'Cards Are Revealed', title_tl: 'Inilabas ang mga Card', desc: 'Once betting closes, cards flip one by one from lowest to highest. The highest-ranked card wins. Ace is highest. When two cards share the same rank, the suit breaks the tie: ♦ Diamonds > β™₯ Hearts > β™  Spades > ♣ Clubs.', desc_tl: 'Kapag nagsara ang pagtaya, ang mga card ay bumabalik isa-isa mula sa pinakamababa hanggang pinakamataas. Ang pinakamataas na card ang nananalo. Ang Ace ang pinakamataas. Kapag dalawang card ay may parehong ranggo, ang suit ang nagpapasya sa tie: ♦ Diamonds > β™₯ Hearts > β™  Spades > ♣ Clubs.' }, { n: '5', title: 'Collect Your Winnings', title_tl: 'Kolektahin ang Iyong mga Panalo', desc: 'If you picked the winning card, your payout is Bet Γ— multiplier. Winnings are credited to your wallet instantly.', desc_tl: 'Kung pumili ka ng nanalong card, ang iyong payout ay Taya Γ— multiplier. Ang mga panalo ay agad na nai-credit sa iyong wallet.' } ] %} {% for step in steps %}
{{ step.n }}

{{ step.title }}

{{ step.title_tl }}

{{ step.desc }}

{{ step.desc_tl }}

{% endfor %}

Example

Halimbawa

You tap Card 2 and bet β‚±100.
Cards flip: ♣5, β™ K β†’ Card 2 wins!
You receive β‚±190 (β‚±90 profit at 1.90Γ— multiplier).

I-tap mo ang Card 2 at nagtaya ng β‚±100.
Ang mga card ay bumabalik: ♣5, β™ K β†’ Card 2 ang nanalo!
Natanggap mo ang β‚±190 (β‚±90 kita sa 1.90Γ— multiplier).

{# ── Recent Results ── #} {% if pastRounds is not empty %}

Recent Results

View all β†’
{% for pr in pastRounds %} {% set myBets = pastBets[pr.id] ?? [] %} {% endfor %}
# Time Cards Winner Your Bet Outcome
{{ pr.id }} {{ pr.scheduledAt|date('M d, H:i') }} {% set winnerNum = pr.result|default('card1')|slice(4) %} {% set winnerCard = pr.result in ['card1', 'card2'] ? attribute(pr, pr.result) : null %} {% if winnerCard %} {% endif %} Card {{ winnerNum }} ↑ {% if myBets is not empty %} {% for b in myBets %}
Bet: Card {{ b.prediction|slice(4) }} β‚±{{ b.amount|number_format(2) }}
{% endfor %} {% else %}β€”{% endif %}
{% if myBets is not empty %} {% for b in myBets %}
{% if b.status == 'won' %} Won β‚±{{ b.payout|number_format(2) }} {% elseif b.status == 'lost' %} Lose {% else %} Processing {% endif %}
{% endfor %} {% else %}β€”{% endif %}
{% endif %}
{# ── Sticky Wallet Bar ── #}

Balance

β‚±{{ app.user.walletBalance|number_format(2) }}

+ Add Funds
{% endblock %}