{% extends 'parent.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<style>
.area{
position: absolute;
right: 1.5vw;
font-weight: bold;
}
.invisible{
display: none;
}
@media(max-width: 756px)
{
.asRange
{
margin-top: 115px;
}
}
</style>
{% endblock %}
{% block body %}
<!-- Listing Grid View -->
<section class="our-listing pb30-991">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="listing_sidebar dn db-lg">
<div class="sidebar_content_details style3">
<!-- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> -->
<div class="sidebar_listing_list style2 mobile_sytle_sidebar mb0">
<div class="siderbar_widget_header">
<h4 class="title mb0">Trouvez votre panneau<a class="filter_closed_btn float-right" href="#"><small>x</small><span class="flaticon-close"></span></a></h4>
</div>
<form method="get">
<div class="sidebar_advanced_search_widget">
<ul class="sasw_list mb0">
<li class="search_area">
<div class="form-group">
<input type="text" class="form-control form_control" placeholder="Nom du panneau" name="name" value="{% if name is defined %}{{ name }}{% endif %}">
</div>
</li>
<li>
<div class="search_option_two">
<div class="sidebar_select_options">
<select class="selectpicker w100 show-tick" name="type">
<option value="0">Tous types</option>
{% for type_panel in type_panels %}
<option value="{{ loop.index }}" {% if loop.index == type %}selected{% endif %}>{{ type_panel.name }}</option>
{% endfor %}
</select>
</div>
</div>
</li>
<li>
<div class="search_option_two">
<div class="sidebar_select_options">
<select class="selectpicker w100 show-tick">
<option>Toutes les villes</option>
<option value="London">London</option>
<option value="NewYork">New York</option>
<option value="Paris">Paris</option>
<option value="Istanbul">Istanbul</option>
<option value="Amsterdam">Amsterdam</option>
<option value="Rome">Rome</option>
<option value="LogAngeles">Log Angeles</option>
</select>
</div>
</div>
</li>
<li>
<div class="sidebar_priceing_slider_mobile">
<div class="wrapper">
<p class="mb0">Prix</p>
<div class="mt20 ml10" id="slider"></div>
<span id="slider-range-value1"></span>
<input class="invisible" name="lowest" id="lowest"/>
<span id="slider-range-value2"></span>
<input class="invisible" name="highest" id="highest"/>
</div>
</div>
</li>
<li>
<div class="sidebar_range_slider mb30 mt100">
<input class="range-example-km mb20" value="{% if area <= 0 %}{{ max_area }}{% else %}{{ area }}{% endif %}" type="text" name="area">
</div>
</li>
<li>
<div class="search_option_button text-center mt25">
<script>
const lowestSelector = document.querySelector("#slider-range-value1");
const lowestInput = document.querySelector("#lowest");
const highestSelector = document.querySelector("#slider-range-value2");
const highestInput = document.querySelector("#highest");
function updateInput()
{
lowestInput.value = lowestSelector.textContent;
highestInput.value = highestSelector.textContent;
}
</script>
<button type="submit" class="btn btn-block btn-thm mb25" onclick="updateInput();">Chercher</button>
<ul class="mb0">
<li class="list-inline-item mb0"><a href="/listing-panels"><span class="vam flaticon-return mr10"></span> Réinitialiser la recherche</a></li>
</ul>
</div>
</li>
</ul>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="breadcrumb_content style2 mb100">
<h2 class="breadcrumb_title">Panneaux publicitaires à louer</h2>
<p>Trouvez le panneau qui correspond à vos critères</p>
</div>
</div>
<div class="col-lg-12">
<div class="dn db-lg mb30-md text-center">
<div id="main2"><a id="open2" class="filter_open_btn btn-thm" href="#">Filtres<span class="flaticon-setting-lines ml10"></span></a></div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-3">
<div class="sidebar_listing_grid1 mb30 dn-lg">
<div class="sidebar_listing_list">
<form method="get">
<div class="sidebar_advanced_search_widget">
<ul class="sasw_list mb0">
<li><h4 class="mb0">Trouvez votre panneau</h4></li>
<li class="search_area">
<div class="form-group">
<input type="text" class="form-control form_control" placeholder="Nom du panneau" name="name" value="{% if name is defined %}{{ name }}{% endif %}">
</div>
</li>
<li>
<div class="search_option_two">
<div class="sidebar_select_options">
<select class="selectpicker w100 show-tick" name="type">
<option value="0">Tous types</option>
{% for type_panel in type_panels %}
<option value="{{ loop.index }}" {% if loop.index == type %}selected{% endif %}>{{ type_panel.name }}</option>
{% endfor %}
</select>
</div>
</div>
</li>
<li>
<div class="search_option_two">
<div class="sidebar_select_options">
<select class="selectpicker w100 show-tick">
<option>Toutes les villes</option>
<option value="London">London</option>
<option value="NewYork">New York</option>
<option value="Paris">Paris</option>
<option value="Istanbul">Istanbul</option>
<option value="Amsterdam">Amsterdam</option>
<option value="Rome">Rome</option>
<option value="LogAngeles">Log Angeles</option>
</select>
</div>
</div>
</li>
<li>
<div class="sidebar_priceing_slider_desktop">
<div class="wrapper">
<p class="mb0">Prix</p>
<div class="slider-range"></div>
<input type="text" class="amount" placeholder="{{ lowest }}" name="lowest">
<input type="text" class="amount2" placeholder="{{ highest }}" name="highest">
<script>
const input1 = document.querySelector('.amount');
const input2 = document.querySelector('.amount2');
input1.value = input1.placeholder;
input2.value = input2.placeholder;
</script>
</div>
</div>
</li>
<li>
<div class="sidebar_range_slider mb30 mt100">
<input class="range-example-km mb20" value="{% if area <= 0 %}{{ max_area }}{% else %}{{ area }}{% endif %}" type="text" name="area">
</div>
</li>
<li>
<div class="search_option_button text-center mt25">
<button type="submit" class="btn btn-block btn-thm mb25">Chercher</button>
<ul class="mb0">
<li class="list-inline-item mb0"><a href="/listing-panels"><span class="vam flaticon-return mr10"></span>Réinitialiser la recherche</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</form>
</div>
</div>
<div class="col-xl-9">
<div class="row">
<div class="listing_filter_row dif db-767">
<div class="col-sm-12 col-md-4 col-lg-4 col-xl-5">
<div class="left_area tac-xsd mb30-767">
<p class="mb0 mt10"><span class="heading-color">{{ panels|length }}</span> résultat{% if panels|length > 1 %}s{% endif %}</p>
</div>
</div>
</div>
</div>
<div class="row">
{% if error is defined %}
<h3 style="margin: auto; color: #969696;">{{ error }}</h3>
{% endif %}
{% for panel in panels %}
<div class="col-lg-6 col-xl-4">
<div class="feat_property">
<div class="thumb">
<a href="/listing-panel-single/{{ panel.id }}"><img class="img-whp" src="{{ images[loop.index0] }}" alt="fl1.jpg"></a>
<div class="thmb_cntnt">
<ul class="tag mb0" style="width:95%;display: flex;justify-content: space-between;">
<li class="list-inline-item"><a href="#" style="background-color: #0D263B;">{% if panel.typePanel|length > 0 %}{{ panel.typePanel.name }}{% endif %}</a></li>
<li class="list-inline-item color-panel">
<span data-toggle="tooltip" title="{% if panel.zone|length > 0 %}
{% if panel.zone.name == "Rouge" %}Les panneaux rouges sont situés dans des zones très fréquentées. Ceux-ci vous garantiront une exposition d'enfer, de quoi faire connaitre votre marque.
{% elseif panel.zone.name == "Bleu" %}Les panneaux bleus sont un excellent compromis entre visibilité pour votre marque et budget raisonable. De quoi vous faire connaitre sans vous ruiner !
{% elseif panel.zone.name == "Vert" %}Ces panneaux sont situés dans des zones rurales, et donc mois fréquentées. Un panneau vert vous conviendra si vous visez un petit budget !
{% endif %}
{% endif %}">
<a href="#"style="background-color:
{% if panel.zone|length > 0 %}
{% if panel.zone.name == "Rouge" %}#ec1e28;
{% elseif panel.zone.name == "Bleu" %}#4188fa;
{% elseif panel.zone.name == "Vert" %}#42ed84;
{% endif %}
{% else %}#0D263B;{% endif %}">{% if panel.zone|length > 0 %}{{ panel.zone.name }}{% endif %}</a></span></li>
</ul>
</div>
<div class="thmb_cntnt2">
<ul class="listing_gallery mb0">
<li class="list-inline-item"><a class="text-white" href="#"><span class="flaticon-photo-camera mr5"></span>{{ panel.images|length }}</a></li>
<li class="list-inline-item"><a class="text-white" href="#"><svg class="svg-icon" viewBox="0 0 20 20">
<path fill="none" d="M19.471,8.934L18.883,8.34c-2.096-2.14-4.707-4.804-8.903-4.804c-4.171,0-6.959,2.83-8.996,4.897L0.488,8.934c-0.307,0.307-0.307,0.803,0,1.109l0.401,0.403c2.052,2.072,4.862,4.909,9.091,4.909c4.25,0,6.88-2.666,8.988-4.807l0.503-0.506C19.778,9.737,19.778,9.241,19.471,8.934z M9.98,13.787c-3.493,0-5.804-2.254-7.833-4.3C4.182,7.424,6.493,5.105,9.98,5.105c3.536,0,5.792,2.301,7.784,4.332l0.049,0.051C15.818,11.511,13.551,13.787,9.98,13.787z"></path>
<circle fill="none" cx="9.98" cy="9.446" r="1.629"></circle>
</svg> {{ panel.historyViews|length }}</a></li>
<style>
.svg-icon {
width: 1.6em;
height: 1.6em;
}
.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
fill: #fff;
}
.svg-icon circle {
stroke: #fff;
stroke-width: 0.5;
}
</style>
</ul>
</div>
</div>
<div class="details">
<div class="tc_content">
<h4><a href="page-listing-single-v8.html">{{panel.situation}} ({{ panel.name }})</a></h4>
<p>{{ panel.address }}</p>
</div>
<div class="fp_footer">
<ul class="fp_meta float-left mb0">
<li class="list-inline-item">
<a href="#">
<span class="heading-color fw600">{{ panel.price }}€</span>
</a>
</li>
</ul>
<span class="area">{{ panel.area }} m<sup>2</sup></span>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<!-- Our Footer -->
<section class="footer_one home1">
<div class="container pt10 pb30">
<div class="row">
<div class="col-md-4 col-lg-4">
<div class="copyright-widget mt10 mb15-767" style="display: flex; flex-direction: row; justify-content: center;">
<li class="list-inline-item list_s"><a href="#" class="btn" data-toggle="modal" data-target="#logInModal"><span class="flaticon-user" style="color: white;"></span></a></li>
<p>| © 2022 Pubup | Developed by <a href="https://wecodx.com/" target="_blank">Wecodx.</a></p>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="footer_logo_widget text-center mb15-767">
<div class="wrapper">
<div class="logo text-center"> <img src="/assets/images/footer-logo.svg" alt="footer-logo.svg"> <span class="logo_title text-white pl15">Houzing</span> </div>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="footer_menu_widget text-right tac-md mt15">
<ul>
<li class="list-inline-item"><a href="/">Accueil</a></li>
<li class="list-inline-item"><a href="/listing-panels">Nos Panneaux</a></li>
<li class="list-inline-item"><a href="/about-us">Notre Équipe</a></li>
<li class="list-inline-item"><a href="/contact">Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<a class="scrollToHome" href="#"><i class="fa fa-angle-up"></i></a>
</div>
<script>
var minPrice = {{ lowest }};
var maxPrice = {{ highest }};
var maxArea = {{ max_area }};
var mostExpensive = {{ most_expensive }};
</script>
{% endblock %}
{% block footer %}
{% endblock %}
{% block javascripts %}
<script src="/assets/js/jquery-3.6.0.js"></script>
<script src="/assets/js/jquery-migrate-3.0.0.min.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/jquery.mmenu.all.js"></script>
<script src="/assets/js/ace-responsive-menu.js"></script>
<script src="/assets/js/bootstrap-select.min.js"></script>
<script src="/assets/js/isotop.js"></script>
<script src="/assets/js/snackbar.min.js"></script>
<script src="/assets/js/simplebar.js"></script>
<script src="/assets/js/parallax.js"></script>
<script src="/assets/js/scrollto.js"></script>
<script src="/assets/js/jquery-scrolltofixed-min.js"></script>
<script src="/assets/js/jquery.counterup.js"></script>
<script src="/assets/js/wow.min.js"></script>
<script src="/assets/js/progressbar.js"></script>
<script src="/assets/js/slider.js"></script>
<script src="/assets/js/pricing-slider.js"></script>
<script src="/assets/js/timepicker.js"></script>
<!-- Custom script for all pages -->
<script src="/assets/js/script.js"></script>
{% endblock %}