{% extends 'base.html.twig' %}
{% block title %} SOFT99 - Панель администратора {% endblock %}
{% block body %}
{% if app.user %}
{%
set user = {
id: app.user.id,
email: app.user.email,
role: app.user.getRoles()
}
%}
{% set notice = NULL %}
{% for message in app.flashes('notice') %}
{% set notice = message %}
{% endfor %}
<div id="app">
<v-application
:auth="{{ user|json_encode }}"
:notice="{{ notice|json_encode }}"
/>
</div>
{% endif %}
{% endblock %}