templates/home/boutique-home.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Bienvenue {% endblock %}
  3. {% block body %}
  4. <main class="main">
  5.         <div class="page-header breadcrumb-wrap">
  6.             <div class="container">
  7.                 <div class="breadcrumb">
  8.                    <a href="{{ path('app_home_index') }}" rel="nofollow"><i class="fi-rs-home mr-5"></i>Accueil</a>
  9.                     <span></span> {{ boutique.nom}}
  10.                 </div>
  11.             </div>
  12.         </div>
  13.         <section class="container mt-10">
  14.             <div class="row">
  15.             <div class="col-lg-6 col-md-6 col-6 col-sm-12">
  16.                 <div class="vendor-wrap style-2 mb-40">
  17.                     <div class="vendor-img-action-wrap">
  18.                         <div class="vendor-img">
  19.                             <a href="#">
  20.                             {% if boutique.logo != null %}
  21.                                 <img class="default-img" src="{{ asset('uploads/boutiques/'~ boutique.logo ) }}" alt="" />
  22.                             {% else %}
  23.                                 <img class="default-img" src="assets/imgs/deals/shop.jpg" alt="" />
  24.                             {% endif %}
  25.                             </a>
  26.                         </div>
  27.                         <div class="mt-10 ">
  28.                             <span class="font-small  alert-warning p-10  border-radius-10">Non certifié</span>
  29.                         </div>
  30.                     </div>
  31.                     <div class="vendor-content-wrap">
  32.                         <div class="mb-30">
  33.                             <div class="product-category">
  34.                                 <span class="text-muted"></span>
  35.                             </div>
  36.                             <h4 class="mb-5"><a href="{{ path('app_home_boutique',{id: boutique.id} ) }}">{{boutique.nom}}</a></h4>
  37.                             <div class="vendor-info d-flex justify-content-between align-items-end mt-30">
  38.                                 <ul class="contact-infor text-muted">
  39.                                     <li><img src="assets/imgs/theme/icons/icon-location.svg" alt="" /><strong> <span>{{boutique.adresse}} {{boutique.ville}}</span></strong></li>
  40.                                     <li><img src="assets/imgs/theme/icons/icon-contact.svg" alt="" /><strong><span>{{boutique.telephone}}</span></strong></li>
  41.                                     <li><strong><a href="{{boutique.siteweb}}">{{boutique.siteweb}}</a></strong></li>
  42.                                 </ul>
  43.                                
  44.                             </div>
  45.                         </div>
  46.                     </div>
  47.                 </div>
  48.             </div>
  49.             <div class="col-lg-6 col-md-6  col-sm-12 ">
  50.                 {% if pubImages["Z-R-IMG-PD"] is defined %}
  51.                     <img src="{{ asset('uploads/pubs/'~ pubImages["Z-R-IMG-PD"]) }}" class="border-radius-10" alt="" width="100%" height="230"/>
  52.                 {% else %}
  53.                     <img src="{{ asset('assets/imgs/deals/img-9.jpg') }}" class="border-radius-10" alt="" width="100%" />
  54.                 {% endif %}
  55.                           
  56.             </div>
  57.         </div>
  58.         </section>
  59.         <section class="container mt-10 text-center">
  60.             <div class="row justify-content-center mt-5">
  61.                 <div class="col-lg-6 col-sm-12">
  62.                     <div class="sidebar-widget-2 widget_search mb-5">
  63.                         <div class="search-form">
  64.                             <form action="#" method="POST" class="d-flex">
  65.                                 <input 
  66.                                     type="text" 
  67.                                     name="searchText" 
  68.                                     class="form-control me-2" 
  69.                                     placeholder="Rechercher dans cette boutique ou agence..." 
  70.                                     required
  71.                                 />
  72.                                 <button 
  73.                                     type="submit" 
  74.                                     class="btn" 
  75.                                     style="background-color: #006266; color: #FFFFFF;"
  76.                                 >
  77.                                     <i class="fi-rs-search"></i>
  78.                                 </button>
  79.                             </form>
  80.                         </div>
  81.                     </div>
  82.                 </div>
  83.             </div>
  84.         </section>
  85.   
  86.          {% if immeubles is not  empty   %}
  87.         <section class="section-padding pb-5">
  88.             <div class="container">
  89.                 <div class="row">
  90.                  
  91.                     
  92.                   
  93.                     <div class="col-xl-12 col-lg-12 mt-5 col-md-12 mb-sm-5 mb-md-0 wow animate__animated animate__fadeInUp" data-wow-delay="0">
  94.                    
  95.                            <h4 class="section-title style-1 mb-30 animated animated">Récentes publications d'immeubles</h4>
  96.                       
  97.                         <div class=" row product-list-small animated animated">
  98.                             {% for immeuble in   immeubles  %}
  99.                                 <div class="col-md-3 col-lg-3 col-sm-1  mb-2 ">
  100.                                     <article class="row align-items-center hover-up  mr-5 mb-1" style=" ; height: 120px">
  101.                                         <figure class="col-md-4  col-sm-6 mb-0">
  102.                                             {% if immeuble.typeoperation == "LOCATION" %}
  103.                                                 <span class=" badge alert-success"  style="background: #e1b12c; color: #FFFFFF" >A LOUER </span>
  104.                                             {% else  %}
  105.                                                 <span class=" badge alert-success"  style="background: #f87171; color: #FFFFFF" >A VENDRE </span>
  106.                                             {% endif %}
  107.                                             <a href="{{ path('app_immeubledetailslug',{slug: immeuble.slug} ) }}">
  108.                                                 <img src="{{ asset('uploads/immeubles/'~ immeuble.code ~'/'~immeuble.photo) }}" alt="" width="200" height="100"  />
  109.                                             </a>
  110.                                         </figure>
  111.                                         <div class="col-md-8 mb-0 col-sm-6 ">
  112.                                             <h6>
  113.                                                 <a href="{{ path('app_immeubledetailslug',{slug: immeuble.slug} ) }}">{{ immeuble.libelle|length > 50 ?  immeuble.libelle|slice(0, 50) ~ '...' : immeuble.libelle  }}</a>
  114.                                             </h6>
  115.                                              <div class=" d-inline-block">
  116.                                                     <i class="fi-rs-location-alt mr-5"></i>{{ immeuble.ville.nom }}
  117.                                                     {% if immeuble.quartier is not null %}
  118.                                                     - {{ immeuble.quartier.nom }}
  119.                                                     {% endif %}
  120.                                                 </div>
  121.                                             <div class="product-price">
  122.                                                     <span>
  123.                                                 {% if immeuble.prix > 0%}
  124.                                                     {{ immeuble.prix|number_format(0,'.',' ') }} FCFA
  125.                                                 {% else %}
  126.                                                     Prix à la demande
  127.                                                 {% endif %}
  128.                                             </span>
  129.                                             </div>
  130.                                             <div class="d-inline-block">
  131.                                                 <span class="font-small text-muted">Publié le {{ immeuble.pubDate| date('d/m/Y h:i') }}</span>
  132.                                             </div>
  133.                                         </div>
  134.                                     </article>
  135.                                    
  136.                                 </div>
  137.                             {% endfor %}
  138.                             {% if immeubles is not null %}
  139.                             <div class="pagination-area mt-25 mb-15">
  140.                                 {{ knp_pagination_render(immeubles, 'paginator.html.twig') }}
  141.                             </div>
  142.                             {% endif %}
  143.                         </div>
  144.                     </div>
  145.                   
  146.                 </div>
  147.             </div>
  148.         </section>
  149.         {% endif %}
  150.         {% if articles  is not  empty   %}
  151.           <section class="section-padding mb-5">
  152.             <div class="container">
  153.                 <div class="row">
  154.                     <div class="col-xl-12 col-lg-12 col-md-6 mb-sm-5 mb-md-0 wow animate__animated animate__fadeInUp" data-wow-delay="0">
  155.                         <h4 class="section-title style-1 mb-10 animated animated">Récentes articles</h4>
  156.                         <div class=" row product-list-small animated animated">
  157.                             {% for article in   articles  %}
  158.                             <div class="col-md-6 col-lg-3  mb-2  articles">
  159.                                 <article class="row align-items-center hover-up  mr-5 mb-1" style="height: 120px">
  160.                                     <figure class="col-md-4  col-sm-6 mb-0">
  161.                                         {% if article.ispromo == true %}
  162.                                             <span class=" badge alert-success"  style="background: #e1b12c; color: #FFFFFF" >PROMO </span>
  163.                                         {% endif %}
  164.                                         {% if article.IsSolde == true %}
  165.                                             <span class=" badge alert-success"  style="background: #f87171; color: #FFFFFF" >Jusqu'à -{{ article.soldePourcentage}}% </span>
  166.                                         {% endif %}
  167.                                         <a href="{{ path('app_home_detail',{slug: article.slug} ) }}">
  168.                                             <img src="{{ asset('uploads/articles/'~ article.code ~'/'~article.imageprincipale) }}" alt=""  width="200" height="100" />
  169.                                         </a>
  170.                                     </figure>
  171.                                     <div class="col-md-8 mb-0 col-sm-6 ">
  172.                                         <h6>
  173.                                             <a href="{{ path('app_home_detail',{slug: article.slug} ) }}">{{ article.libelle|length > 50 ?  article.libelle|slice(0, 50) ~ '...' : article.libelle  }}</a>
  174.                                         </h6>
  175.                                         <div class="product-price">
  176.                                         {% if article.ispromo==true %}
  177.                                             {% if article.isNoprice == true %}
  178.                                                 <span>Prix à la demande</span>
  179.                                             {% else %}
  180.                                             <span>{{ article.prixpromo|number_format(0,'.',' ') }} FCFA</span>
  181.                                             <span class="old-price">{{ article.prix|number_format(0,'.',' ') }} FCFA</span>
  182.                                             {% endif %}
  183.                                         {% elseif  article.IsSolde == true %}
  184.                                             {% if article.isNoprice == true %}
  185.                                                 <span>Prix à la demande</span>
  186.                                             {% else %}
  187.                                                 <span>{{ article.prix|number_format(0,'.',' ') }} FCFA</span>
  188.                                             {% endif %}
  189.                                         {% else %}
  190.                                             <span>
  191.                                                 {% if article.prix > 0%}
  192.                                                 {{ article.prix|number_format(0,'.',' ') }} FCFA
  193.                                                 {% else %}
  194.                                                     Prix à la demande
  195.                                                 {% endif %}
  196.                                             </span>
  197.                                         {% endif %}
  198.                                         </div>
  199.                                         <div class="d-inline-block">
  200.                                             <span class="font-small text-muted">Publié le {{ article.pubDate| date('d/m/Y h:i') }}</span>
  201.                                         </div>
  202.                                     </div>
  203.                                 </article>
  204.                                
  205.                             </div>
  206.                            {% endfor %}
  207.                             <div class="pagination-area mt-20 mb-15">
  208.                                  {{ knp_pagination_render(articles, 'paginator.html.twig') }}
  209.                             </div>
  210.                         </div>
  211.                     </div>
  212.                 </div>
  213.             </div>
  214.         </section>
  215.         {% endif %}
  216.          {% if vehicules is not  empty  %}
  217.         <section class="section-padding pb-5 mb-40">
  218.             <div class="container">
  219.                 <div class="row">   
  220.                     <div class="col-xl-12 col-lg-12 col-md-12 mb-sm-5 mb-md-0 wow animate__animated animate__fadeInUp" data-wow-delay="0">
  221.                         <h4 class="section-title style-1 mb-30 animated animated">Les Récentes  publications de vehicules</h4>
  222.                         <div class=" row product-list-small animated animated">
  223.                             {% for v in   vehicules  %}
  224.                                 <div class="col-md-3 col-lg-3 col-sm-6  mb-2 ">
  225.                                     <article class="row align-items-center hover-up  mr-5 mb-1" style=" ; height: 120px">
  226.                                         <figure class="col-md-4  col-sm-6 mb-0">
  227.                                             {% if v.typeoperation == "LOCATION" %}
  228.                                                 <span class=" badge alert-success"  style="background: #e1b12c; color: #FFFFFF" >A LOUER </span>
  229.                                             {% else  %}
  230.                                                 <span class=" badge alert-success"  style="background: #f87171; color: #FFFFFF" >A VENDRE </span>
  231.                                             {% endif %}
  232.                                             <a href="{{ path('app_vehiculedetailslug',{slug: v.slug} ) }}">
  233.                                                 <img src="{{ asset('uploads/vehicules/'~ v.code ~'/'~v.photoImage) }}" alt=""  width="200" height="100" />
  234.                                             </a>
  235.                                         </figure>
  236.                                         <div class="col-md-8 mb-0 col-sm-6 ">
  237.                                             <h6>
  238.                                                 <a href="{{ path('app_vehiculedetailslug',{slug: v.slug} ) }}">{{ v.libelle|length > 50 ?  v.libelle|slice(0, 50) ~ '...' : v.libelle  }}</a>
  239.                                             </h6>
  240.                                             <div class="product-price">
  241.                                                     <span>
  242.                                                 {% if v.prix > 0%}
  243.                                                     {{ v.prix|number_format(0,'.',' ') }} FCFA
  244.                                                 {% else %}
  245.                                                     Prix à la demande
  246.                                                 {% endif %}
  247.                                             </span>
  248.                                             </div>
  249.                                             <div class="d-inline-block">
  250.                                                 <span class="font-small text-muted">Publié le {{ v.pubDate| date('d/m/Y h:i') }}</span>
  251.                                             </div>
  252.                                         </div>
  253.                                     </article>
  254.                                  
  255.                                 </div>
  256.                             {% endfor %}
  257.                         </div>
  258.                     </div>
  259.                 </div>
  260.             </div>
  261.         </section>
  262.           {% endif %}
  263.     {% if services  is not  empty   %}
  264.     <section class="section-padding pb-5 mb-40">
  265.   <div class=" row product-list-small animated animated ml-5 ">
  266.     <h4 class="section-title style-1 mb-30 animated animated">Les Récentes  publications de services</h4>
  267.         {% for s in   services  %}
  268.             <div class="col-md-3 col-lg-3 col-sm-6  mb-2  ">
  269.                 <article class="row align-items-center hover-up  mr-5 mb-1" style=" ;">
  270.                     <figure class="col-md-4  col-sm-6 mb-0">
  271.                     
  272.                         <a href="{{ path('app_services_detailslug',{slug: s.slug} ) }}">
  273.                             <img src="{{ asset('uploads/services/'~ s.code ~'/'~s.imagePrincipale) }}" alt="" height="100px"/>
  274.                         </a>
  275.                     </figure>
  276.                     <div class="col-md-8 mb-0 col-sm-6 ">
  277.                         <h6>
  278.                             <a href="{{ path('app_services_detailslug',{slug: s.slug} ) }}">{{ s.libelle|length > 50 ?  s.libelle|slice(0, 50) ~ '...' : s.libelle  }}</a>
  279.                         </h6>
  280.                             <div class=" d-inline-block">
  281.                                 <i class="fi-rs-location-alt mr-5"></i>{{ s.ville}}
  282.                                 {% if s.quartier is not null %}
  283.                                 - {{ s.quartier }}
  284.                                 {% endif %}
  285.                             </div>
  286.                         <div class="product-price">
  287.                                 <span>
  288.                             {% if s.price > 0%}
  289.                                 {{ s.price|number_format(0,'.',' ') }} FCFA
  290.                             {% else %}
  291.                                 Prix à la demande
  292.                             {% endif %}
  293.                         </span>
  294.                         </div>
  295.                         <div class="d-inline-block">
  296.                             <span class="font-small text-muted">Publié le {{ s.pubAt| date('d/m/Y h:i') }}</span>
  297.                         </div>
  298.                     </div>
  299.                 </article>
  300.                 <hr/>
  301.             </div>
  302.         {% endfor %}
  303.         {% if services is not null %}
  304.         <div class="pagination-area mt-20 mb-20">
  305.             {{ knp_pagination_render(services, 'paginator.html.twig') }}
  306.         </div>
  307.         {% endif %}
  308.     </div>
  309. </section>
  310.  {% endif%}
  311.     </main>
  312. {% endblock %}