{% extends '@EasyAdmin/default/show.html.twig' %} {% block actions_tabs %} {{parent()}} {% endblock actions_tabs %} {% block wrapper %} {# for invite provider of client if user is admin #} {% if is_granted('ROLE_ADMIN') %}

{% endif %} {{ parent() }} {% endblock wrapper %} {% block title_entity %}
{% if entity.image is defined %} {% if not entity.image is null %} {% else %} {% endif %} {% else %} {% endif %}
{% if entity.companyName is defined %} {{entity.companyName}} {% else %} {{entity.username}} {% endif %}
{% if entity.email is defined %} {{entity.email}} {% endif %}
{% endblock %} {% block content %}
{% if is_granted('ROLE_SELLER') %}

{{'provider_ea.show.about'|trans(_trans_parameters)}}


{{'provider_ea.show.companyName'|trans(_trans_parameters)}}
{{entity.companyName}}

{{'provider_ea.show.cif'|trans(_trans_parameters)}}
{{entity.cif}}

{{'provider_ea.show.email'|trans(_trans_parameters)}}
{{entity.email}}

{{'provider_ea.show.billingAddress'|trans(_trans_parameters)}}
{{entity.billingAddress}}

{{'provider_ea.show.mobile'|trans(_trans_parameters)}}
{{entity.mobile}}

{{'provider_ea.show.phone'|trans(_trans_parameters)}}
{{entity.phone}}

{{'provider_ea.show.openHours'|trans(_trans_parameters)}}
{% for op in entity.openHours %} {{ include('admin/open_hours.html.twig') }} {% endfor %}

{{'businessType.title'|trans(_trans_parameters)}}
{{entity.typeBusiness is null ? '' : entity.typeBusiness.translate.name}}

{{'businessType.subType'|trans(_trans_parameters)}}
{{entity.typeSubBusiness is null ? '' : entity.typeSubBusiness.translate.name}}

{{'provider_ea.show.terms'|trans(_trans_parameters)}}
{{entity.termconditionscheck ? "Aceptado":"No aceptado"}}

{{'Catalogue'|trans(_trans_parameters)}}
{% set existeCatalogo = false %} {% if entity.catalogueClients|length > 0 %} {% for key,catalogueClient in entity.catalogueClients %} {% if is_granted('ROLE_PROVIDER') %} {% if app.user.id == catalogueClient.catalogue.provider.id %} {% set existeCatalogo = true %} {{catalogueClient.catalogue}} {% endif %} {% else %} {% if app.user.provider.id == catalogueClient.catalogue.provider.id %} {% set existeCatalogo = true %} {{catalogueClient.catalogue}} {% endif %} {% endif %} {% endfor %} {% endif %} {% if existeCatalogo == false %} {{'inviteClienteCatalogue'|trans()}} {% endif %}


{% else %}

{{'provider_ea.show.about'|trans(_trans_parameters)}}


{{'provider_ea.show.companyName'|trans(_trans_parameters)}}
{{entity.companyName}}
{{'provider_ea.show.cif'|trans(_trans_parameters)}}
{{entity.cif}}


{{'provider_ea.show.email'|trans(_trans_parameters)}}
{{entity.email}}
{{'provider_ea.show.billingAddress'|trans(_trans_parameters)}}
{{entity.billingAddress}}


{{'provider_ea.show.mobile'|trans(_trans_parameters)}}
{{entity.mobile}}
{{'provider_ea.show.phone'|trans(_trans_parameters)}}
{{entity.phone}}


{{'provider_ea.show.openHours'|trans(_trans_parameters)}}
{% for op in entity.openHours %} {{ include('admin/open_hours.html.twig') }} {% endfor %}


{% endif %} {% if is_granted('ROLE_SELLER') %}
{{ include('admin/client/sales_graph.html.twig', { 'entity': entity }) }}
{% endif %}
{% if is_granted('ROLE_ADMIN') == false and is_granted('ROLE_EMPLOYEE') %} {{ render(controller( 'App\\Controller\\ClientController::formSepa', { 'client': entity.id } )) }} {% endif %}
{% if not is_granted('ROLE_CARRIER') or is_granted('ROLE_SELLER') %}
{{ include('admin/client/messages.html.twig', { 'entity': entity }) }}
{% endif %}


{% block delete_form %} {{ include('@EasyAdmin/default/includes/_delete_form.html.twig', { view: 'show', referer: app.request.query.get('referer', ''), delete_form: delete_form, _translation_domain: _entity_config.translation_domain, _trans_parameters: _trans_parameters, _entity_config: _entity_config, }, with_context = false) }} {% endblock delete_form %} {% endblock content %} {% block body_javascript %} {{parent()}} {% include "security/country_json.html.twig" %} {% endblock %}