templates/frontoffice_bundle/base.html.twig line 1
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>L'épicerie de Rabat</title>
<link rel="icon" href="{{ asset("bundles/Frontoffice/images/logo_link.png") }}">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@600;800&display=swap" rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="{{ asset("bundles/Frontoffice/lib/lightbox/css/lightbox.min.css") }}" rel="stylesheet">
<link href="{{ asset("bundles/Frontoffice/lib/owlcarousel/assets/owl.carousel.min.css") }}" rel="stylesheet">
<link href="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/assets/owl.theme.default.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="{{ asset("bundles/Frontoffice/css/bootstrap.min.css") }}" rel="stylesheet">
<link href="{{ asset("bundles/Frontoffice/css/animate.css") }}" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="{{ asset("bundles/Frontoffice/css/style.css") }}" rel="stylesheet">
<link href="{{ asset("bundles/Frontoffice/css/toastr.css") }}" rel="stylesheet">
</head>
<body>
<style>
.owl-carousel .owl-dots{
display:none !important;
}
</style>
<!-- Spinner Start -->
<div id="spinner" class="show w-100 vh-100 bg-white position-fixed translate-middle top-50 start-50 d-flex align-items-center justify-content-center">
<div class="spinner-grow text-primary" role="status"></div>
</div>
<!-- Spinner End -->
<!-- Navbar start -->
<div class="container-fluid fixed-top">
<div class="container topbar bg-primary d-none d-lg-block">
<div class="d-flex justify-content-between">
<div class="top-info ps-2">
<small class="me-3"><i class="fas fa-phone-alt me-2 text-secondary"></i> <a href="#" class="text-white"> +212 5 37 55 66 77</a></small>
<small class="me-3"><i class="fas fa-envelope me-2 text-secondary"></i><a href="#" class="text-white">contact@epicerie.com</a></small>
</div>
<div class="top-link pe-2">
{# <a href="#" class="text-white"><small class="text-white mx-2">Politique de confidentialité</small>/</a>
<a href="#" class="text-white"><small class="text-white mx-2">Conditions d'utilisation</small>/</a>
<a href="#" class="text-white"><small class="text-white ms-2">Ventes et remboursements</small></a> #}
</div>
</div>
</div>
<div class="container px-0">
<nav class="navbar navbar-light bg-white navbar-expand-xl">
{# <a href="/" class="navbar-brand"><h1 class="text-primary display-6">Epicerie</h1></a> #}
<a href="/" class="navbar-brand"><h1 class="text-primary display-6"><img src="{{ asset("bundles/Frontoffice/images/logo.jpg") }}" alt="logo" /></h1></a>
<button class="navbar-toggler py-2 px-3" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="fa fa-bars text-primary"></span>
</button>
<div class="collapse navbar-collapse bg-white" id="navbarCollapse">
<div class="navbar-nav mx-auto">
<a href="/" class="nav-item nav-link {% if app.request.pathinfo == '/' %}active{% endif %}">Acceuil</a>
<a href="/products" class="nav-item nav-link {% if app.request.pathinfo == '/products' %}active{% endif %}">Produits</a>
<a href="/propos" class="nav-item nav-link {% if app.request.pathinfo == '/propos' %}active{% endif %}">A propos</a>
<a href="/account" class="nav-item nav-link {% if app.request.pathinfo == '/account' %}active
{% elseif app.request.pathinfo == '/monProfil' %}active
{% elseif app.request.pathinfo == '/mesCommandes' %}active
{% elseif app.request.pathinfo == '/mesCommandes/detailsCommandes/' %}active
{% endif %}">
Mon compte</a>
<a href="/contact" class="nav-item nav-link {% if app.request.pathinfo == '/contact' %}active{% endif %}">Contact</a>
</div>
<div class="d-flex m-3 me-0">
{# <button class="btn-search btn border border-secondary btn-md-square rounded-circle bg-white me-4" data-bs-toggle="modal" data-bs-target="#searchModal"><i class="fas fa-search text-primary"></i></button> #}
<a href="/panier" class="position-relative me-4 my-auto">
<i class="fa fa-shopping-bag fa-2x"></i>
<span id='nbrArticle' class="position-absolute bg-secondary rounded-circle d-flex align-items-center justify-content-center text-dark px-1" style="top: -5px; left: 15px; height: 20px; min-width: 20px;">{{npanier}}</span>
</a>
<a href="/account" class="my-auto">
<i class="fas fa-user fa-2x"></i>
</a>
</div>
</div>
</nav>
</div>
</div>
<!-- Navbar End -->
{% block body %}
{% endblock %}
<!-- Footer Start -->
<div class="container-fluid bg-dark text-white-50 footer pt-5 mt-5">
<div class="container py-1">
<div class="pb-4 mb-4" style="border-bottom: 1px solid rgba(226, 175, 24, 0.5) ;">
<div class="row g-4">
<div class="col-lg-3">
<a href="#">
<h1 class="text-primary mb-0">Epicerie</h1>
<p class="text-secondary mb-0">Produits frais</p>
</a>
</div>
<div class="col-lg-6">
{# <div class="position-relative mx-auto">
<input class="form-control border-0 w-100 py-3 px-4 rounded-pill" type="number" placeholder="Votre email">
<button type="submit" class="btn btn-primary border-0 border-secondary py-3 px-4 position-absolute rounded-pill text-white" style="top: 0; right: 0;">S'abonner maintenant</button>
</div> #}
</div>
<div class="col-lg-3">
<div class="d-flex justify-content-end pt-3">
<a class="btn btn-outline-secondary me-2 btn-md-square rounded-circle" href=""><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-secondary me-2 btn-md-square rounded-circle" href=""><i class="fab fa-instagram"></i></a>
<a class="btn btn-outline-secondary btn-md-square rounded-circle" href=""><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
</div>
<div class="row g-5">
<div class="col-lg-3 col-md-6">
<div class="footer-item">
<h4 class="text-light mb-3">Pourquoi les gens nous apprécient !</h4>
<p class="mb-4">La mise en page du texte reste essentiellement inchangée. Elle a été popularisée dans les années 1960 avec des logiciels de mise en page comme Aldus PageMaker, incluant des passages du Lorem Ipsum.</p>
<a href="" class="btn border-secondary py-2 px-4 rounded-pill text-primary">Lire la suite</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="d-flex flex-column text-start footer-item">
<h4 class="text-light mb-3">Menu</h4>
<a href="/" class="btn-link {% if app.request.pathinfo == '/' %}active{% endif %}">Acceuil</a>
<a href="/products" class="btn-link {% if app.request.pathinfo == '/products' %}active{% endif %}">Produits</a>
<a href="/propos" class="btn-link {% if app.request.pathinfo == '/propos' %}active{% endif %}">A propos</a>
<a href="/account" class="btn-link {% if app.request.pathinfo == '/account' %}active{% endif %}">Mon compte</a>
<a href="/contact" class="btn-link {% if app.request.pathinfo == '/contact' %}active{% endif %}">Contact</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="d-flex flex-column text-start footer-item">
<h4 class="text-light mb-3">Categories</h4>
<a class="btn-link" href="/products/Légumes/1/">Légumes</a>
<a class="btn-link" href="/products/Fruits/2/">Fruits</a>
<a class="btn-link" href="/products/Poissons/3/">Poissons</a>
<a class="btn-link" href="/products/Réstauration/4/">Réstauration</a>
<a class="btn-link" href="/products/Hygiènes/5/">Hygiènes</a>
<a class="btn-link" href="/products/Alimentations_générales/6/">Alimentations générales</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="footer-item">
<h4 class="text-light mb-3">Contact</h4>
<p>Adresse: Rabat ville </p>
<p>Email: contact@epicerie.com</p>
<p>Télephone: +212 5 37 55 66 77</p>
{# <img src="img/payment.png" class="img-fluid" alt=""> #}
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid copyright bg-dark py-4">
<div class="container">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
<span class="text-light"><a href="#"><i class="fas fa-copyright text-light me-2"></i>Épicerie</a>, Tous droits réservés.</span>
</div>
<div class="col-md-6 my-auto text-center text-md-end text-white">
Conception & Développement <a class="border-bottom" href="https://proxisoft.ma" target='blank'>PROXISOFT</a>
</div>
</div>
</div>
</div>
<a href="#" class="btn btn-primary border-3 border-primary rounded-circle back-to-top"><i class="fa fa-arrow-up"></i></a>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{ asset("bundles/Frontoffice/lib/easing/easing.min.js") }}"></script>
<script src="{{ asset("bundles/Frontoffice/lib/waypoints/waypoints.min.js") }}"></script>
<script src="{{ asset("bundles/Frontoffice/lib/lightbox/js/lightbox.min.js") }}"></script>
{# <script src="{{ asset("bundles/Frontoffices/lib/owlcarousel/owl.carousel.min.js") }}"></script> #}
<script src="https://owlcarousel2.github.io/OwlCarousel2/assets/vendors/jquery.min.js"></script>
<script src="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/owl.carousel.js"></script>
<script type="text/javascript" src="{{ asset('bundles/Backoffice/js/noty/packaged/jquery.noty.packaged.min.js') }}"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<!-- Template Javascript -->
<script src="{{ asset("bundles/Frontoffice/js/main.js") }}"></script>
<script src="{{ asset("bundles/Frontoffice/js/toastr.js") }}"></script>
<script type="text/javascript">
console.log('is con')
{# $(document).ready(function() { #}
{# $.ajax({
type: 'get',
url: '/getData',
success: function(data) {
// Parse JSON data
var categories = data.categorie;
var categoryLinks = $('#categoryLinks');
// Iterate over categories and generate HTML links
categories.forEach(function(category) {
// Create a new <a> element for each category
var categoryLink = $('<a class="btn-link" href="/category/' + category.id + '">' + category.titre + '</a><br/>');
// Append the <a> element to the container
categoryLinks.append(categoryLink);
});
$("#nbrArticle").html(data.panier)
}
}); #}
var owl = $('.owl-carousel');
owl.owlCarousel({
items:6,
// items change number for slider display on desktop
loop:true,
margin:10,
autoplay:true,
autoplayTimeout:3000,
autoplayHoverPause:true
});
{# }) #}
function goToMenu(menu){
window.location = menu;
}
$( "#newsletterForm" ).submit(function( event ) {
// Stop form from submitting normally
event.preventDefault();
// Get some values from elements on the page:
var $form = $( this ),
mail = $form.find( "input[name='email']" ).val(),
url = $form.attr( "action" );
// Send the data using post
var posting = $.post( url, {email: mail } );
// Put the results in a div
posting.done(function( data ) {
//var content = $( data ).find( "#content" );
//$( "#result" ).empty().append( content );*/
if(data == "OK"){
$("#rsp").css("color","green");
document.getElementById("rsp").innerHTML = "Merci de vous avoir enregistré dans notre newsletter";
}
else{
$("#rsp").css("color","red");
document.getElementById("rsp").innerHTML = data;
}
});
});
$('.input-number').change(function() {
minValue = parseFloat($(this).attr('min'));
maxValue = parseFloat($(this).attr('max'));
valueCurrent = parseFloat($(this).val());
name = $(this).attr('name');
if(valueCurrent >= minValue) {
$(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr('disabled')
} else {
Swal.fire({
icon: 'error',
title: 'Oops...',
text: "Désolé, la valeur minimale a été atteinte",
});
$(this).val($(this).data('oldValue'));
}
if(valueCurrent <= maxValue) {
$(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr('disabled');
} else {
Swal.fire({
icon: 'error',
title: 'Oops...',
text: "Désolé, la valeur maximale a été atteinte",
});
$(this).val($(this).data('oldValue'));
}
});
</script>
{% block js %}
{% endblock %}
</body>
</html>