templates/search/index.html.twig line 1

Open in your IDE?
  1. {% extends 'static.html.twig' %}
  2. {% block title %}Hello SearchController!{% endblock %}
  3. {% block body %}
  4.         <!--list-topics end-->
  5. <!--explore start -->
  6.         <section id="explore" class="explore mt-1">
  7.             <div class="container">
  8.                 <div class="section-header">
  9.                     <h2>Résultats de recherche pour : {{keyword}}</h2>
  10.                     <p>Devenez la prochaine success story avec nous ! Découvrez comment nos services ont transformé des entreprises comme la vôtre</p>
  11.                 </div><!--/.section-header-->
  12.                 <div class="explore-content">
  13.                     <div class="row">
  14.                     {%  for customer in business %}
  15.                         {% if customer.CustmerType == 'vip' or customer.CustmerType == 'VIP'%}
  16.                     
  17.                          <div class="col-md-4 col-sm-6">
  18.                              <div class="single-explore-item">
  19.                              <a href="{{ path('customer.show', {id:customer.Id, slug:customer.BusinessName|slug  })}}">
  20.                                 <div class="single-explore-txt bg-theme-5">
  21.                                     <h2 style-color='green'>{{customer.BusinessName}}</h2>
  22.                                     <p class="explore-rating-price">
  23.                                         <span class="explore-rating">Mbl</span>
  24.                                         {{ customer.Mobile }}<br>
  25.                                         <span class="explore-rating">Email </span>
  26.                                             {{ customer.Email }}
  27.                                     </p>
  28.                                 <div class="explore-person">
  29.                                     <div class="row">
  30.                                         <div class="col-sm-2">
  31.                                             <div class="explore-person-img">
  32.                                                 <img src="../assets/images/logo/{{customer.Logo}}" alt="explore person">
  33.                                             </div>
  34.                                         </div>
  35.                                         <div class="col-sm-10">
  36.                                             <p>
  37.                                                 {{customer.StreetAddress}}<br>
  38.                                                 <button class="close-btn" >{{ customer.state }} </button> <br>
  39.                                                 <button class="btn btn-success" > +Détail</button>
  40.                                             </p>
  41.                                         </div>
  42.                                     </div></a>
  43.                                 </div>
  44.                                 </div>
  45.                             </div>
  46.                             </div>
  47.                 
  48.             
  49.                         
  50.                         {% else %}
  51.                          <div class="col-md-4 col-sm-6">
  52.                              <div class="single-explore-item">
  53.                         
  54.                                 <div class="single-explore-txt bg-theme-5">
  55.                                     <h2 style-color='green'>{{customer.BusinessName}}</h2>
  56.                                     <p class="explore-rating-price">
  57.                                         <span class="explore-rating">Mbl</span>
  58.                                         {{ customer.Mobile }}<br>
  59.                                         <span class="explore-rating">Email </span>
  60.                                             {{ customer.Email }}
  61.                                     </p>
  62.                                 <div class="explore-person">
  63.                                     <div class="row">
  64.                                         <div class="col-sm-2">
  65.                                             <div class="explore-person-img">
  66.                                                 <img src="../assets/images/logo/{{customer.Logo}}" alt="explore person">
  67.                                             </div>
  68.                                         </div>
  69.                                         <div class="col-sm-10">
  70.                                             <p>
  71.                                                 {{customer.StreetAddress}}<br>
  72.                                                 <button class="close-btn" >{{ customer.state }} </button> <br>
  73.                                             
  74.                                             </p>
  75.                                         </div>
  76.                                     </div>
  77.                                     </div>
  78.                                 </div>
  79.                         </div>    
  80.                 </div>
  81.             
  82.                         {% endif %}
  83.                         {% endfor %}
  84.   
  85.                     </div>
  86.                      <br><br>    
  87. {{ knp_pagination_render(business) }}
  88.                 </div>
  89.             </div><!--/.container-->
  90.         </section><!--/.explore-->
  91.         <!--explore end -->
  92.         
  93.     
  94.     
  95.   
  96.       <!-- -->
  97. {% endblock %}