{%- extends 'park/base.html.twig' -%} {% block importmap %}{{ importmap(['app','business-show']) }}{% endblock %} {%- set pageTitle -%}L'Entreprise
{{ park.prefixedName }}{% endset %} {%- set hasLogo = business.logo and business.logo.name -%} {%- set hasDetailedPage = business.subscriptionLevel.detailedPage -%} {%- set hasActivityArea = hasDetailedPage and business.description is not empty -%} {%- set hasDescription = hasDetailedPage and business.description is not empty -%} {%- set hasWebsite = hasDetailedPage and business.website is not empty -%} {%- set hasContactPhone = hasDetailedPage and business.contactPhone is not empty -%} {%- set hasContactEmail = hasDetailedPage and business.contactEmail is not empty -%} {%- set hasAddress = business.fullAddress is not empty -%} {%- set hasImages = hasDetailedPage and not business.images.empty -%} {%- set hasPost = business.subscriptionLevel.post -%} {%- set hasRealEstate = business.subscriptionLevel.realEstate -%} {%- set hasJobOffer = business.subscriptionLevel.jobOffer -%} {%- block body -%}
{% if hasLogo %}
{% endif %}

{{ business.name|striptags|raw }}

{% if hasActivityArea %}
{{ business.activityArea ? business.activityArea.name }}
{% endif %} {% if hasWebsite %} Voir le site internet {% endif %} {% if hasContactPhone or hasContactEmail %} {% endif %}
{% if hasPost or hasRealEstate or hasJobOffer %}
{% endif %}

{% if hasAddress or hasContactEmail or hasContactPhone or map or hasDescription %}
{% if hasAddress or hasContactEmail or hasContactPhone %}
{% if hasAddress %}
{{ ux_icon('bi:geo-alt-fill', {class:'text-tertiary', 'aria-label': 'Business Address'}) }}
{{ business.fullAddress }}
{% endif %} {% if hasContactEmail %}
{{ ux_icon('bi:envelope-at-fill', {class:'text-tertiary', 'aria-label': 'Business Address'}) }}
{% endif %} {% if hasContactPhone %}
{{ ux_icon('bi:telephone-fill', {class:'text-tertiary', 'aria-label': 'Business Phone'}) }}
{% endif %}
{% endif %} {% if map %}
{{ ux_map(map, { style: 'height: 100%;border-radius: 8px;','data-controller': 'leaflet-map', }) }}
{% endif %} {% if hasDescription %}
{{ business.description|raw }}
{% endif %}
{% endif %}
{% if hasImages %} {% endif %} {% if hasPost or hasRealEstate or hasJobOffer %} {% endif %}
Lancer l'itinéraire via
{%- endblock -%}