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

FoodOrder

Vendor {{ food_order.foodVendor.name }}
CreatedAt {{ food_order.createdAt ? food_order.createdAt|date('Y-m-d H:i:s') : '' }}
ClosedAt {{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s') : '' }}
back to list {% if(food_order.isClosed) %} reopen {% else %} close {% endif %}

Items

{% for item in food_order.orderItems %} {% endfor %}
name extras actions
{{ item.name }} {{ item.extras }} {% if(food_order.isClosed) %} {% else %} edit copy remove {% endif %}
New Item {% endblock %}