{% extends "admin_base.html" %} {% block title %}Game Cards | Nexora Admin{% endblock %} {% block content %}

Games

Game Cards

Game cards appear on the homepage and registration page. Add original prices here; discounted prices are calculated automatically from the discount percentage.

{% if can('games_create') %}

Add New Game

Team Size
Original Per-Size Pricing
Auto Discount (optional)
Registration Window
{% endif %}

Existing Games

{% if games %}
{% for game in games %} {% set open_now, state_label = game_status(game, settings.registration_open) %} {% set gm_min = game.min_members|int if game.min_members is defined else 1 %} {% set gm_max = game.max_members|int if game.max_members is defined else 1 %} {% set has_discount = discount_active(game) %}
{% set game_img = img(game.image) if game.image else '' %} {% if game_img %} {{ game.title }} {% endif %}

{{ game.title }}

{{ game.platform }}

{{ state_label }} {{ 'Visible' if game.active else 'Hidden' }} {% if gm_min != gm_max %} {{ gm_min }}–{{ gm_max }} Players {% else %} {{ gm_min }} Player {% endif %} {% if has_discount %} {{ discount_label_text(game) }} {% endif %}
{% if game.individual_price and gm_min <= 1 %} {% set p=game.individual_price|disc_price(discount_pct_value(game) if has_discount else 0) %}

Solo (1){% if p.active %}{{ p.discounted }}{{ p.original }}{% else %}{{ p.original }}{% endif %}

{% endif %} {% if game.price_for_2 and gm_max >= 2 %} {% set p = game.price_for_2|disc_price(discount_pct_value(game) if has_discount else 0) %}

Team (2){% if p.active %}{{ p.discounted }}{{ p.original }}{% else %}{{ p.original }}{% endif %}

{% endif %} {% if game.price_for_3 and gm_max >= 3 %} {% set p = game.price_for_3|disc_price(discount_pct_value(game) if has_discount else 0) %}

Team (3){% if p.active %}{{ p.discounted }}{{ p.original }}{% else %}{{ p.original }}{% endif %}

{% endif %} {% if game.price_for_4 and gm_max >= 4 %} {% set p = game.price_for_4|disc_price(discount_pct_value(game) if has_discount else 0) %}

Team (4){% if p.active %}{{ p.discounted }}{{ p.original }}{% else %}{{ p.original }}{% endif %}

{% endif %} {% if game.group_price and not game.price_for_2 and not game.price_for_3 and not game.price_for_4 %}

Group{{ game.group_price }}

{% endif %}
{% if has_discount %}

Discount: {{ discount_pct_value(game) }}%{% if game.discount_from or game.discount_to %} · {{ game.discount_from or 'Now' }} → {{ game.discount_to or 'No end' }}{% endif %}

{% endif %} {% if can('games_update') or can('games_delete') %}
{% endif %}
{% endfor %}
{% else %}
No game cards yet. Create your first card above.
{% endif %}
{% endblock %}