templates/Includes/blocFidelite.html.twig line 1

Open in your IDE?
  1. <div class="bubble-container is-third">
        <div class="bloc-icon">
            <img src="{{ asset('build/img/picto-fidelite.png') }}"></img>
        </div>
        <div class="titreBubble">
            <p class="center mtm ralewayBold">{{ 'fidelite.remiseCheque' |trans }}</p>
        </div>
        <div class="bubble">
            {% if client.dateDernierCheque is empty or client.dateFinValiditeDernierCheque < date("now") %}
                {{ 'cheque.aucunChequeFidelite'|trans }}
            {% else %}
                <span class="black">{{ 'avantage.dernierChequeFideliteEmisLe'|trans }} <span class="isGrey"> {{ client.dateDernierCheque|date("d/m/Y") }}</span>, {{ 'avantage.dUnMontantDe'|trans }}</span>
                {% if getParam('remise.bienvenue.pourcentageAllow') %}
                    {% if client.montantDernierCheque > 0 %}
                        <span class="isGrey">{{ client.montantDernierCheque }}€</span>
                    {% else %}
                        {% if client.pourcentageDernierChq > 0 %}
                            <span class="isGrey">-{{ client.pourcentageDernierChq }}%</span>
                        {% else %}
                            <span class="isGrey">{{ client.montantDernierCheque }}€</span>
                        {% endif %}
                    {% endif %}
                {% else %}
                    <span class="isGrey">{{ client.montantDernierCheque }}€</span>
                {% endif %}
                <span style="white-space:nowrap;" class="isGrey">(N°{{ client.noDernierCheque }})</span><br>
                {% if client.dateDernierCheque is not empty %}
                    <span class="black">{{ 'avantage.dateDeValidite'|trans }}<br><span class="isGrey">{{ client.dateFinValiditeDernierCheque|date("d/m/Y") }}</span><br>    
                {% endif %}
                {% if client.dateEncaisDernierCheque is empty %}
                    {% if
                        getParam('remise.fidelite.telechargement') and (
                        client.dateFinValiditeDernierCheque > date("now") 
                        or not client.dateFinValiditeDernierCheque
                        )
                    %}
                        <br>
                        <a target="_blank" href="{{ path("generateECheque",{'type': constant('App\\Services\\EChequeGenerateur::CHEQUE')} ) }}" class="btn btn-default btn-telecharger ralewayBold"><i class="fa fa-download fa-lg"></i>{{ 'anniversaire.telechargerMonCheque'|trans }}</a>
                    {% endif %}
                {% else %}
                    <span class="ralewayBold offreUtilisee">{{ 'avantage.encaisseLe'|trans }} {{ client.dateEncaissementDernierChq|date("d/m/Y") }}</span><br>
                {% endif %}
            {% endif %}
            <span style="display: inline-block; margin-top: 20px">{{'client.ilVousReste'|trans}} <span class="strong isGrey">{{ cagnotteReste|force_to_int }} points</span> pour recevoir votre prochain chèque fidélité.</span>                                
    
        </div>
    </div>