{% extends 'base.html.twig' %}{% block body %}<div class="container my-5"><div class="row"><div class="col-md-6"><img src="/uploads/{{ product.illustration }}" class="img-fluid" alt="{{ product.name }}"></div><div class="col-md-6"><small> <i><a href="{{ path('app_category', { slug: product.category.slug }) }}">{{ product.category.name }}</a> > {{ product.name }}</i> </small><h1> {{ product.name }} </h2><span class="d-block mb-3"> {{ product.pricewt | price }} </span>{{ product.description|raw }}<div class="d-flex align-items-center justify-content-between"><a href="{{ path('app_cart_add', { id: product.id }) }}" class="btn btn-success mt-3 w-100"> Ajouter au panier </a>{% if app.user %}{% if product in app.user.wishlists %}<a class="wishlist-icon wishlist-icon-active" href="{{ path('app_account_wishlist_remove', { id: product.id }) }}" style="margin-left: 10px"><i data-feather="heart"></i></a>{% else %}<a class="wishlist-icon" href="{{ path('app_account_wishlist_add', { id: product.id }) }}" style="margin-left: 10px"><i data-feather="heart"></i></a>{% endif %}{% else %}<a data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample" style="margin-left: 10px"><i data-feather="heart"></i></a>{% endif %}</div><div class="collapse" id="collapseExample"><div class="card card-body mt-3">Pour réserver un produit, il faut se connecter à ton compte. Si tu n'en as pas, tu peux en créer un <a href="{{ path('app_register') }}">ici</a>.</div></div></div></div></div>{% endblock %}