{% extends 'base.html.twig' %} {% block title %}Plat index{% endblock %} {% block body %} {% if is_granted('ROLE_ADMIN') %}

Plat index

{% for plat in plats %} {% else %} {% endfor %}
Id Name Prix Description PhotoUrl DateAdd actions
{{ plat.id }} {{ plat.name }} {{ plat.prix }} {{ plat.description }} {{ plat.photoUrl }} {{ plat.dateAdd ? plat.dateAdd|date('Y-m-d H:i:s') : '' }} show edit
no records found
Create new {% endif %} {% endblock %}