{% extends "base.html.twig" %}
{% block title %}{{ vehicule.modele }} | Idylcar{% endblock %}
{% block body %}
{{ vehicule.typeOffre.name }}
{% if vehicule.photos is not empty %}
{% for photo in vehicule.photos|sort((a, b) => a.position <=> b.position) %}
{% if vehicule.concession.logoFilename %}
{% endif %}
{% endfor %}
{% else %}
{% endif %}
{{ vehicule.marque.nom }} {{ vehicule.modele }}
{% if vehicule.typeVehicule.nom != "Caravane" and vehicule.typeVehicule.nom != "Mobil-home" and vehicule.typeVehicule.nom != "Remorque" and vehicule.typeVehicule.nom != "Vélo électrique" %}
{{ vehicule.kilometrage|number_format(0, ',', ' ') }} km
{% endif %}
{{ vehicule.collection }}
{% if vehicule.nbCouchageMaxi is not empty %}
{{ vehicule.nbCouchageMaxi }}
{% endif %}
{% for couchage in vehicule.amenagementInterieur %}
{% if couchage.filename %}
{% endif %}
{{ couchage.nom }}
{% endfor %}
{% if vehicule.prixDeBase is not empty %}
Prix de base véhicule : {{ vehicule.prixDeBase|number_format(0, ',', ' ') }} €
{% endif %}
{% if vehicule.prixPromo is not empty %}
{{ vehicule.prixPromo|number_format(0, ',', ' ') }} €{{ vehicule.prix|number_format(0, ',', ' ') }} €
{% else %}
{{ vehicule.prix|number_format(0, ',', ' ') }} €
{% endif %}
{{ vehicule.concession.telephone }}
{% if vehicule.concession.logoFilename %}
{% endif %}
Type de véhicule : {{ vehicule.typeVehicule.nom }}
{% if vehicule.categorie.nom is defined %}
Gamme : {{ vehicule.categorie.nom }}
{% endif %}
Marque : {{ vehicule.marque.nom }}Modèle : {{ vehicule.modele }}
{% if vehicule.nbPlaceCarteGrise is not empty %}
Aménagement :
{% for amenagement in vehicule.amenagementInterieur %}
{{ amenagement.nom }}
{% endfor %}
{% endif %}
{% if vehicule.nbPlaceCarteGrise is not empty %}
Place(s) carte grise : {{ vehicule.nbPlaceCarteGrise }}
{% endif %}
{% if vehicule.collection is not empty %}
Collection : {{ vehicule.collection }}
{% endif %}
{% if vehicule.longueur is not empty %}
Longueur : {{ vehicule.longueur }} m
{% endif %}
{% if vehicule.largeur is not empty %}
Largeur : {{ vehicule.largeur }} m
{% endif %}
{% if vehicule.hauteur is not empty %}
Hauteur : {{ vehicule.hauteur }} m
{% endif %}
{% if vehicule.PVOM is not empty %}
PVOM : {{ vehicule.PVOM }} kg
{% endif %}
{% if vehicule.PTAC is not empty %}
PTAC : {{ vehicule.PTAC }} kg
{% endif %}
{% if vehicule.chargeUtile is not empty %}
Charge utile : {{ vehicule.chargeUtile }} kg
{% endif %}
{% if vehicule.garantie is not empty %}
Garantie : {{ vehicule.garantie }} mois
{% endif %}
*Données constructeur non contractuelles
{% set cellule = false %}
{% set porteur = false %}
{% set options = false %}
{% for value in vehicule.caracteristiquesValue %}
{% if value.caracteristiques.liste.nom == 'Cellule' %}
{% if value.value != "false" and value.value != "" %}
{% set cellule = true %}
{% endif %}
{% endif %}
{% if value.caracteristiques.liste.nom == 'Options' %}
{% if value.value != "false" and value.value != "" %}
{% set options = true %}
{% endif %}
{% endif %}
{% endfor %}
{% if vehicule.typeVehicule.nom == "Camping-car" or vehicule.typeVehicule.nom == "Fourgon" or vehicule.typeVehicule.nom == "Van" %}
{% set porteur = true %}
{% endif %}
{% if cellule == true %}
Cellule
{% for value in vehicule.caracteristiquesValue %}
{% if value.caracteristiques.liste.nom == 'Cellule' %}
{% if value.value != "false" and value.value != "" %}{{ value.caracteristiques.nom }} : {% if value.value == "true" %}Oui{% else %}{{ value.value }} {{ value.caracteristiques.unite }}{% endif %}{% endif %}
{% endif %}
{% endfor %}
*Données constructeur non contractuelles
{% endif %}
{% if porteur == true %}
Porteur
{% if vehicule.modelePorteur.marques.nom is defined %}
Marque porteur : {{ vehicule.modelePorteur.marques.nom }}
{% endif %}
{% if vehicule.modelePorteur.nom is defined %}
Modèle porteur : {{ vehicule.modelePorteur.nom }}
{% endif %}
{% if vehicule.cylindree is not empty %}
Cylindrée : {{ vehicule.cylindree }} L
{% endif %}
{% if vehicule.motorisationPorteur.nom is defined %}
Motorisation : {{ vehicule.motorisationPorteur.nom }}
{% endif %}
{% if vehicule.energiePorteur.nom is defined %}
Énergie : {{ vehicule.energiePorteur.nom }}
{% endif %}
Puissance DIN : {{ vehicule.puissanceDin }} chPuissance Fiscale : {{ vehicule.puissanceFiscale }} cv
{% for value in vehicule.caracteristiquesValue %}
{% if value.caracteristiques.liste.nom == 'Porteur' %}
{% if value.value != "false" and value.value != "" %}{{ value.caracteristiques.nom }} : {% if value.value == "true" %}Oui{% else %}{{ value.value }} {{ value.caracteristiques.unite }}{% endif %}{% endif %}
{% endif %}
{% endfor %}
*Données constructeur non contractuelles
{% endif %}
{% if options == true %}
Options
{% for value in vehicule.caracteristiquesValue %}
{% if value.caracteristiques.liste.nom == 'Options' %}
{% if value.value != "false" and value.value != "" %}
{{ value.caracteristiques.nom }} : {% if value.value == "true" %}Oui{% else %}{{ value.value }} {{ value.caracteristiques.unite }}{% endif %}
{% endif %}
{% endif %}
{% endfor %}
*Données constructeur non contractuelles
{% endif %}
Informations complémentaires
{{ vehicule.texteVehicule|raw }}
Où trouver ce véhicule ?
{% if vehicule.concession.filename %}
{% endif %}
{% if vehicule.concession.logoFilename %}
{% endif %}