{# templates/admin/catalog/index.html.twig #} {% extends 'baseadmin.html.twig' %} {% set placeofpurchase = { "ingame": "In-Game Only", "webstore": "Web Store Only", "both": "In-Game & Web Store" } %} {% set frequency = { "onetime": "One-Time", "monthly": "Monthly", } %} {% block title %} {{ parent() }} - Catalog {% endblock %} {% block styles %} {{ parent() }} {% endblock %} {% block breadcrumb %} {{ parent() }} {% endblock %} {% block content %}

Store Catalog

{% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %}
0 items selected
{% for game in games %}
{{ game.name }}
{{ game.description }}
{% for category in game.categories %}
Category
{{ category.name }}
{% set sortedProducts = category.products|sort((a, b) => a.weight <=> b.weight) %} {% for product in sortedProducts %}
{{ product.weight }}
{{ (product.price / 100)|format_currency('USD') }} {{ product.name }}
{% endfor %}
{% endfor %}
{% endfor %} {% endblock %} {% block scripts %} {{ parent() }} {% endblock %}