{% extends 'front/base.html.twig' %}{% block title %}Hello MainController!{% endblock %}{% block body %} <section class="py-10 py-md-14 overlay overlay-black overlay-60 bg-cover" style="background-image: url({{ asset('uploads/logistics-transport.jpg') }});background-position: 30% 20%"> <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> <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> {% if post.parent is not null %} <li class="breadcrumb-item"> <a class="text-gray-700" href="{{ path('service_details',{'slug':post.parent.slug}) }}"> {{ post.parent }}</a> </li> {% endif %} <li class="breadcrumb-item active" aria-current="page"> {{ post.title }} </li> </ol> </nav> </div> </div> <section class="pt-2 pt-md-2 mb-5"> <div class="container"> <div class="row align-items-center mb-5"> <h3 class="mb-3 fw-bold"> {{ post.title }} </h3> {% if prices is not null %} {% for price in prices %} <div class="accordion" id="accordionExample{{ price.id }}"> <div class="accordion-item"> <h2 class="accordion-header d-grid gap-1 border-0 text-white" id="heading{{ price.id }}"> <button class="btn btn-sm border-0 text-start text-white bg-warning " type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{ price.id }}" aria-expanded="{{ getCategoryPrice(price.title,categoryPrice.id)|sort|first.id%2==0 ? 'true ':'false' }}" aria-controls="collapse{{ price.id }}"> {{ price.title }} </button> </h2> <div id="collapse{{ price.id }}" class="accordion-collapse collapse {{ getCategoryPrice(price.title,categoryPrice.id)|first.id%2 ==0 ? 'show':'' }}" aria-labelledby="heading{{ price.id }}" data-bs-parent="#accordionExample{{ price.id }}"> {% if getCategoryPrice(price.title,categoryPrice.id) is not null %} <div class="accordion-body"> <div class="table-responsive"> <table class="table table-striped table-hover align-middle"> <thead> <tr> <th>Description</th> <th>Prix</th> </tr> </thead> <tbody> {% for item in getCategoryPrice(price.title,categoryPrice.id) %} <tr> <td>{{ item.description }}</td> <td>{{ item.price }}</td> </tr> {% endfor %} </tbody> </table> </div> </div> {% endif %} </div> </div> </div> {% endfor %} {% endif %} </div> <!-- / .row --> </div> </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 %}