{% extends 'basefront.html.twig' %}
{% block stylesheets %}
<style>
@media (min-width: 992px) {
.intro .intro-title {
font-size: 3rem !important;
}
}
@media (max-width: 900px) {
#log {
width: 40px !important;
}
}
@media (min-width: 900px) {
#log {
width: 100px !important;
}
}
</style>
{% endblock %}
{% block body %}
<nav class="navbar navbar-default navbar-trans navbar-expand-lg fixed-top"
style="padding-top: 0px !important;padding-bottom: 0px !important;">
<div class="container">
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarDefault" aria-controls="navbarDefault" aria-expanded="false"
aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
<a class="navbar-brand text-brand" href="/"><img id="log" src="{{ asset('image/logoestradori.png') }}"
alt="Estate Immobilière">
</a>
<div class="navbar-collapse collapse justify-content-center" id="navbarDefault">
<ul class="navbar-nav" style="font-size: 12px;font-weight: bold;">
<li class="nav-item">
<a class="nav-link active" href="/" style="font-size: 12px;font-weight: bold;">Accueil</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
style="font-size: 12px;font-weight: bold;"
data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Location</a>
<div class="dropdown-menu">
{% for type in types %}
<a class="dropdown-item " style="font-size: 12px;font-weight: bold;"
href="{{ path('app_liste_type', {'id': type.id,'categorie':'location'}) }}">{{ type.nom }}</a>
{% endfor %}
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
style="font-size: 12px;font-weight: bold;"
data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Vente</a>
<div class="dropdown-menu">
{% for type in types %}
<a class="dropdown-item " style="font-size: 12px;font-weight: bold;"
href="{{ path('app_liste_type', {'id': type.id,'categorie':'vente'}) }}">{{ type.nom }}</a>
{% endfor %}
</div>
</li>
<li class="nav-item">
<a class="nav-link " href="#" style="font-size: 12px;font-weight: bold;">Vacances</a>
</li>
<li class="nav-item">
<a class="nav-link " href="/contact" style="font-size: 12px;font-weight: bold;">Contact</a>
</li>
</ul>
<ul id="respMenu2" class="ace-responsive-menu float-right wa" data-menu-style="horizontal"
style="font-size: 12px;font-weight: bold;">
<li class="list-inline-item list_c"><a href="tel:0021629707148">
<span class="bi bi-phone mr7"></span>/ <span class="bi bi-whatsapp mr7">
</span> (+216) 29 707 148</a></li>
<li class="list-inline-item list_c"><a href="mailto:eha.immobilier@gmail.com">
<span class="bi bi-envelope mr7"></span>
eha.immobilier@gmail.com</a></li>
</ul>
</div>
</div>
</nav>
<main id="main">
<section class="intro-single">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-8">
<div class="title-single-box">
<h1 class="title-single">Liste des annonces</h1>
</div>
</div>
<div class="col-md-12 col-lg-4">
<nav aria-label="breadcrumb" class="breadcrumb-box d-flex justify-content-lg-end">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Accueil</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
Liste des annonces
</li>
</ol>
</nav>
</div>
</div>
</div>
</section><!-- End Intro Single-->
<!-- ======= Blog Grid ======= -->
<section class="news-grid grid">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<div class="container">
{{ form_start(form) }}
<div class="row">
<div class="col-md-3">
{{ form_row(form.minsurface) }}
</div>
<div class="col-md-3">
{{ form_row(form.maxprice) }}
</div>
<div class="col-md-3">
{{ form_row(form.nbchambre) }}
</div>
<div class="col-md-3">
<button class="btn btn-primary">Rechercher</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<hr>
</div>
</div>
<div class="row mt-4">
{% for annonce in annonces %}
<div class="col-md-4">
<div class="card-box-b card-shadow news-box">
<div class="img-box-b">
{% set i =0 %}
{% for image in annonce.images %}
{% if(i == annonce.images|length-1) %}
<img src="{{ asset('images/annonces/'~image.name) }}" alt=""
class="img-a img-fluid">
{% endif %}
{% set i =i+1 %}
{% endfor %}
</div>
<div class="card-overlay">
<div class="card-header-b">
<div class="card-category-b">
<a href="{{ path('details_annonce', {'id': annonce.id}) }}"
class="category-b"
style="color: white !important;">{{ annonce.type }}</a>
<a href="{{ path('details_annonce', {'id': annonce.id}) }}"
class="category-b"
style="color: white !important;">{{ annonce.prix }} {{ annonce.devise }}</a>
</div>
<div class="card-title-b">
<h2 class="title-2">
<a href="{{ path('details_annonce', {'id': annonce.id}) }}">{{ annonce.titre }} </a>
</h2>
</div>
</div>
</div>
</div>
</div>
{% else %}
<div class="row" style=" margin-left: auto;
margin-right: auto;">
<div id="contenedor_busqueda_fallida" style="padding: 0 12.5px;
width: 100%;
margin: 100px auto;
max-width: 1165px;
margin: 0 auto;
position: relative;
overflow: hidden;
padding: 0 12.5px;
position: relative;
width: 100%;">
<div class="busqueda">
<img style="width: 250px; height: 200px;"
src="{{ asset('image/no_results_found.svg') }}" alt="">
<div class="text_fail_busqueda">
<p class="title">Aucun résultat trouvé</p>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
</main>
{% endblock %}