{% extends 'base.html.twig' %} {% block title %}FoodOrder{% endblock %} {% block body %}

FoodOrder

StartedByName {{ food_order.startedBy }}
Id {{ food_order.id }}
StartedAt {{ food_order.startedAt ? food_order.startedAt|date('Y-m-d H:i:s') : '' }}
ClosedAt {% if food_order.closedAt is not null%} {{ food_order.closedAt|date('Y-m-d H:i:s') }} {% else %} close {% endif %}
{% for orderItem in food_order.groupedOrderItems %} {% endfor %}
Name(s) Extra(s) possible price actions
{{ orderItem.menuItem.menuItemAliases|map(i => i.name)|join(' / ') }} {{ orderItem.extras|map(i => i.name)|join(' / ') }} {{ orderItem.menuItem.price|cents_to_eur }}
{% for item in menu_items %} {% endfor %}
Name(s) possible price actions
{{ item.menuItemAliases|map(i => i.name)|join(' / ') }} {{ item.price|cents_to_eur }} {% if food_order.closedAt is null %} add {% endif %}
{% endblock %}