<section class="d-sm-none d-block" style="height: 80px;">
</section>
<section class="d-none d-sm-block">
{% for message in app.flashes("NeedCredit")%}
<div class="alert alert-danger alert-icon col-9 mx-auto border border-danger" role=" alert">
<div class="card col mx-auto card-icon ">
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
<div class="row no-gutters">
<div class="col-auto card-icon-aside bg-danger">
<i class="fas fa-euro-sign fa-2x text-white"></i>
</div>
<div class="col">
<div class="card-body py-5">
<h5 class="card-title">Credit Insufissant</h5>
<p class="card-text">{{message}}<a href="https://demo.media-technologies.fr/tarifs">ici</a></p>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
<h1 class="text-center text-uppercase mt-10 mb-3 ">Comment Contacter {{conseiller[0].userPseudo}} pour une
consultation de voyance ?</h1>
{% if app.user %}
<div class="col-lg-8 mx-auto mb-5 text-center">
<h4> Pour consulter {{conseiller[0].userPseudo}} penser à créditer votre compte</h4>
<br> <a href="{{path('app_tarifs')}}"> <button class="btn btn-primary mt-2"> Créditer votre compte </button>
</div>
{% else %}
<div class="col-lg-8 mx-auto mb-5 text-center">
<h4>Créer votre compte client dès maintenant, c'est gratuit et sans engagement.
Pour se faire, rien de plus simple, vous n'avez qu'a remplir le formulaire suivant. </h4>
<br> <a href="{{path('app_register')}}"> <button class="btn btn-primary mt-2"> Créer votre compte</button>
</div>
{% endif %}
<div class="container-xl col-sm-10 row mx-auto mt-4 mb-4">
<div class="col-sm-3 ">
<div class="card shadow">
<h5 class="card-title text-center">{{conseiller[0].userPseudo}} - {{conseiller[0].userExtensionCode}}
</h5>
<img src="{{conseiller[0].photo}}" class="card-img-top" alt="...">
<div class="card-body">
{% if conseiller[0].note == 0 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 0.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 1 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 1.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 2 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 2.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 3 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 3.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 4 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 4.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
</p>
{% elseif conseiller[0].note == 5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
</p>
{% endif %}
{% if app.user %}
<ul class="list-group list-group-flush">
<button class="btn btn-primary shadow mt-2"> <a href="{{path('app_userComment')}}"
class="text-white"><i class="bi bi-eye"></i> Voir mon avis</button></a>
{% if conseiller[0].userChatOnline %}
<button class="btn btn-primary shadow mt-2"> <a
href="{{path('app_chat', {userId: conseiller[0].userId, userPseudoId: conseiller[0].userPseudoId })}}"
class="text-white"><i class="bi bi-chat-fill col-12"></i> Chat</button></a>
{%else%}
<button class="btn btn-dark shadow mt-2"> <a href="#" class="text-white"><i
class="bi bi-chat-fill col-12"></i> Chat</button></a>
{% endif %}
<!-- <button class="btn btn-primary shadow mt-2"> <i class="bi bi-camera-video-fill"></i>
Visio</button> -->
{# FONCTIONNALITÉ EMAIL DÉSACTIVÉE #}
{# <button class="btn btn-primary shadow mt-2"> <a
href="{{path('question_mail', {id : conseiller[0].complementId})}}"
class="text-white"><i class="bi bi-envelope-fill col-12"></i> Question Mail </a>
</button> #}
<button class="btn btn-primary shadow mt-2"> <i class="bi bi-heart-fill"></i> Ajouter aux
Favoris</button>
</ul>
{% else %}
<ul class="list-group list-group-flush">
<button class="btn btn-primary shadow mt-2">
<a href="{{path('app_login')}}" class="text-white">
<i class="bi bi-box-arrow-in-right"></i> connexion </a>
</button>
<button class="btn btn-primary shadow mt-2">
<a href="{{path('app_register')}}" class="text-white">
<i class="bi bi-book"></i> Inscription </a>
</button>
</ul>
{% endif %}
</div>
</div>
</div>
<div class="card col-lg-9 ">
<div class="card-header border-bottom ">
<!-- Wizard navigation-->
<div class="nav nav-pills nav-justified flex-column flex-xl-row nav-wizard " id="cardTab"
role="tablist">
<!-- Wizard navigation item 1-->
<a class="nav-item nav-link active" id="profil-tab" href="#profil" data-bs-toggle="tab" role="tab"
aria-controls="profil" aria-selected="true">
<div class="wizard-step-icon"><i class="bi bi-person"></i></div>
<div class="wizard-step-text">
<div class="wizard-step-text-name">Profil</div>
</div>
</a>
<!-- Wizard navigation item 2-->
<a class="nav-item nav-link" id="avis-tab" href="#avis" data-bs-toggle="tab" role="tab"
aria-controls="avis" aria-selected="true">
<div class="wizard-step-icon"><i class="bi bi-book"></i></div>
<div class="wizard-step-text">
<div class="wizard-step-text-name">Appréciations</div>
</div>
</a>
{% if app.user %}
<!-- Wizard navigation item 3-->
<a class="nav-item nav-link" id="eval-tab" href="#eval" data-bs-toggle="tab" role="tab"
aria-controls="eval" aria-selected="true">
<div class="wizard-step-icon"><i class="bi bi-pen-fill"></i></div>
<div class="wizard-step-text ">
<div class="wizard-step-text-name "> Laissez un avis</div>
</div>
</a>
{% endif %}
</div>
</div>
<div class="card-body ">
<div class="tab-content" id="cardTabContent">
<!-- Wizard tab pane item 1-->
<div class="tab-pane fade show active" id="profil" role="tabpanel" aria-labelledby="profil-tab">
<div class="row justify-content-center ">
{% if conseiller[0].prixParMinute == 0%}
{%else%}
<!-- <strong class="text-warning text-center mt-n-5">--* Consultation CB à
{{conseiller[0].prixParMinute}} €/mn *--</strong> -->
{%endif%}
<h2 class=" text-center">{{conseiller[0].titrePage}}</h2>
<h4 class=" text-center">{{conseiller[0].metaDescription}}</h4>
<p>{{conseiller[0].descriptionLongue|raw}}</p>
</div>
</div>
<!-- Wizard tab pane item 2-->
<div class="tab-pane py-5 py-xl-10 fade text-white" id="avis" role="tabpanel"
aria-labelledby="avis-tab">
{% for avis in conseillerAvis %}
{% if avis is empty %}
<div class="card shadow border-white bg-primary px-3 py-3 mt-2">
<p>Ce conseiller n'a pas encore reçu d'appréciation</p>
</div>
{% else %}
<div class="card shadow border-white bg-primary px-3 py-3 mt-2">
<p class=""> <strong>{{avis.prenom}} </strong>le
{{avis.datePost|date|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY")}}
</p>
{% if avis.note == 0 %}
<p class=" small ">
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 1 %}
<p class=" small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 2 %}
<p class=" small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 3 %}
<p class=" small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 4 %}
<p class=" small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 5 %}
<p class=" small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
</p>
{% endif %}
<p class=""> <strong> Commentaire :</strong> {{avis.commentaire}}</p>
{% if avis.reponse %}
<p class=""> <strong> Reponse :</strong> {{avis.reponse}}</p>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% if app.user %}
<div class="tab-pane py-5 py-xl-10 fade" id="eval" role="tabpanel" aria-labelledby="eval-tab">
<div class="row justify-content-center text-white">
<h4 class="">Soumission d'une appréciation client</h4>
{{ form_start(avisForm) }}
<div class="mb-3">
<!-- <label for="exampleFormControlTextarea1">Commentaire</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea> -->
{{ form_row(avisForm.message , {
label: 'Commentaire'
}) }}
</div>
<div class="mb-3">
{{ form_row(avisForm.note , {
label: 'Note'
}) }}
</div>
<div>
{{ form_row(avisForm.envoyer , {
label: 'Evaluer'
}) }}
</div>
{{ form_end(avisForm) }}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class="container-xl px-4 mt-4">
{# <!-- <div class="card mb-4">
<div class="card-header">Planning</div>
<div class="card-body">
<div class="table-responsive h-100 ">
<!-- <div class="container-fluid row mx-auto">
<p class="col-6">Disponible <i class="bi bi-square-fill" style="color: #198754;"></i> </p>
<p class="col-6">Indisponible : <i class="bi bi-square-fill" style="color: #6c757d;"></i></p>
</div> -->
<div id="{{planningFormat}}">
</div>
<!-- <table class="calendar table table-bordered centered h-100">
<thead class="table-light">
<tr>
<th scope="col"></th>
{% for day in weekdaysShort %}
<th scope="col" class='text-small text-center'>{{day}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for i in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]%}
<tr>
<th class="text-center text-small" scope="row">{{i}}:00</th>
{% for val in daysHoursShort[i] %}
</p>
{% if val == false %}
<td class="bg-gray-600"></td>
{% else %}
<td class="bg-green text-white text-small text-center"></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table> -->
</div>
</div>
</div> -->
#}
</div>
</section>
<section class="d-sm-none d-block">
<div class="col-12 ">
<div class="team-member ">
<div class=""> <img class="mx-auto rounded-circle mt-2 " src="{{conseiller[0].photo}}" alt="..."
style="width: 150px; height: 150px;" /></div>
{% if conseiller[0].note == 0 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 0.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 1 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 1.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 2 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 2.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 3 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 3.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 4 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif conseiller[0].note == 4.5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-half" style="color: #d78316;"></i>
</p>
{% elseif conseiller[0].note == 5 %}
<p class="text-center text-dark small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
</p>
{% endif %}
<h4>{{conseiller[0].userPseudo}}</h4>
<p class="text-muted"> {{conseiller[0].userExtensionCode}}</p>
{% if app.user %}
<a href="tel:00 32 2 318 3400">
<div class=" btn-primary btn-social mx-2 " href="#"><i class="bi bi-telephone-fill "></i>
</div>
</a>
{# FONCTIONNALITÉ EMAIL DÉSACTIVÉE - VERSION MOBILE #}
{# <a href="{{path('question_mail', {id : conseiller[0].complementId})}}">
<div class=" btn-primary btn-social mx-2" href="#!"><i class="bi bi-envelope-fill "></i></div>
</a> #}
{% if conseiller[0].userMailing %}
<a href="{{path('app_chat', {userId: conseiller[0].userId, userPseudoId: conseiller[0].userPseudoId })}}">
<div class=" btn-primary btn-social mx-2" href="#!"><i class="bi bi-chat-fill "></i>
</div>
</a>
{% endif %}
{% if conseiller[0].userMailing %}
<a href="{{path('app_login')}}">
<div class=" btn-primary btn-social mx-2" href="#!"><i class="bi bi-camera-video-fill"></i></div>
</a>
{% endif %}
{% else %}
<a href="{{path('app_login')}}">
<button class="btn btn-primary "><i class="bi bi-box-arrow-in-right"></i> connexion</button>
</a>
<a href="{{path('app_register')}}">
<button class="btn btn-primary "><i class="bi bi-book"></i> Inscription</button>
</a>
</div>
{% endif %}
</div>
</div>
<div class="accordion accordion-flush mt-3" id="serviceFlush">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#serviceOne" aria-expanded="false" aria-controls="flush-collapseOne">
<i class="bi bi-person"></i> Profil
</button>
</h2>
<div id="serviceOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne"
data-bs-parent="#serviceFlush">
<div class="accordion-body text-center">
<!-- <strong class="text-warning text-center mt-n-5">--* Consultation CB à
{{conseiller[0].prixParMinute}} €/mn *--</strong> -->
<h3 class=" text-center">{{conseiller[0].titrePage}}</h3>
<h4 class=" text-center">{{conseiller[0].metaDescription}}</h4>
<p>{{conseiller[0].descriptionLongue|raw}}</p>
</div>
</div>
</div>
<div class="accordion-item mt-2">
<h2 class="accordion-header" id="flush-headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#serviceTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
<i class="bi bi-book"></i> Appréciations
</button>
</h2>
<div id="serviceTwo" class="accordion-collapse collapse " aria-labelledby="flush-headingTwo"
data-bs-parent="#serviceFlush">
<div class="accordion-body">
{% for avis in conseillerAvis %}
{% if avis is empty %}
<div class="card shadow border-primary ">
<p>Ce conseiller n'a pas encore reçu d'appréciation</p>
</div>
{% else %}
<div class="card shadow border-primary p-1">
<div class="row">
<p class="col-8"> <strong>{{avis.prenom}} </strong>le
{{avis.datePost|date|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY")}}
</p>
{% if avis.note == 0 %}
<p class="col-4 small ">
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 1 %}
<p class="col-4 small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 2 %}
<p class=" col-4 small ">Avis des membres
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 3 %}
<p class=" col-4 small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 4 %}
<p class=" col-4 small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star"></i>
</p>
{% elseif avis.note == 5 %}
<p class="col-4 small ">
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
<i class="bi bi-star-fill" style="color: #d78316;"></i>
</p>
{% endif %}
</div>
<p class=""> <strong> Commentaire :</strong> {{avis.commentaire}}</p>
{% if avis.reponse %}
<p class=""> <strong> Reponse :</strong> {{avis.reponse}}</p>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% if app.user%}
<div class="accordion-item mt-2">
<h2 class="accordion-header" id="flush-headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#serviceThree" aria-expanded="false" aria-controls="flush-collapseTwo">
<i class="bi bi-pen-fill"></i> Laissez un avis
</button>
</h2>
<div id="serviceThree" class="accordion-collapse collapse " aria-labelledby="flush-headingThree"
data-bs-parent="#serviceFlush">
<div class="accordion-body text-center">
<div class="row justify-content-center ">
<h4 class="">Soumission d'une appréciation client</h4>
{{ form_start(avisFormMobile) }}
<div class="mb-3">
<!-- <label for="exampleFormControlTextarea1">Commentaire</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea> -->
{{ form_row(avisFormMobile.message , {
label: 'Commentaire'
}) }}
</div>
<div class="mb-3">
{{ form_row(avisFormMobile.note , {
label: 'Note'
}) }}
</div>
<div>
{{ form_row(avisFormMobile.envoyer , {
label: 'Evaluer'
}) }}
</div>
{{ form_end(avisFormMobile) }}
</div>
</div>
</div>
</div>
{% endif %}
<div class="accordion-item mt-2">
{# <h2 class="accordion-header" id="flush-headingFour">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#serviceFour" aria-expanded="false" aria-controls="flush-collapseTwo">
<i class="bi bi-calendar"></i> Planning
</button>
</h2> #}
{# <div id="serviceFour" class="accordion-collapse collapse " aria-labelledby="flush-headingFour"
data-bs-parent="#serviceFlush">
<div class="accordion-body text-center">
<div class="table-responsive h-100">
<div class="container-fluid row mx-auto">
<p class="col-6">Disponible <i class="bi bi-square-fill" style="color: #198754;"></i> </p>
<p class="col-6">Indisponible : <i class="bi bi-square-fill" style="color: #6c757d;"></i>
</p>
</div>
<!--
<div id="{{planningFormat}}">
</div>
-->
<table class="calendar table table-bordered centered h-100">
<thead class="table-light">
<tr>
<th scope="col"></th>
{% for day in weekdaysShort %}
<th scope="col" class='text-small text-center'>{{day}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for i in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]%}
<tr>
<th class="text-center text-small bg-white" scope="row">{{i}}:00</th>
{% for val in daysHoursShort[i] %}
</p>
{% if val == false %}
<td class="bg-gray-600"></td>
{% else %}
<td class="bg-green text-white text-small text-center"></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div> #}
</div>
</section>
<script type="text/javascript" nonce="{{ csp_nonce('script') }}">
function selectAll(ch) {
var tab = document.getElementsByTagName("input");
for (var i = 0; i < tab.length; i++) {
if (tab[i].type == "checkbox")
tab[i].checked = ch.checked;
}
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script nonce="{{ csp_nonce('script') }}">
window.onload = () => {
let calendarEl2 = document.querySelector('#{{planningFormat}}');
if (('#{{planningFormat}}' == '#HebdomadaireUtilisateur') || ('#{{planningFormat}}' == '#HebdomadaireSimple') || ('#{{planningFormat}}' == '#JournalierSimple') || ('#{{planningFormat}}' == '#HoraireSimple')) {
let calendar2 = new FullCalendar.Calendar(calendarEl2, {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
initialView: 'timeGridWeek',
locale: 'fr',
timeZone: 'Europe/Paris',
nowIndicator: true,
themeSystem: 'bootstrap5',
firstDay: 1,
navLinks: false,
editable: false,
eventResizableFromStart: false,
slotEventOverlap: false,
allDaySlot: false,
selectable: false,
selectMirror: true,
dayMaxEvents: true,
aspectRatio: 1,
// eventOrderStrict: true,
headerToolbar: {
start: '',
center: '',
end: '',
},
buttonText:
{
today: "Aujourd'hui",
month: 'Mois',
week: 'Semaine',
day: 'Jour',
resourceTimeline: 'Jour',
list: 'Liste'
},
events: JSON.parse('{{ data|raw }}'),
eventColor: '#00ac69',
eventClick: function (info) {
var hoursBegin = info.event.start.getHours() - 2;
var minutesBegin = info.event.start.getMinutes();
var hoursEnd = info.event.end.getHours() - 2;
var minutesEnd = info.event.end.getMinutes();
var id = info.event.id;
var planningEventId = "{{planningEventId}}"
var urlToDelete = "/deletePlanning/" + planningEventId + "/" + id;
var urlToModify = "/modifyPlannig/" + planningEventId + "/" + id;
$('#EventId').val(id);
$('#modifyPlanningListId').attr("href", urlToModify);
$('#planningListId').attr("href", urlToDelete);
$('#showEventCalendarConseiller').html(info.event.title);
$('#hoursBegin').val(hoursBegin);
$('#minutesBegin').val(minutesBegin);
$('#hoursEnd').val(hoursEnd);
$('#minutesEnd').val(minutesEnd);
var newHours = $('#hoursBegin').val();
var modal = $("#showEventCalendar");
modal.modal('show');
},
resourceAreaHeaderContent: 'Conseillers',
resources: JSON.parse('{{ ressources|raw }}'),
resourceAreaWidth: " 10%",
eventOrder: "-userId",
});
calendar2.on('eventChange', (e) => {
let url = `/gestionPlanning/{{planningEventId}}/edit`
let donnees = {
"id": e.event.id,
"title": e.event.title,
"daysOfWeek": e.event.extendedProps.weekDayNum,
"startTime": e.event.start,
"endTime": e.event.end
}
let xhr = new XMLHttpRequest
xhr.open("POST", url)
xhr.setRequestHeader("Content-Type", "application/json")
xhr.send(JSON.stringify(donnees))
})
calendar2.render()
} else if (('#{{planningFormat}}' == '#HoraireMultiple')) {
let calendar2 = new FullCalendar.Calendar(calendarEl2, {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
initialView: 'resourceTimeline',
locale: 'fr',
timeZone: 'Europe/Paris',
nowIndicator: true,
themeSystem: 'bootstrap5',
firstDay: 1,
navLinks: true,
editable: true,
eventResizableFromStart: true,
selectable: true,
selectMirror: true,
dayMaxEvents: true,
// eventOrderStrict: true,
headerToolbar: {
start: 'prev,next today',
center: 'title',
end: 'timeGridWeek,resourceTimeline',
},
buttonText:
{
today: "Aujourd'hui",
month: 'Mois',
week: 'Semaine',
day: 'Jour',
resourceTimeline: 'Jour',
list: 'Liste'
},
events: JSON.parse('{{ data|raw }}'),
dayClick: function (date, allDay, jsEvent, view) {
if (allDay) {
alert('Clicked on the entire day: ' + date);
} else {
alert('Clicked on the slot: ' + date);
}
alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
alert('Current view: ' + view.name);
// change the day's background color just for fun
$(this).css('background-color', 'red');
},
eventClick: function (info) {
var hoursBegin = info.event.start.getHours() - 2;
var minutesBegin = info.event.start.getMinutes();
var hoursEnd = info.event.end.getHours() - 2;
var minutesEnd = info.event.end.getMinutes();
var param = "?hoursBegin=" + hoursBegin + "&minutesBegin=" + minutesBegin + "&hoursEnd=" + hoursEnd + "&minutesEnd=" + minutesEnd;
var id = info.event.id;
var planningEventId = "{{planningEventId}}"
var urlToDelete = "/deletePlanning/" + planningEventId + "/" + id;
var urlToModify = "/modifyPlannig/" + planningEventId + "/" + id + param;
console.log(urlToModify);
EventId
$('#EventId').val(id);
$('#modifyPlanningListId').attr("href", urlToModify);
$('#planningListId').attr("href", urlToDelete);
$('#showEventCalendarConseiller').html(info.event.title);
$('#hoursBegin').val(hoursBegin);
$('#minutesBegin').val(minutesBegin);
$('#hoursEnd').val(hoursEnd);
$('#minutesEnd').val(minutesEnd);
var modal = $("#showEventCalendar");
modal.modal('show');
info.el.style.borderColor = 'red';
},
slotEventOverlap: false,
resourceAreaHeaderContent: 'Touches',
resources: JSON.parse('{{ ressources|raw }}'),
resourceAreaWidth: " 10%",
eventOrder: "-keypad",
});
calendar2.on('eventChange', (e) => {
let url = `/gestionPlanning/{{planningEventId}}/edit`
let donnees = {
"id": e.event.id,
"title": e.event.title,
"daysOfWeek": e.event.daysOfWeek,
"startTime": e.event.start,
"endTime": e.event.end,
"backgroundColor": e.event.backgroundColor,
}
console.log(donnees);
let xhr = new XMLHttpRequest()
xhr.open("POST", url)
xhr.setRequestHeader("Content-Type", "application/json")
xhr.send(JSON.stringify(donnees))
})
calendar2.render()
} else if (('#{{planningFormat}}' == '#JournalierMultiple')) {
let calendar2 = new FullCalendar.Calendar(calendarEl2, {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
initialView: 'resourceTimeGridDay',
locale: 'fr',
timeZone: 'Europe/Paris',
nowIndicator: true,
themeSystem: 'bootstrap5',
firstDay: 1,
navLinks: true,
editable: true,
initialDate: '{{date}}',
eventResizableFromStart: true,
slotEventOverlap: false,
allDaySlot: false,
selectable: true,
selectMirror: true,
dayMaxEvents: true,
viewRender: function (view, element) {
console.log(element);
},
// eventOrderStrict: true,
headerToolbar: {
start: 'today',
center: 'title',
end: 'resourceTimeGridDay',
},
resourceTimeline: {
aspectRatio: 2.5,
},
buttonText:
{
today: "Aujourd'hui",
month: 'Mois',
week: 'Semaine',
day: 'Jour',
resourceTimeline: 'Jour',
list: 'Liste',
},
events: JSON.parse('{{ data|raw }}'),
eventClick: function (info) {
var hoursBegin = info.event.start.getHours() - 2;
var minutesBegin = info.event.start.getMinutes();
var hoursEnd = info.event.end.getHours() - 2;
var minutesEnd = info.event.end.getMinutes();
var id = info.event.id;
var planningEventId = "{{planningEventId}}"
var urlToDelete = "/deletePlanning/" + planningEventId + "/" + id;
var urlToModify = "/modifyPlannig/" + planningEventId + "/" + id;
$('#EventId').val(id);
$('#modifyPlanningListId').attr("href", urlToModify);
$('#planningListId').attr("href", urlToDelete);
$('#showEventCalendarConseiller').html(info.event.title);
$('#hoursBegin').val(hoursBegin);
$('#minutesBegin').val(minutesBegin);
$('#hoursEnd').val(hoursEnd);
$('#minutesEnd').val(minutesEnd);
var newHours = $('#hoursBegin').val();
console.log(id);
var modal = $("#showEventCalendar");
modal.modal('show');
},
resourceAreaHeaderContent: 'Conseillers',
resources: JSON.parse('{{ ressources|raw }}'),
resourceAreaWidth: " 10%",
eventOrder: "-userId",
});
calendar2.on('eventChange', (e) => {
let url = `/gestionPlanning/{{planningEventId}}/edit`
let donnees = {
"id": e.event.id,
"title": e.event.title,
"daysOfWeek": e.event.extendedProps.weekDayNum,
"startTime": e.event.start,
"endTime": e.event.end
}
let xhr = new XMLHttpRequest
xhr.open("POST", url)
xhr.setRequestHeader("Content-Type", "application/json")
xhr.send(JSON.stringify(donnees))
})
calendar2.render()
} else if (('#{{planningFormat}}' == '#PresenceUtilisateur')) {
let calendar2 = new FullCalendar.Calendar(calendarEl2, {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
initialView: 'timeGrid',
locale: 'fr',
timeZone: 'Europe/Paris',
nowIndicator: true,
themeSystem: 'bootstrap5',
firstDay: 1,
navLinks: true,
editable: true,
dayCount: 2,
initialDate: '{{date}}',
eventResizableFromStart: true,
slotEventOverlap: false,
allDaySlot: false,
selectable: true,
selectMirror: true,
dayMaxEvents: true,
viewRender: function (view, element) {
console.log(element);
},
// eventOrderStrict: true,
headerToolbar: {
start: 'today',
center: 'title',
end: 'timeGridDay',
},
resourceTimeline: {
aspectRatio: 2.5,
},
buttonText:
{
today: "Aujourd'hui",
month: 'Mois',
week: 'Semaine',
day: 'Jour',
resourceTimeline: 'Jour',
list: 'Liste',
timeGrid: '2 Jours'
},
events: JSON.parse('{{ data|raw }}'),
eventClick: function (info) {
var hoursBegin = info.event.start.getHours() - 2;
var minutesBegin = info.event.start.getMinutes();
var hoursEnd = info.event.end.getHours() - 2;
var minutesEnd = info.event.end.getMinutes();
var id = info.event.id;
var planningEventId = "{{planningEventId}}"
var urlToDelete = "/deletePlanning/" + planningEventId + "/" + id;
var urlToModify = "/modifyPlannig/" + planningEventId + "/" + id;
$('#EventId').val(id);
$('#modifyPlanningListId').attr("href", urlToModify);
$('#planningListId').attr("href", urlToDelete);
$('#showEventCalendarConseiller').html(info.event.title);
$('#hoursBegin').val(hoursBegin);
$('#minutesBegin').val(minutesBegin);
$('#hoursEnd').val(hoursEnd);
$('#minutesEnd').val(minutesEnd);
var newHours = $('#hoursBegin').val();
console.log(id);
var modal = $("#showEventCalendar");
modal.modal('show');
},
resourceAreaHeaderContent: 'Conseillers',
resources: JSON.parse('{{ ressources|raw }}'),
resourceAreaWidth: " 10%",
eventOrder: "-userId",
});
calendar2.on('eventChange', (e) => {
let url = `/gestionPlanning/{{planningEventId}}/edit`
let donnees = {
"id": e.event.id,
"title": e.event.title,
"daysOfWeek": e.event.extendedProps.weekDayNum,
"startTime": e.event.start,
"endTime": e.event.end
}
let xhr = new XMLHttpRequest
xhr.open("POST", url)
xhr.setRequestHeader("Content-Type", "application/json")
xhr.send(JSON.stringify(donnees))
})
calendar2.render()
};
}
</script>