templates/home/result.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Hello HomeController!{% endblock %}
  3. {% block body %}
  4.  <style>
  5.     body {
  6.       font-family: 'Segoe UI', sans-serif;
  7.     }
  8.     
  9.     .hero {
  10.       /* background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat; */
  11.       /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url(https://images.unsplash.com/photo-1600585154340-be6161a56a0c) center / cover no-repeat;
  12.       min-height: 90vh;
  13.       display: flex;
  14.       align-items: center;
  15.       color: white;
  16.       text-shadow: 1px 1px 4px rgba(0,0,0,0.6); */
  17.       min-height: 80vh;
  18.     display: flex;
  19.     align-items: center;
  20.     }
  21.     .service-card {
  22.       transition: all 0.3s ease;
  23.     }
  24.     .service-card:hover {
  25.       transform: translateY(-8px);
  26.       box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  27.     }
  28.     .cta-section {
  29.       background: #0170ba;
  30.       color: white;
  31.       padding: 60px 0;
  32.       text-align: center;
  33.     }
  34.   </style>
  35.   </section>
  36.   <!-- Services -->
  37.   <section id="services" class="py-5">
  38.     <div class="container py-5">
  39.       <div class="text-center mb-5">
  40.         <h2 class="fw-bold">Choisir votre besoin</h2>
  41.         <p class="text-muted">Des diagnostics complets pour vos biens immobiliers</p>
  42.       </div>
  43.       <div class="row g-4">
  44. <h2>Prestataires pour le diagnostique : {{ service.nom }}</h2>
  45. {% if users is not empty %}
  46.     
  47.         {% for user in users %}
  48.         <div class="col-md-12">
  49.           <div class="card service-card h-100 text-center p-4">
  50.             {# <div class="mb-3">
  51.               <img src="{{asset('img/pro.png')}}" width="100" alt="Amiante">
  52.             </div> #}
  53.             <h3>{{ user.nom }}</h3>
  54.             <p>{{ user.email }} - {{ user.phone }}</p>
  55.             {% for item in user.services %}
  56.                   {# Access properties of each item here #}
  57.                   <p>Le prix pour le diagnostique {{ service.nom }} est : <b> {{ attribute(item, prix) }} € </b></p>
  58.                   {# <p> il fait aussi {{ item.nom }} : pour petit à <b>{{ item.prix1 }}</b> pour moyen à <b>{{ item.prix2 }}</b> et pour grand à <b>{{ item.prix3}}</b></p> #}
  59.             {% endfor %}
  60.             <a class="btn btn-primary">Faire la demande</a>
  61.             {# <a href="{{ path('devis_step3', {id: service.id, prix: 'prix1'}) }}" class="btn btn-primary">prix1</a> #}
  62.             {# <p class="text-muted">Vérifiez la présence d’amiante pour sécuriser vos transactions immobilières.</p> #}
  63.           </div>
  64.         </div>
  65.         
  66.         {% endfor %}
  67.     </ul>
  68. {% else %}
  69.     <p>Aucun utilisateur ne propose ce service pour le moment.</p>
  70. {% endif %}
  71.       </div>
  72.     </div>
  73.   </section>
  74.   
  75. {% endblock %}