<!-- Modal pour la propri�t� sp�cifique -->
<link rel="stylesheet" href="{{ asset('css/modal.css') }}">
<style>
.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: transparent; /* Assurez-vous que le fond est transparent */
filter: invert(1) sepia(1) saturate(5) hue-rotate(190deg); /* Appliquer un filtre de couleur */
}
</style>
<div class="modal fade" id="exampleModal-{{ property.id }}" tabindex="-1" aria-labelledby="exampleModalLabel-{{ property.id }}" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-xl m-auto">
<div class="modal-content">
<div id="container_modal">
<div class="modal-header">
<h1 class="modal-title caract�ristiques" id="exampleModalLabel-{{ property.id }}">{{ property.title }}</h1>
<button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
<span aria-hidden="true">×</span>
</button>
</div>
<span id="addr" class="caract�ristiques"> À {{ property.address.city }}</span>
<br>
{% if property.category.name matches '/location/i' %}
<div class="caract�ristiques mt-0">
<span id="prix" class="fw-bolder text-danger">{{ property.rent|number_format }} € </span>
<span id="addr">/mois</span>
</div>
{% else %}
<div class="caract�ristiques mt-0">
<span id="prix" class="fw-bold text-danger">{{ property.price|number_format }} €</span>
</div>
{% endif %}
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-7">
<div id="carouselExampleControls-{{ property.id }}" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{% if property.images|length > 0 %}
{% for image in property.images %}
<div class="carousel-item text-center {% if loop.first %}active{% endif %}" style="height:400px; width:500px;" >
<img src="{{ asset('images/properties/' ~ image.imagename) }}" alt="{{ property.title }}" style="height:-webkit-fill-available; ">
</div>
{% endfor %}
{% else %}
<div class="carousel-item active">
<img style="margin-left:2rem" src="https://via.placeholder.com/300x300?text=No+Image" alt="No image available">
</div>
{% endif %}
</div>
<a class="carousel-control-prev" href="#carouselExampleControls-{{ property.id }}" role="button" data-slide="prev">
<span class="carousel-control-prev-icon " aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls-{{ property.id }}" role="button" data-slide="next">
<span class="carousel-control-next-icon " aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<p style="font-size:20px;margin-left: 2rem;margin-top: 1em;">Mis à jour le {{ property.createdAt|date("d/m/Y") }}</p>
</div>
<div class="col-md-5">
<h2 style="color:red;font-size: 42px;">Caractéristiques</h2>
<hr id="title_cara">
<table style="width: -webkit-fill-available;">
<tr style="display: flex; flex-direction: column;">
<td class="table-danger" style="font-size: 20px;">
Nombre de pièces :
<span class="badge">{{ property.roomNumber }}</span>
</td>
<td style="font-size: 20px;">
Ce bien dispose d'un jardin :
<span class="badge">{{ property.garden ? 'Oui' : 'Non' }}</span>
</td>
<td class="table-danger" style="font-size: 20px;">
Type du logement :
<span class="badge">{{ property.housingType.name }}</span>
</td>
<td style="font-size: 20px;">
Surface :
<span class="badge">{{ property.harea }} m²</span>
</td>
<td class="table-danger" style="font-size: 20px;">
Type de transaction :
<span class="badge">{{ property.category.name }}</span>
</td>
<td style="font-size: 20px;">
Chauffage :
<span class="badge">{{ property.heating }}</span>
</td>
<td class="table-danger" style="font-size: 20px;">
Année de construction :
<span class="badge">{{ property.yearBuilt|date('Y') }}</span>
</td>
<td style="font-size: 20px;">
Catégorie :
<span class="badge">{{ property.category.name }}</span>
</td>
</tr>
</table>
<style>
.badge{
font-weight:500 !important;
font-size:100% !important;
}
</style>
<h2 style="color:red; margin-top:1em;font-size: 42px;">Partager</h2>
<hr id="title_cara">
<div style="display:flex; flex-direction:row; margin-bottom:2em;">
<button class="btn btn-light shadow mr-2 text-primary" aria-label="Partager sur Facebook" style="width:3em; height:3em;display:flex;flex-direction: column; align-items: center;"onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=https://coupdcoeurimmo.fr/properties/{{ property.id }}', 'facebook-share-dialog', 'width=626,height=626'); return false;">
<i class="fab fa-facebook" style="font-size: 2em; color:#4267B2"></i>
</button>
<button class="btn btn-light shadow mr-2 text-primary" aria-label="Partager sur Twitter" style="width:3em; height:3em;display:flex;flex-direction: column; align-items: center; " onclick="window.open('https://twitter.com/share?url=https://coupdcoeurimmo.fr/properties/{{ property.id }}', 'twitter-share-dialog', 'width=626,height=626'); return false;">
<i class="fab fa-twitter" style="font-size: 2em; color:#1DA1F2;"></i>
</button>
</div>
</div>
</div>
<div style="margin-left: 2rem;">
<h2 style="color:red;font-size: 42px;">Description</h2>
<hr id="title_cara">
<p style="font-size:20px">{{ property.content|raw }}</p>
</div>
<a href="{{ path('app_pdf_generate', {'id': property.id}) }}" target="_blank" class="btn btn-dark mr-2" style="margin-top: 1em;margin-left: 2rem">Générer une fiche PDF</a>
{% if property.category.name matches '/location/i' %}
<a href="{{ path('app_rental_application_new', {'id': property.id}) }}" class="btn btn-dark" style="margin-top: 1em;">Soumettre un dossier pour cette location</a>
{% else %}
<a href="{{ path('app_home_interest_new', {'id': property.id}) }}" class="btn btn-dark" style="margin-top: 1em;">Remplir la fiche d'intérêt</a>
{% endif %}
</div>
</div>
</div>
</div>