<!DOCTYPE html>
<html prefix="fb: http://www.facebook.com/2008/fbml og: http://ogp.me/ns# content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/2000/01/rdf-schema# sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# schema: http://schema.org/">
<head>
<meta charset="UTF-8">
<title>CoastToCorner{% block title %}{% endblock %}</title>
{% block stylesheets %}{% endblock %}
{% block meta %}{% endblock %}
<meta name="google-site-verification" content="Nswynwe3HL8LgG2PUWhWNp92OmvAAT0he6oQfrqXFzc" />
<meta name="robots" content="all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="{{asset('images/jobinyana-150x150.png')}}">
<link href="https://fonts.googleapis.com/css?family=Arimo&display=swap" rel="stylesheet">
<script src="https://www.gstatic.com/firebasejs/8.0.1/firebase-app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/svg-with-js.css">
<script src="https://kit.fontawesome.com/4734763b43.js"></script>
<link rel="stylesheet" type="text/css" href="{{asset('css/style.css')}}">
<script src="https://kit.fontawesome.com/2cdfc10214.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.js" integrity="sha256-CgvH7sz3tHhkiVKh05kSUgG97YtzYNnWt6OXcmYzqHY=" crossorigin="anonymous"></script>
{% if app.request.get('_route') != 'Accueil' and app.request.get('_route') != 'categorystorelist' %}
<style>
.PopUp-Geo{
display: none;
}
</style>
{% endif %}
<script src="{{asset('js/app.js')}}"></script>
{% block javascript %}
{% endblock %}
</head>
<style type="text/css">
#image{
max-width: 100%;
}
.seeMore{
margin: auto;
}
.container_spinner{
text-align: center;
}
img.spinner {
width: 100px;
height: 100px;
background-image: url('/images/logo-ctc.png');
animation: mymove 2s infinite;
background-size: contain;
border: 2px solid #305d42;
border-radius: 100px;;
margin-bottom: 10%;
}
@keyframes mymove {
from {transform: scale(0.5)}
to {transform: scale(1)}
}
</style>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark nav-munngano nav-top">
<ul class="navbar-nav nav-top-fixed col-sm-12">
<li class="nav-item col-lg-4">
<a class="nav-link nav-link-cta" href="{{path('user.register')}}">Référencer votre activité</a>
</li>
<a class="navbar-brand col-lg-4 logo-ctc" href="/" >
<img src="{{asset('/images/jobinyana-150x150.png')}}" width="100px" class="img-munngano">
</a>
<li class="nav-item col-lg-4 d-flex justify-content-center">
<a class="nav-link col-lg-2" href="">
<i class="far fa-heart" style="font-size: xx-large;color: #0f69d9"></i>
</a>
{%if app.user is not null %}
<a class="nav-link nav-link-cta" href="{{path('security.logout')}}">Se Déconnecter</a>
{%else%}
<a class="nav-link nav-link-cta" href="{{path('security.login')}}">Se Connecter</a>
{%endif%}
{%if (app.user is not null) and (app.user.imageProfil is not null )%}
<!--<span class="col-lg-6 welcome-user">Bonjour, {{app.user.firstname | capitalize }}</span>-->
<a class="nav-link" href="{{path('profil.user')}}"><img class=" welcome-user rounded-circle" src="{{asset('images/profils/'~app.user.email~'/'~app.user.imageProfil.urlImage)}}"></img></a>
{%else%}
<a class="nav-link" href="{{path('profil.user')}}"><i class="far fa-user-circle" style="font-size: xx-large;color: #0f69d9"></i></a>
{%endif%}
<a class="nav-link col-lg-2 toggle-cart-sidebar">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#305d42" class="bi bi-cart-check" viewBox="0 0 16 16">
<path d="M11.354 6.354a.5.5 0 0 0-.708-.708L8 8.293 6.854 7.146a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0l3-3z"/>
<path d="M.5 1a.5.5 0 0 0 0 1h1.11l.401 1.607 1.498 7.985A.5.5 0 0 0 4 12h1a2 2 0 1 0 0 4 2 2 0 0 0 0-4h7a2 2 0 1 0 0 4 2 2 0 0 0 0-4h1a.5.5 0 0 0 .491-.408l1.5-8A.5.5 0 0 0 14.5 3H2.89l-.405-1.621A.5.5 0 0 0 2 1H.5zm3.915 10L3.102 4h10.796l-1.313 7h-8.17zM6 14a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm7 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
</svg>
<span id="counter_order_cart"></span>
</a>
</li>
</li>
</ul>
</nav>
{% include 'cart.html.twig' %}
<nav class="navbar navbar-expand-sm bg-dark navbar-dark orange-munngano">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="menu-hamburger" style="background-image: url('{{asset("images/menu-hamburger.svg")}}')"></span>
</button>
<a class="navbar-brand brand-mobil" href="/" >
<img src="/images/jobinyana-150x150.png" width="60px" class="img-munngano"/>
</a>
{%if app.user.accountform[0] is defined %}
<a class="nav-link navlink-icon-mobil" href="{{path('profil.user')}}">
<img class=" welcome-user rounded-circle" src="{{asset('images1/categories/'~app.user.accountform[0].Category~'/store_' ~app.user.accountform[0].mail~'/'~app.user.accountform[0].url)}}"/>
</a>
{%else%}
<a class="nav-link navlink-icon-mobil" href="{{path('profil.user')}}"><i class="far fa-user-circle" style="font-size: xx-large;color:#0f69d9"></i></a>
{%endif%}
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav container-nav-color">
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'Jardinage'} )}}">Jardinage</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'Ménage'} )}}">Ménage</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'GardeAnimaux'} )}}">Garde d'animaux</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'Bricolage'} )}}">Bricolage</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'BabySitting'} )}}">Baby-Sitting</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'NettoyageVoiture'} )}}">Nettoyage Voiture</a>
</li>
<li class="nav-item">
<a class="nav-link nav-color" href="{{path('categorystorelist', {category:'Coiffure'} )}}">Coiffure</a>
</li>
</ul>
</div>
</nav>
<!--<h2 class="title_h2_center col-sm-6 mx-auto" style="border: none;">Trouver votre professionnel / particulier</h2>
<div id="nav-expand" class="col-sm-12 mx-auto" style="text-align: center;">
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="angle-down" class="svg-inline--fa fa-angle-down fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
<path fill="#305d42" d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z">
</path>
</svg>
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="angle-down" class="svg-inline--fa fa-angle-down fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
<path fill="#305d42" d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z">
</path>
</svg>
</div>-->
<nav class="navbar navbar-expand-sm bg-light navbar-dark col-lg-4 search-nav" style="margin: auto;height:100%;display:none">
<form class="form-inline bg-white jumbotron form-research" action="" style="width: 100%" >
<input class="form-control input-form" id="searchByProperty" type="text" data-path="/" placeholder="Trouver par marque, ville, activité, #tag .." style="
margin: auto;border-radius:20px" name = 'property'>
<span class="searchCategory col-sm-6 mx-auto">Ou par Catégories</span>
<div class="input-group mb-3 mx-auto">
<div class="input-group-prepend">
<label class="input-group-text inputGroupCategory" for="inputGroupCategory">Catégories</label>
</div>
<select class="selected-category custom-select" id="inputGroupCategory">
<option value="empty">Sélectionner ...</option>
<option value="/category/Restauration">Restauration</option>
<option value="/category/Commerces">Commerces</option>
<option value="/category/Services">Services</option>
<option value="/category/Entre-particuliers">Entre Particuliers</option>
</select>
</div>
<span class="text-center col-sm-12 mx-auto mt-3">Localisation</span>
<div class="col-sm-12 mx-auto mt-3 row " style="padding: 0;text-align: center;">
<div class="col-sm-3" style="border:1px solid #305d42; padding-top:1% ">
<i class="fas fa-crosshairs fa-2x"></i>
</div>
<div class="col-sm-9" style="background: #305d42;text-align: center;padding-top: 2%;">
<span style="color: #fff;">À proximité</span>
</div>
</div>
<span class="searchCategory col-sm-12 mx-auto text-center">Ou entrez une adresse</span>
<input class="form-control input-form" type="text" data-path="searchbox" placeholder="Trouver par marque, ville, activité, #tag .." style="
margin: auto;border-radius:20px" name = 'searchHome'>
<button type="submit" class=" mx-auto btn btn-primary mt-5" style="background: #305d42 !important;">
<span>Let's Go</span>
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" class="svg-inline--fa fa-search fa-w-16" role="img" viewBox="0 0 512 512" style="
font-size: x-large;">
<path fill="#fffcfb" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7 17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg>
</button>
</form>
</nav>
<div class="PopUp-Geo alert alert-warning alert-dismissible fade show" role="alert">
<span>Pour bénéficier de l'ensemble des fonctionnalités qu'offre le site Munngano, veuillez activer le système de géolocalisation de votre appareil</span>
<button class="geo-enable">Activer la géolocalisation</button>
</div>
{% block header %}
{% endblock %}
</header>
<section class="container-body">
<!--<div class="container-fluid">
<div class="row">
<div class="col-md-10 col-md-offset-1">-->
<div class="container-alert-info" style="display:none;top: 0px;left: 0px;width: 100%;height: 100%;position: absolute;overflow: hidden;background-color: rgb(238, 238, 240,0.5);z-index: 4000;/* opacity: 0.8; */">
<div class="alert alert-info info-notif col-sm-6 alert-dismissible fade show" style="border-color: #f5a755;background-color:#fff" role="alert">
<h4>Stay Tuned !!</h4>
<p>
Activez les notifications pour être averti lors de l'inscription de nouveaux restaurants près de chez vous
</p>
<button class="btn-munngano btn-notif-active btn btn-light"> Activer les notifications</button>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
<!--</div>
</div>
</div>-->
{% block section %}
{% endblock %}
<div class="separator row justify-content-around"></div>
<div class="row justify-content-around col-sm-6 mx-auto" style="text-align: center;">
<a href="https://www.facebook.com/Munngano-102198861127879/" class="link_social_network col-sm-4"><i class="fab fa-facebook-f"></i></a>
<a href="https://twitter.com/munngano" class="link_social_network col-sm-4"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com/munngano/" class="link_social_network col-sm-4"><i class="fab fa-instagram fa-7X"></i></a>
</div>
<div class="separator"></div>
</div>
</section>
<footer class="col-sm-12" >
<nav class="row justify-content-around">
<div>
<h5 class="title_menu_cat">Catégories</h5>
<a class="nav-link" href="#">Restauration</a>
<a class="nav-link" href="#">Commerce</a>
<a class="nav-link" href="#">Artisanat</a>
<a class="nav-link" href="#">Services</a>
</div>
<div>
<h5 class="title_menu_cat">Comment ça marche ?</h5>
<a class="nav-link" href="#">Comment se référencer ?</a>
<a class="nav-link" href="#">Retrouver un magasin à proximité.</a>
<a class="nav-link" href="#"></a>
</div>
<div>
<h5 class="title_menu_cat">À propos de ..</h5>
<a class="nav-link" href="#">Recrutement</a>
<a class="nav-link" href="#">Mentions Légales</a>
<a class="nav-link" href="#">Conditions Générales d'Utilisation</a>
</div>
</nav>
<div class="cookies alert alert-light" role="alert">
<span>
les cookies nous aide à améliorer votre expérience utilisateur.En utilisant notre service, vous acceptez l'utilisation des cookies.
<a href="" class="alert-link" >En savoir plus</a>
</span>
<button id="cookie-granted">Accepter</button>
</div>
<!--<script>
jQuery('#cookie-granted').click(function(){
fetch("{{path('cookie.granted')}}").then()
})
</script>-->
<script src="{{asset('js/notification.js')}}"></script>
<script>
var cookie = document.querySelector('.cookies');
var btnCookie = document.querySelector('#cookie-granted');
jQuery('#cookie-granted').click(function(ev){
jQuery(ev.target).hide();
document.cookie = "munngano";
})
if( document.cookie.match("munngano") !== null )
{
jQuery('.cookies').hide();
}
</script>
<script>
jQuery(function(){
jQuery('.dropdown-submenu a').on("click", function(e){
jQuery(this).nextAll('ul').toggle();
e.stopPropagation();
e.preventDefault();
});
});
</script>
<script>
var ulArea = false;
jQuery(function(){
jQuery('.drop').click(function(e){
e.preventDefault();
e.stopPropagation();
jQuery(this).children('ul').toggle('slow'), function(e){
e.preventDefault();
e.stopPropagation();
} });
})
</script>
<script>
jQuery('.geo-enable').click(function(){
if (navigator.geolocation !== undefined )
{
location.reload();
/*navigator.geolocation.getCurrentPosition(function(position)
{
latitudeUser = position.coords.latitude;
longitudeUser = position.coords.longitude;
if(latitudeUser !== undefined && longitudeUser !== undefined)
{
jQuery('.PopUp-Geo').hide();
isGeo = true;
}
geolocation = {'latitudeUser':latitudeUser, 'longitudeUser':longitudeUser};
requestAllStore = new searchComponent(geolocation, false, false);
if(window.innerWidth < 750){
document.querySelectorAll(".container_store_list_landing_page").forEach(function(containerStore){containerStore.classList.add('row', 'd-flex', 'flex-nowrap', 'store-row', 'align-items-center');containerStore.scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"}) });
document.querySelector('.prime_container_store_list').style.overflowX = 'auto';
document.querySelector('.itemSearched_container_store_list').style.overflowX = 'auto';
document.querySelector('.container_new_store_list').style.overflowX = 'auto';
}
seeMore = document.querySelector('.seeMore');
jQuery('#geoDisabled').hide();
// retrieve the category if it is set
cat = initSearchComponent.category();
if( cat !== false ){
requestStoreByCategory = new searchComponent(geolocation,cat,false);
requestStoreByCategory.requestStoreByCategory.init(requestStoreByCategory);
// request the latest store by category
requestLatestStore = new searchComponent(geolocation,cat,false);
requestLatestStore.requestLatestStore.init(requestLatestStore);
} else {
// request all stores
requestAllStore = new searchComponent(geolocation, false, false);
requestAllStore.requestAllStore.init(requestAllStore);
// request all the latest store
requestLatestStore = new searchComponent(geolocation,false,false);
requestLatestStore.requestLatestStore.init(requestLatestStore);
}
})*/
} else{
jQuery('#geoDisabled').show();
geolocation = 'pas de géolocalisation';
}
})
jQuery('.cookies > button').click(function(){
jQuery('.cookies').hide();
})
</script>
<script>
jQuery(document).ready(function(){
jQuery.post("{{ path('display_items_to_Cart')}}",
function(result){
console.log(result);
if(result){
total = 0;
if(result.init != undefined && result.init === 1)
{
jQuery('.restaurant_title').html(result.restaurant_title);
jQuery('.cart-container').append('<li><a href="'+result.urlRestaurant+'">'+ result.meal_title+' '+result.meal_price+'€ </a></li>');
total += parseInt(result.meal_price);
jQuery('#counter_order_cart').html('1');
//console.log(multipleMealOrdered.get('meal'));
} else{
//console.log('list of meals ordered :'+result.meal_title);
multipleMealOrdered = new Map();
for( var i=0; i < result.meal_title.length;i++){
meal_referent = result.meal_title[i];
meal_price = result.meal_price[i];
//console.log('referent meal : '+meal_referent);
for(var y=0; y < result.meal_title.length; y++){
current_meal = result.meal_title[y];
// console.log('current meal '+result.meal_title[y]);
if(meal_referent === current_meal){
nb = multipleMealOrdered.get('meal');
// console.log(nb);
if(nb === undefined){
var nb = 0;
multipleMealOrdered.set('meal',{ name : meal_referent, price : meal_price, nombre : nb});
// multipleMealOrdered.set(meal_referent+" : "+meal_price,nb);
}
multipleMealOrdered.set('meal',{ name : meal_referent, price : meal_price, nombre : nb++});
//multipleMealOrdered.set(meal_referent+" : "+meal_price, ++nb);
//console.log(result.meal_title[y]+' : '+multipleMeal);
}
}
var mealsOrdereds ="";
multipleMealOrdered.forEach(function(value,key){
// console.log(key + "= "+ Math.sqrt(value));
})
//console.log(""+ meal_referent +" : " + multipleOrderArr[meal_referent]);
total += parseInt(result.meal_price[i]);
jQuery('.restaurant_title').html('<a href="'+result.urlRestaurant[i]+'">'+result.restaurant_title[i]+'</a>');
jQuery('#counter_order_cart').html(result.restaurant_title.length);
}
multipleMealOrdered.forEach(function(value,key){
// console.log(key + "= "+ Math.sqrt(value));
jQuery('.cart-container').append('<li>'+key+' € '+ '( x' + Math.sqrt(value) +' )</li>');
})
//console.log("multipleMealOrdered : "+multipleMealOrdered.get('meal'));
jQuery('.total_cart').html(total+' €');
}
}else{
jQuery('#counter_order_cart').hide();
}
})
})
jQuery('.btn-add-cart').click(
function(ev){
let idRestaurant = jQuery(ev.target).data("id");
let urlRestaurant = "{{ app.request.getSchemeAndHttpHost }}/products-store/"+idRestaurant;
let restaurant = jQuery(ev.target).data("restaurant");
let meal = jQuery(ev.target).data("meal");
let price = jQuery(ev.target).data("price");
let urlImage = jQuery(ev.target).data("urlImage");
jQuery.post("{{ path('add_item_to_Cart')}}",
{'restaurantTitle':restaurant,'itemTitle':meal, 'itemPrice':price, 'urlImage' : urlImage, 'urlRestaurant':urlRestaurant, 'idRestaurant' : idRestaurant},
function(result){
console.log('auth : '+result.authentification);
if(!result.authentification){
jQuery('.toast-inscription').show();
jQuery('body').animate({scrollTop:0}, 'fast');
jQuery('body').css('overflow','hidden');
}
if(result){
total = 0;
if(result.init != undefined && result.init === 1){
jQuery('.restaurant_title').html('<a href="'+urlRestaurant+'">'+result.restaurant_title+'</a>');
jQuery('.cart-container').append('<li><a href="'+urlRestaurant+'">'+ result.meal_title+' '+result.meal_price+'€ </a></li>');
total = parseInt(result.meal_price);
jQuery('#counter_order_cart').html('1').show();
} else{
multipleMealOrdered = new Map();
for( var i=0; i < result.init;i++){
meal_referent = result.meal_title[i];
meal_price = result.meal_price[i];
for(var y=0; y < result.init; y++){
current_meal = result.meal_title[y];
console.log('test meal : '+result.meal_title[y]+ meal_referent);
if(meal_referent === current_meal){
console.log("test meal : "+true);
//nb = multipleMealOrdered.get('meal').nombre;
//console.log(nb);
if(nb === undefined){
var nb = 1;
multipleMealOrdered.set('meal',{ name : meal_referent, price : meal_price, nombre : nb});
break;
}
nb = multipleMealOrdered.get('meal').nombre;
multipleMealOrdered.set('meal',{ name : meal_referent, price : meal_price, nombre : nb++});
//multipleMealOrdered.set(meal_referent+" : "+meal_price, ++nb);
break;
}
}
console.log("Meal : "+multipleMealOrdered.get('meal').name);
var mealsOrdereds ="";
/*multipleMealOrdered.get('meal').forEach(function(value,key){
console.log(key + "= "+ Math.sqrt(value));
})*/
const name = multipleMealOrdered.get('meal').name;
const price = multipleMealOrdered.get('meal').price;
//console.log(""+ meal_referent +" : " + multipleOrderArr[meal_referent]);
total += parseInt(result.meal_price[i]);
jQuery('.restaurant_title').html(result.restaurant_title[i]);
jQuery('#counter_order_cart').html(result.restaurant_title.length);
}
jQuery('.cart-container').html('');
multipleMealOrdered.forEach(function(value){
console.log(value);
// console.log(key + "= "+ Math.sqrt(value));
jQuery('.cart-container').append('<li>'+value.name +' : '+ value.price + ' € '+ '( x' + value.nombre +' )</li>');
})
for(var i = 0; i < multipleMealOrdered.size; i++ ){
}
// console.log(multipleMealOrdered);
}
jQuery('.total_cart').html(total+' €');
jQuery('#primary-ctc').attr("href", "{{ app.request.getSchemeAndHttpHost }}/payout/"+idRestaurant);
};
})
});
jQuery('.btn-clear-cart').click(
function(ev){
let restaurant = jQuery(ev.target).data("restaurant");
let meal = jQuery(ev.target).data("meal");
let price = jQuery(ev.target).data("price");
jQuery.post("{{ path('remove_item_to_Cart')}}",
{'restaurantTitle':restaurant,'itemTitle':meal, 'itemPrice':price},
function(result){
total = 0;
jQuery('.cart-container').html('');
jQuery('.restaurant_title').html('Votre panier est vide.');
jQuery('.total_cart').html(total+' €');
jQuery('#counter_order_cart').hide();
}
);
}
);
</script>
<script>
</script>
<script>
jQuery('.toggle-cart-sidebar').click(function(){
jQuery('.cart-container-sidebar').toggle();
})
</script>
{% block footer %}
{% endblock %}
</footer>