{% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %} {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %} {% set currentUser = app.user %} {% set currentUserName = currentUser ? currentUser.nombre : 'user.fallback_name'|trans %} {% set currentUserRole = currentUser ? get_user_role_name(currentUser) : 'user.no_role'|trans %} {% set currentUserInitials = currentUser ? currentUser.nombre|slice(0, 2)|upper : 'US' %} {% set currentUserPhoto = currentUser and currentUser.foto ? '/' ~ currentUser.foto|trim('/') : null %} {% set currentRoute = app.request.attributes.get('_route') ?? '' %} {% set topbarTitle %}{% block page_title %}Macrobase CxP{% endblock %}{% endset %} {% include 'layouts/_app_sidebar.html.twig' %}
{% include 'layouts/_app_topbar.html.twig' with {topbarTitle: topbarTitle|trim} %}
{% for label, messages in app.flashes %} {% for message in messages %} {% set toastVariant = label in ['error', 'danger'] ? 'error' : (label == 'success' ? 'success' : (label == 'warning' ? 'warning' : 'info')) %} {% include 'components/_toast.html.twig' with { variant: toastVariant, message: message, close_label: 'button.close'|trans } only %} {% endfor %} {% endfor %}
{% block body %} {% if block('breadcrumb') is defined %}
{% block breadcrumb %}{% endblock %}
{% endif %} {% if block('content_header') is defined %}
{% block content_header %}{% endblock %}
{% endif %} {% block content %}{% endblock %} {% endblock %}