{% trans_default_domain 'messages' %}
{% if app.user is not null %}
{% set flashMessages = app.session.flashBag.all() %}
{% endif %}
<!DOCTYPE html>
<html lang="{{ app.request.locale|split('_')[0] }}">
<head>
<meta charset="UTF-8">
<title>{{ app_name }} - {% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="{{ asset('build/backend/images/ffcb.ico', 'backend') }}" />
{{ encore_entry_link_tags('app', null, 'backend') }}
{% block stylesheets %}{% endblock %}
{{ encore_entry_script_tags('app', null, 'backend') }}
{% block javascripts %}{% endblock %}
</head>
{% if app.user is not null %}
<body
{{ stimulus_controller({'flash-message': {}, 'sidebar': {}}) }}
data-flash-message-messages-value="{{ flashMessages|length == 0 ? '{}' : flashMessages|json_encode }}"
data-turbo="false"
>
{% else %}
<body data-turbo="false">
{% endif %}
<div class="wrapper">
{% include 'backend/partials/_aside.html.twig' %}
<div class="main">
{% include 'backend/partials/_header.html.twig' %}
<main class="content">
<div class="container-fluid">
<div class="d-none" id="alert-content"></div>
{% block content %}{% endblock %}
</div>
</main>
{% include 'backend/partials/_footer.html.twig' %}
</div>
</div>
</body>
</html>