{% extends 'newwebfront/index.html.twig' %}
{% block title %} Actualités {% endblock title %}
{% block content %}
<!-- Page Title -->
<section class="page-title" style="background-image: url(assets/images/background/page-title.jpg);">
<div class="auto-container">
<div class="content-box">
<div class="title centred">
<h1 style="color : #FFD400;">Services aux usagers</h1>
</div>
<ul class="bread-crumb clearfix">
<li><a href="{{ path('newfront') }}">Accueil</a></li>
<li>Services aux usagers</li>
</ul>
</div>
</div>
</section>
<!-- End Page Title -->
<!-- faq-section -->
<section class="faq-section sec-pad">
<div class="auto-container">
<div class="row clearfix">
<div class="col-lg-4 col-md-12 col-sm-12 content-column">
<div class="content_block_8">
<div class="content-box">
<div class="sec-title">
<h6><i class="flaticon-star"></i><span>Services rendus aux usagers</span></h6>
<h2>Découvrez ici la liste des <br />services rendus aux usagers</h2>
<div class="title-shape"></div>
</div>
<div class="text">
<p>Pour toutes préoccupations ou informations complémentaires, n'hésitez pas à nous contacter.</p>
<a href="{{ path('contact') }}">Ecrivez nous !<i class="flaticon-right-arrow"></i></a>
</div>
</div>
</div>
</div>
<div class="col-lg-8 col-md-12 col-sm-12 faq-column">
{% set num = 1 %}
<ul class="accordion-box">
{% for service in services.data %}
{% if service.id is not null %}
<li class="accordion block">
<div class="acc-btn">
<div class="icon-outer"></div>
<h5><span> {{num}}. </span>{{ service.getNomService()}}</h5>
</div>
<div class="acc-content">
<div class="text">
<p><b>Service fournit par : {{ service.getDirection() }}</b></p>
<p>{{ service.getDescriptionService()|raw }}</p>
</div>
</div>
</li>
{% endif %}
{% set num = num + 1 %}
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
<!-- faq-section end -->
{# Gestion de la pagination #}
{% set path = 'prestation'%}
{% set pages = services.pages %}
{% set currentPage = services.page %}
{% if pages > 1 %}
<div class="pagination-wrapper centred">
<ul class="pagination clearfix">
{% if (currentPage > 1) %}
<li><a href="{{path(path, {page : currentPage - 1})}}"><i class="far fa-angle-double-left"></i></a></li>
{% else %}
{# <li class="disabled"><a href="{{path(path, {category_name : category_name, page : currentPage - 1})}}"><i class="far fa-angle-double-left disabled"></i></a></li> #}
{% endif %}
{% for page in 1..pages %}
<li><a href="{{path(path, {page : page })}}" class="{{( page == currentPage ) ? 'current' : ''}}">{{ page }}</a></li>
{% endfor %}
{% if (currentPage < pages) %}
<li><a href="{{path(path, {page : currentPage + 1})}}"><i class="far fa-angle-double-right"></i></a></li>
{% else %}
{# <li class="disabled"><a href="{{path(path, {category_name : category_name, page : currentPage + 1})}}"><i class="far fa-angle-double-right disabled"></i></a></li> #}
{% endif %}
</ul>
</div>
{% endif %}
{% include "newwebfront/_footercard.html.twig" %}
{% endblock content %}