{% 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({{ 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>
<!-- 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>
{% 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">
<div class="col-12 col-md">
<!-- Heading -->
<h3 class="mb-3">
{{ post.title }}
</h3>
<!-- Text -->
<p class="mb-0 text-muted">
{{ post.description|raw }}
</p>
</div>
</div> <!-- / .row -->
<div class="row">
{% if contentChildren(7) is not null %}
{% for child in contentChildren(7) %}
<div class="col-12 col-md-6 col-lg-4 d-flex">
<!-- Card -->
<div class="card mb-6 mb-lg-0 shadow-light-lg lift lift-lg">
<!-- Image -->
<a class="card-img-top" href="{{ path('service_details',{'slug':child.slug}) }}">
<!-- Image -->
<img src="{{ child.image }}" alt="{{ child.title }}" class="card-img-top">
<!-- Shape -->
<div class="position-relative">
<div class="shape shape-bottom shape-fluid-x text-white">
<svg viewBox="0 0 2880 480" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2160 0C1440 240 720 240 720 240H0v240h2880V0h-720z" fill="currentColor"/></svg> </div>
</div>
</a>
<!-- Body -->
<a class="card-body" href="{{ path('service_details',{'slug':child.slug}) }}">
<!-- Heading -->
<h3>
{{ child.title }}
</h3>
<!-- Text -->
<div class="mb-0 text-muted">
{{ child.summary|u.truncate(83, '...', false) }}
</div>
</a>
<!-- Meta -->
<a class="card-meta mt-auto text-muted" href="{{ path('service_details',{'slug':child.slug}) }}">
<!-- Divider -->
<hr class="card-meta-divider">
<i class="fe fe-eye"></i> Voir les détails
</a>
</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 %}