{% extends 'base.html.twig' %}
{% block title %}Haribo Pro - Votre offre de remboursement{% endblock %}
{% block body %}
<div id="odr" class="step-odr">
{% include 'partials/banner-blue.html.twig' %}
{% for message in app.flashes('danger') %}
<div class="alert alert-danger text-center" role="alert">
{{ message }}
</div>
{% endfor %}
<hgroup class="text-center mt-5">
<h1>Votre offre de remboursement</h1>
</hgroup>
<p class="text-center mt-3 description">Suivez les différentes étapes pour effectuer votre demande de remboursement
</p>
<img class="img-fluid wave-top d-none d-md-block w-100" src="{{ asset('build/img/pink-wave.png') }}"
alt="Haribo pro" />
<img class="img-fluid wave-top d-block d-sm-none w-100" src="{{ asset('build/img/pink-wave-mobile.png') }}"
alt="Haribo pro" />
<div class="bg-pink">
<div class="container">
<div class="card col-md-6 shadow card-selected">
<div class="card-part-1">
<h4><i class="far fa-calendar"></i> Du {{ odr.startDate|date('d/m/Y') }} au {{
odr.endDate|date('d/m/Y') }}</h4>
{% 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>
</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>
</div>
</div>
<section class="odr-detail-txt-wrapper mt-5 how-reimbursed how-reimbursed-odr" id="howReimbursedODR">
{% if odr.firstStep %}
<h3 class="text-center">Comment bénéficier de mon remboursement ?</h3>
{% endif %}
<ul>
{% if odr.firstStep %}
<li>
<div class="left">1</div>
<div class="right">
{{ odr.firstStep | raw }}
</div>
</li>
{% endif %}
{% if odr.secondStep %}
<li>
<div class="left">2</div>
<div class="right">
{{ odr.secondStep | raw }}
</div>
</li>
{% endif %}
{% if odr.thirdStep %}
<li>
<div class="left">3</div>
<div class="right">
{{ odr.thirdStep | raw }}
</div>
</li>
{% endif %}
{% if odr.fourthStep %}
<li>
<div class="left">4</div>
<div class="right">
{{ odr.fourthStep | raw }}
</div>
</li>
{% endif %}
{% if odr.fifthStep %}
<li>
<div class="left">5</div>
<div class="right">
{{ odr.fifthStep | raw }}
</div>
</li>
{% endif %}
</ul>
<div class="btn-bar">
<a href="{{ path('kiwi_operation_odr') }}" class="btn btn-secondary">
{# <i class="far fa-arrow-alt-circle-left"></i> #}Retour</a>
{% if app.user %}
<a class="btn btn-primary correct-button"
href="{{ path('kiwi_operation_odr_form_participation_user') }}">Je fais ma demande</a>
{% else %}
<a class="btn btn-primary correct-button" data-bs-toggle="modal" data-bs-target="#odrModal"
href="{{ path('app_login') }}">Je fais ma demande</a>
{% endif %}
</div>
<p class="text-center mt-4 txt-legal-recap">En cliquant sur "Je fais ma demande", je déclare avoir
lu et accepté les <a class="link" href="{{ odr.pdfOdrs[0].filePath | imageFilePath('odr') }}"
target="_blank">modalités</a></p>
</section>
</div>
</div>
<img class="img-fluid wave-bottom d-none d-md-block w-100" src="{{ asset('build/img/pink-wave-bottom.png') }}"
alt="Haribo pro" />
<img class="img-fluid wave-bottom d-block d-sm-none w-100"
src="{{ asset('build/img/pink-wave-bottom-mobile.png') }}" alt="Haribo pro" />
</div>
<div class="modal fade modal-draw" id="odrModal" tabindex="-1" aria-labelledby="odrModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="odrModalLabel"></h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="fa-solid fa-xmark"></i></span>
</button>
</div>
<div class="modal-body">
<div class="modal-register-wrapper">
<h3 class="text-center">Vous souhaitez participer<br />à cette offre ?</h3>
<p class="text-center">
Pour participer à l'offre de remboursement, vous devez <strong>vous connecter ou vous inscrire
en ligne.</strong>
</p>
<h2 class="text-center mt-4">Pas encore membre ?</h2>
<div class="btn-bar text-center mt-3">
<a href="{{ path(register_path | default('kiwi_register_user')) }}"
class="btn btn-primary col-md-12">Je m'inscris</a>
</div>
</div>
<div class="login-wrapper">
<h2 class="text-center mt-5">Déjà Membre ?</h2>
<div class="btn-bar text-center mt-3">
<a href="{{ path('app_login') }}" class="btn btn-secondary col-md-12">Je me connecte<br /></a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}