{% extends '@EasyAdmin/default/edit.html.twig' %} {% 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 actions_tabs %} {% if app.session.get('VIEW') != 'SIMPLE_VIEW' %}
  • {{ 'Information'| trans }}
  • {{ 'Modify'| trans }}
  • {% if is_granted('ROLE_ADMIN') %}
  • {{ 'Clients'| trans }}
  • {{ 'Orders'| trans }}
  • {{ 'Products'|trans }}
  • {% endif %} {{ parent() }} {% endif %} {% endblock %} {% block entity_form %} {% if app.session.get('VIEW') == 'SIMPLE_VIEW' and app.user.plan is not null %}
    {{app.user.plan.name|upper}}
    {{'current_plan'|trans}}
    {% endif %} {% if form.openHours is defined %} {% form_theme form.openHours 'form/form_open_hours_theme.html.twig' %} {% endif %} {% form_theme form.plan 'form/form_plan_theme_provider.html.twig' %} {{ form(form) }} {% if is_granted('ROLE_PROVIDER') and app.session.get('SUSCRIPTION') is not null and app.session.get('VIEW') == 'SIMPLE_VIEW' %} {% if app.session.get('SUSCRIPTION')['PLAN_TEST'] == false %} {% endif %} {% endif %} {% endblock entity_form %} {% block body_javascript %} {{ parent() }} {{ include('admin/provider/states_dependent.html.twig') }} {% endblock body_javascript %}