{% set isExemple = ( grillePostMer.id_annonce == idAnnonceExempleFeuilleRoute ) %}
{% set hideInfos = app.request.cookies.get('hide_infos_banner') == 'true' %}
{% set affichGrille = app.request.cookies.get('feuille_de_route_repreneur') == 'true' %}
{% set fakeObjectAnnonce = { 'id_annonce': grillePostMer.id_annonce, 'type_annonce': 'vendeur' } %}
{# acces elite ou feuille de route commandé #}
{% set accessGrille = is_granted('ROLE_FEUILLE_ROUTE_STRATEGIQUE', fakeObjectAnnonce) or (isExemple) %}
{% set urlPdf = (grillePostMer is defined and grillePostMer is not null) ? path('consulter_feuille_de_route', {'codePays': codePaysWithUnderScore, 'type_raprochement': 'cession', 'id_annonce': grillePostMer.id_annonce}) : '#' %}
{% set isClickedModeEmploi = ( app.request.query.get('section') == 'mode-emploi' ) %}
<div id="affichGrille" class="card my-3 no_shadow onglet toggle-onglet-15 d-none" style="border-color: #cccccc;">
<div class="card-header" style="background-color:#003366; color: #003366; border-bottom: none;">
<a href="{{ lienElitePresentation }}" title="Découvrez FUSACQ Elite">
<img src="/images/logo_fusacq_atouts.png"></a>
<span class="d-block d-lg-none"></span>
{% if isExemple %}
<span class="blanc">Exemple de feuille de route stratégique</span>
{% else %}
<span class="blanc">Feuille de route stratégique</span>
{% endif %}
</div>
<div class="card-body {% if ( accessGrille ) and ( hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi ) %} bg_border_elite {% endif %} ">
<div class="row ">
<div class="col-12 px-3 mt-3 py-3" style="text-align:justify"><!--col-sm-10 offset-sm-1 -->
<div class="row">
{% if app.user|default %}
{% if accessGrille %} {# acces elite ou feuille de route commandé #}
{% if (hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi ) %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_elite.html.twig' with {'grillePostMer': grillePostMer} %}
{% else %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/mode_emploi.html.twig' %}
{% endif %}
{% else %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_non_elite.html.twig' %}
{% endif %}
{% else %}
{% if accessGrille %}
{% if (hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi ) %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_elite.html.twig' with {'grillePostMer': grillePostMer} %}
{% else %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/mode_emploi.html.twig' %}
{% endif %}
{% else %}
{% include 'reprendre_entreprise/fragments/feuille_route_repreneur/non_auth.html.twig' %}
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
<!-- feedback-->
{% if app.user|default and affichGrille %}
{{ render_esi(controller( 'App\\Controller\\GrilleAnalysePostMerController::feedbacks',
{ "lang": lang,"codePays": codePays,"feuille_route_id":grillePostMer.id } )) | spaceless
}}
{% endif %}
<!-- feedback -->
<script type="module" src="{{ asset('build/js/annonces/elite/feuille_route_repreneur.js') }}" ></script>