{% INCLUDE 'overall_header.html' %}

{{ LOTTERY_NAME }}

{% if S_VIEW_HISTORY %}

{{ LOTTERY_NAME }} {{ lang('LOTTERY_HISTORY') }}

{% for history_row in loops.history_row %} {% if history_row.S_ROW_COUNT is even %}{% else %}{% endif %} {% else %} {% endfor %}
# {{ lang('USERNAME') }} {{ lang('LOTTERY_WINNINGS') }} {{ lang('LOTTERY_DATE') }}
{{ history_row.NUMBER }} {{ history_row.WINNER_PROFILE }} {% if history_row.WINNINGS == 0 %}{% else %}{{ history_row.WINNINGS }} {{ POINTS_NAME }}{% endif %} {{ history_row.DATE }}
{{ lang('LOTTERY_NO_WINNERS') }}
{% if loops.pagination|length or PAGINATION %} {% endif %}

« {{ lang('LOTTERY_BACK') }} {% else %} {% if S_USER_LOGGED_IN %}

{{ lang('POINTS_CASH_ON_HAND') }}: {{ USER_POINTS }} {{ POINTS_NAME }}

{% else %}

{{ lang('POINTS_BOT_GUEST') }}

{% endif %}
{% if S_DRAWING_ENABLED and S_USER_LOGGED_IN %}

{{ lang('LOTTERY_ACTIONS') }}

{{ VIEWER_TICKETS_TOTAL }}           {% if S_PURCHASE_SINGLE %} {{ S_FORM_TOKEN }} {% endif %} {% if S_PURCHASE_MULTI %} {{ S_FORM_TOKEN }} {% endif %}
{% endif %}

{{ LOTTERY_INFO }}

{% if S_LOTTERY_ENABLE %}
{{ lang('LOTTERY_TICKETS') }}{{ lang('COLON') }}
{{ LOTTERY_TICKETS }}
{{ lang('LOTTERY_PLAYERS') }}{{ lang('COLON') }}
{{ LOTTERY_PLAYERS }}


{{ lang('LOTTERY_TICKET_COST') }}{{ lang('COLON') }}
{{ TICKET_COST }} {{ POINTS_NAME }}
{% if S_MULTI_TICKETS %}
{{ lang('LOTTERY_MAX_TICKETS') }}{{ lang('COLON') }}
{{ MAX_TICKETS }}
{% endif %}
{{ lang('LOTTERY_JACKPOT') }}{{ lang('COLON') }}
{{ JACKPOT }} {{ POINTS_NAME }}


{% endif %} {% if S_DRAWING_ENABLED %}
{{ lang('LOTTERY_NEXT_DRAWING') }}{{ lang('COLON') }}
{{ NEXT_DRAWING }}
{% endif %}
{{ LOTTERY_LAST_WINNER }}{{ lang('COLON') }}
{{ PREVIOUS_WINNER }}

{% endif %}
{% INCLUDE 'overall_footer.html' %}