{% extends 'admin/dashboard.html.twig' %} {% block title %}Admin - All Orders{% endblock %} {% block dashboard_content %}
{% for label, messages in app.flashes %} {% for message in messages %} {% endfor %} {% endfor %}

All Orders

{% for order in orders %} {% else %} {% endfor %}
ID Client Dish Quantity Pickup Date Status Total Amount Payment Status Payment Type Created At Actions
{{ order.id }} {{ order.client ? order.client.name : 'N/A' }} {{ order.dish ? order.dish.name : 'N/A' }} {{ order.quantity }} {{ order.pickupDate ? order.pickupDate|date('Y-m-d H:i') : 'Not set' }} {{ order.status }} {{ order.totalAmount }} {{ order.paymentStatus }} {{ order.paymentType }} {{ order.createdAt|date('Y-m-d H:i:s') }}
No orders found.
{% endblock %}