<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* base.html.twig */
class __TwigTemplate_dc3c1ba4620a80f0873c2b83e37b2e798fefe72fce60f27537e0fe587e78d89c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">
<link rel=\"manifest\" href=\"/site.webmanifest\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"theme-color\" content=\"#ffffff\">
<title>";
// line 11
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 14
echo " ";
$this->displayBlock('stylesheets', $context, $blocks);
// line 24
echo "</head>
<body>
";
// line 26
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26)) {
// line 27
echo " <div class=\"d-flex flex-column flex-md-row align-items-center p-1 px-md-4 mb-3 bg-white border-bottom shadow-sm\">
<div class=\"container-fluid\">
<nav style=\"margin-left: -10px;\" class=\"navbar px-0 navbar-expand-lg navbar-light\">
<h5 class=\"my-0 mr-md-auto font-weight-normal\">
<a class=\"navbar-brand\" href=\"/\">
<img style=\"max-height: 45px;\" src=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo_crm.png"), "html", null, true);
echo "\">
</a>
</h5>
<a class=\"px-3 text-dark\" href=\"";
// line 35
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("orders");
echo "\">
<i class=\"fa fa-list-alt\" aria-hidden=\"true\"></i> Заказы
</a>
<a class=\"px-3 text-dark\" href=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("agents");
echo "\">
<i class=\"fa fa-user\" aria-hidden=\"true\"></i> Покупатели
</a>
<div class=\"nav-item dropdown\">
<a class=\"px-3 text-dark nav-link dropdown-toggle\" href=\"#\" id=\"dropdownArchive\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"fa fa-archive\" aria-hidden=\"true\"></i> Архив
</a>
<div class=\"dropdown-menu\" aria-labelledby=\"dropdownArchive\">
<a class=\"dropdown-item\" href=\"";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("archive");
echo "\">Остатки</a>
<a class=\"dropdown-item\" href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nomen");
echo "\">Номенклатура</a>
</div>
</div>
";
// line 50
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 51
echo " <a class=\"px-3 text-dark\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users");
echo "\"><i class=\"fa fa-users\" aria-hidden=\"true\"></i>
Пользователи</a>
";
}
// line 54
echo " <a class=\"btn btn-outline-secondary\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\"><i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i>
Выйти</a>
</nav>
</div>
</div>
";
}
// line 60
$this->displayBlock('body', $context, $blocks);
// line 61
$this->displayBlock('javascripts', $context, $blocks);
// line 77
echo "</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 11
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Вам газета";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 15
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.cerulean.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/app.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/chosen.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/font-awesome/css/font-awesome.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/datepicker.min.css"), "html", null, true);
echo "\">
<!--<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css\" integrity=\"sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l\" crossorigin=\"anonymous\">
-->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 60
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 61
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 62
echo " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js\"
integrity=\"sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==\" crossorigin=\"anonymous\"></script>
<script src=\"";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/datepicker.min.js"), "html", null, true);
echo "\"/>
<script src=\"";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/ru.js"), "html", null, true);
echo "\"/>
";
// line 68
echo " <script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js\"
integrity=\"sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js\"
integrity=\"sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdn.rawgit.com/RobinHerbots/Inputmask/3.2.7/dist/min/jquery.inputmask.bundle.min.js\" type=\"text/javascript\"></script>
<script src=\"https://cdn.rawgit.com/andr-04/inputmask-multi/1.2.0/js/jquery.inputmask-multi.js\"></script>
<script src=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/app.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/chosen.jquery.min.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 259 => 75, 255 => 74, 247 => 68, 243 => 65, 239 => 64, 235 => 62, 225 => 61, 207 => 60, 192 => 19, 188 => 18, 184 => 17, 180 => 16, 175 => 15, 165 => 14, 146 => 11, 135 => 77, 133 => 61, 131 => 60, 121 => 54, 114 => 51, 112 => 50, 106 => 47, 102 => 46, 91 => 38, 85 => 35, 79 => 32, 72 => 27, 70 => 26, 66 => 24, 63 => 14, 59 => 11, 47 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">
<link rel=\"manifest\" href=\"/site.webmanifest\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"theme-color\" content=\"#ffffff\">
<title>{% block title %}Вам газета{% endblock %}</title>
{# Run `composer require symfony/webpack-encore-bundle`
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/bootstrap.min.cerulean.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/app.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/chosen.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/font-awesome/css/font-awesome.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/datepicker.min.css') }}\">
<!--<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css\" integrity=\"sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l\" crossorigin=\"anonymous\">
-->
{% endblock %}
</head>
<body>
{% if app.user %}
<div class=\"d-flex flex-column flex-md-row align-items-center p-1 px-md-4 mb-3 bg-white border-bottom shadow-sm\">
<div class=\"container-fluid\">
<nav style=\"margin-left: -10px;\" class=\"navbar px-0 navbar-expand-lg navbar-light\">
<h5 class=\"my-0 mr-md-auto font-weight-normal\">
<a class=\"navbar-brand\" href=\"/\">
<img style=\"max-height: 45px;\" src=\"{{ asset('assets/logo_crm.png') }}\">
</a>
</h5>
<a class=\"px-3 text-dark\" href=\"{{ path('orders') }}\">
<i class=\"fa fa-list-alt\" aria-hidden=\"true\"></i> Заказы
</a>
<a class=\"px-3 text-dark\" href=\"{{ path('agents') }}\">
<i class=\"fa fa-user\" aria-hidden=\"true\"></i> Покупатели
</a>
<div class=\"nav-item dropdown\">
<a class=\"px-3 text-dark nav-link dropdown-toggle\" href=\"#\" id=\"dropdownArchive\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">
<i class=\"fa fa-archive\" aria-hidden=\"true\"></i> Архив
</a>
<div class=\"dropdown-menu\" aria-labelledby=\"dropdownArchive\">
<a class=\"dropdown-item\" href=\"{{ path('archive') }}\">Остатки</a>
<a class=\"dropdown-item\" href=\"{{ path('nomen') }}\">Номенклатура</a>
</div>
</div>
{% if is_granted('ROLE_ADMIN') %}
<a class=\"px-3 text-dark\" href=\"{{ path('users') }}\"><i class=\"fa fa-users\" aria-hidden=\"true\"></i>
Пользователи</a>
{% endif %}
<a class=\"btn btn-outline-secondary\" href=\"{{ path('app_logout') }}\"><i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i>
Выйти</a>
</nav>
</div>
</div>
{% endif %}
{% block body %}{% endblock %}
{% block javascripts %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js\"
integrity=\"sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==\" crossorigin=\"anonymous\"></script>
<script src=\"{{ asset('assets/js/datepicker.min.js') }}\"/>
<script src=\"{{ asset('assets/js/ru.js') }}\"/>
{# <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js\"></script>#}
{# <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/locales/bootstrap-datepicker.ru.min.js\"></script>#}
<script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js\"
integrity=\"sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js\"
integrity=\"sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdn.rawgit.com/RobinHerbots/Inputmask/3.2.7/dist/min/jquery.inputmask.bundle.min.js\" type=\"text/javascript\"></script>
<script src=\"https://cdn.rawgit.com/andr-04/inputmask-multi/1.2.0/js/jquery.inputmask-multi.js\"></script>
<script src=\"{{ asset(\"assets/js/app.js\") }}\"></script>
<script src=\"{{ asset(\"assets/js/chosen.jquery.min.js\") }}\"></script>
{% endblock %}
</body>
</html>", "base.html.twig", "/var/www/crm.vamgazeta.ru/templates/base.html.twig");
}
}