{% extends 'base.html.twig' %}{% block title %}Haribo Pro - Offres de remboursement{% endblock %}{% block body %}{% include "partials/banner-blue.html.twig" %}{% if odrs|length > 1 %}<div class="main-wrapper" id="odr"> <hgroup class="mb-0"> <h1 class="mb-2 mt-5">OFFRES DE REMBOURSEMENT</h1> <h4 class="mb-5"><b>Sélectionnez</b> l'offre de remboursement dont vous souhaitez bénéficier.</h4> </hgroup> <img class="img-fluid wave-top d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave.png') }}" alt="Haribo pro" /> <img class="img-fluid wave-top d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-mobile.png') }}" alt="Haribo pro" /> <div id="bloc-jeu" class="row bg-pink"> <div class="odr-list-items-wrapper"> {% for key, odr in odrs %} {% if (key % 2) == 0 %} <div class="container justify-content-center card-container card-grid"> {% endif %} <div class="d-flex justify-content-center"> <div class="card card-w100 odr-preview-wrapper shadow"> {% if odr.currentStock > 0 or odr.participated == true %} {% else %} <div class="no-stock"> <div class="no-stock-content"> <i class="fa-solid fa-triangle-exclamation"></i> <p>Il n'y a plus de stock</p> </div> </div> {% endif %} {% if app.user %} {% if odr.participated == true %} <div class="no-stock"> <div class="no-stock-content"> <i class="fa-solid fa-clipboard-check"></i> <p>Vous avez déja bénéficié de cette offre</p> </div> </div> {% else %} {% if odrManager.totalparticipation(odr.id) >= odr.maxParticipationPerMonth %} <div class="no-stock"> <div class="no-stock-content"> <i class="fa-solid fa-clipboard-check"></i> <p>Il n'y a plus de stock</p> </div> </div> {% endif %} {% endif%} {% endif %} {% if not app.user %} {% if odr.nbParticipations >= odr.maxParticipationPerMonth %} <div class="no-stock"> <div class="no-stock-content"> <i class="fa-solid fa-clipboard-check"></i> <p>Il n'y a plus de stock</p> </div> </div> {% endif%} {% endif%} <div class="card-part-1"> {% for eligibility in odr.eligibilities %} {% if eligibility.label == 'new_client' %} <h4>Offre nouveaux clients</h4> <h4>Valable 30 jours après inscription</h4> {% else %} <h4><i class="far fa-calendar"></i> Du {{ odr.startDate|date('d/m/Y') }} au {{ odr.endDate|date('d/m/Y') }}</h4> {% endif %} {% endfor %} {% for thumbnail in odr.thumbnailOdrs %} <img src="{{ thumbnail.filePath | imageFilePath('odr') }}" alt="thumbnail_odr-{{ odr.id }}"> {% endfor %} <div class="preview-txt-detail-wrap mt-2"> <h2>{{ odr.title }}</h2> <p>{{ odr.subtitle | raw }}</p> </div> </div> <div class="card-part-2"> <div class="container-price"> {% if (odr.percentage) > 0 %} <p class="price">{{ odr.percentage }}<span>%</span></p> {% else %} <p class="price">{{ odr.amount }}<span>€</span></p> {% endif %} <p class="reduc">de réductions</p> </div> <a class="btn btn-primary" href="{{ path('kiwi_operation_odr_show', { 'odrId': odr.id }) }}">J'en profite</a> </div> </div> </div> {% if ((key+1)%2) == 0 %} </div> {% endif %} {% endfor %} </div> </div> <img class="img-fluid wave-bottom d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave-bottom.png') }}" alt="Haribo pro" /> <img class="img-fluid wave-bottom d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-bottom-mobile.png') }}" alt="Haribo pro" /></div>{% else %}<div class="main-wrapper" id="odr"> <hgroup class="mb-0"> <h1 class="mb-2 mt-5">OFFRES DE REMBOURSEMENT</h1> <h4 class="mb-5"><b>Sélectionnez</b> l'offre de remboursement dont vous souhaitez bénéficier.</h4> </hgroup> <img class="img-fluid wave-top d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave.png') }}" alt="Haribo pro" /> <img class="img-fluid wave-top d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-mobile.png') }}" alt="Haribo pro" /> <div class="bg-pink"> <hgroup class="mb-0 no-offer-txt"> <h3 class="mb-3 no-offer-txt" >Il n'y a pas d'offres de remboursement en cours pour le moment...<h3/> <h4 class="">Restez à l'écoute !</h4> </hgroup> </div> <img class="img-fluid wave-bottom d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave-bottom.png') }}" alt="Haribo pro" /> <img class="img-fluid wave-bottom d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-bottom-mobile.png') }}" alt="Haribo pro" /></div>{% endif %}{% endblock %}