{% extends 'front/base.html.twig' %}
{% block title %}Hello MainController!{% endblock %}
{% block body %}
<!-- WELCOME -->
<section class="py-10 py-md-14 overlay overlay-black overlay-60 bg-cover"
style="background-image: url({{ post.image }});background-position: 100% 30%">
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-8 text-center">
<!-- Heading -->
<h1 class="display-2 fw-bold text-white">
{{ post.title }}
</h1>
</div>
</div> <!-- / .row -->
</div> <!-- / .container -->
</section>
<!-- SHAPE -->
<div class="position-relative">
<div class="shape shape-bottom shape-fluid-x text-light">
<svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/>
</svg>
</div>
</div>
<div class="container">
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-scroll">
<li class="breadcrumb-item">
<a class="text-gray-700" href="{{ path('home') }}">
Accueil
</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
{{ post.title }}
</li>
</ol>
</nav>
</div>
</div>
<!-- ARTICLES -->
<section class="pt-7 pt-md-5">
<div class="container">
<div class="row align-items-center mb-5">
<h3 class="mb-3">
{{ post.title }}
</h3>
{% if faqs is not null %}
{% for faq in faqs %}
<div class="accordion" id="accordionExample{{ faq.id }}">
<div class="accordion-item">
<h2 class="accordion-header d-grid gap-1 border-0 text-white" id="heading{{ faq.id }}">
<button class="btn btn-sm border-0 text-start text-white bg-warning " type="button" data-bs-toggle="collapse"
data-bs-target="#collapse{{ faq.id }}"
aria-expanded="{{ faq.id==1 ? 'true':'false' }}"
aria-controls="collapse{{ faq.id }}">
{{ faq.title }}
</button>
</h2>
<div id="collapse{{ faq.id }}"
class="accordion-collapse collapse {{ faq.id==1 ? 'show':'' }}"
aria-labelledby="heading{{ faq.id }}"
data-bs-parent="#accordionExample{{ faq.id }}">
<div class="accordion-body">
<div class="p-5">
{{ faq.response|raw }}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div> <!-- / .row -->
</div> <!-- / .container -->
</section>
<!-- SHAPE -->
<div class="position-relative">
<div class="shape shape-bottom shape-fluid-x text-gray-200">
<svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/></svg> </div>
</div>
{% endblock %}