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

FoodOrder

Vendor {{ food_order.foodVendor.name }}
Created By {{ food_order.createdBy }}
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 %}
username name extras actions
{{ item.createdBy }} {{ item.name }} {{ item.extras }} {% if(food_order.isClosed) %} {% else %} edit copy remove {% endif %}
New Item {% endblock %}