<!DOCTYPE html>
<html lang="{{ app.request.locale?app.request.locale:'en' }}" data-vat="{% if app.user.shop is not null %}{{ app.user.shop.country=='es'?'21':'20'}}{% endif %}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Bak2!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
<script>var language='{{ app.request.locale}}'</script>
{{ encore_entry_script_tags('app') }}
<!-- Google tag (gtag.js) -->
<script async src=https://www.googletagmanager.com/gtag/js?id=G-C5BWR48C35></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-C5BWR48C35');
</script>
{% endblock %}
</head>
<body >
{% block header %}
<header id="header" class="fixed-top">
{% include "_layout/top.html.twig" %}
{% include "_layout/admin.html.twig" %}
{% include "_layout/header.html.twig" %}
{% if is_granted('ROLE_USER') %}
{{ render(controller(
'App\\Controller\\CategoryController::menu',{'category':app.request.query.get('category')}
)) }}
{% endif %}
</header>
{% endblock header %}
<div class="container">
{% for message in app.flashes('error') %}
<div class="alert alert-danger my-4">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class="alert alert-success my-4">
{{ message }}
</div>
{% endfor %}
<div id="mainContent" class="py-4">
{% block subnav %}{% endblock %}
{% block body %}{% endblock %}
</div>
</div>
{% block footer %}
{% include "_layout/footer.html.twig" %}
{% endblock %}
{% if is_granted('ROLE_SUPER_ADMIN') == false %}
{% if app.user.shop is not null %}
{% if userService.needsCompany(app.user,app.user.shop) %}
{{ render(controller(
'App\\Controller\\CompanyController::companyModal'
)) }}
{% endif %}
{% endif %}
{% endif %}
</body>
</html>