<?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_530fa71e2d49db47194695f34b1d038f549dc43bfa9d30014becdef466e10db7 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>
";
// line 3
$context["route_name"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "attributes", [], "any", false, false, false, 3), "get", ["_route"], "method", false, false, false, 3);
// line 4
echo " <head>
<meta charset=\"UTF-8\">
<title>";
// line 6
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 7
$this->displayBlock('stylesheets', $context, $blocks);
// line 24
echo " </head>
<body>
<ul class=\"nav nav-tabs\">
<li class=\"nav-item\">
<a ";
// line 28
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 28, $this->source); })()) == "upload")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " href=\"/\">Subir Archivo</a>
</li>
<li class=\"nav-item\">
<a ";
// line 31
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 31, $this->source); })()) == "_shipments")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " href=\"/shipments\">Listado</a>
</li>
<li class=\"nav-item\">
<a ";
// line 34
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 34, $this->source); })()) == "_rutas")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " href=\"/rutas\">Rutas</a>
</li>
<li class=\"nav-item\">
<a ";
// line 37
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 37, $this->source); })()) == "_truck_report")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " href=\"/truckReport\">Truck Capacity Report</a>
</li>
<li class=\"nav-item\">
<a ";
// line 40
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 40, $this->source); })()) == "_grafica")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " href=\"/grafica\">Gráfica</a>
</li>
<li class=\"nav-item\">
<a ";
// line 43
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 43, $this->source); })()) == "_dashboard")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " class=\"nav-link\" href=\"/dashboard\">Dashboard</a>
</li>
";
// line 45
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_ANONYMOUS")) {
// line 46
echo " <li class=\"nav-item\">
<a ";
// line 47
if (((isset($context["route_name"]) || array_key_exists("route_name", $context) ? $context["route_name"] : (function () { throw new RuntimeError('Variable "route_name" does not exist.', 47, $this->source); })()) == "app_login")) {
echo " class=\"nav-link active\" ";
} else {
echo " class=\"nav-link\" ";
}
echo " class=\"nav-link\" href=\"/login\">Login</a>
</li>
";
}
// line 50
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 51
echo " <li>
<a class=\"nav-link\" href=\"/metas\">Metas</a>
</li>
<li>
<a class=\"nav-link\" href=\"/logout\">Salir</a>
</li>
";
}
// line 58
echo " </ul>
";
// line 59
$this->displayBlock('body', $context, $blocks);
// line 60
echo " ";
$this->displayBlock('javascripts', $context, $blocks);
// line 80
echo " </body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 6
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 "Truck Capacity RC";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
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 8
echo " <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css\" integrity=\"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk\" crossorigin=\"anonymous\">
<script src=\"https://code.jquery.com/jquery-3.5.1.min.js\" integrity=\"sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=\" crossorigin=\"anonymous\"></script>
<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\"></script>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css\" integrity=\"sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==\" crossorigin=\"anonymous\" />
<link href=\"https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css\" rel=\"stylesheet\" />
<link href=\"https://fonts.googleapis.com/css?family=Montserrat:300, 400, 600\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/vue-multiselect@2.1.6/dist/vue-multiselect.min.css\">
<style>
* {
font-family: Montserrat;
}
.row {
margin: 0px;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 59
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 60
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 61
echo " <script>
\$(document).ready(function(){
Vue.component('multiselect', window.VueMultiselect.default);
});
</script>
<script src=\"https://code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js\" integrity=\"sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js\"></script>
<script src=\"https://unpkg.com/vue-multiselect@2.1.6\"></script>
<script src=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/base.js"), "html", null, true);
echo "\"></script>
<script>
var pushEmpate = \"";
// line 75
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_push_empate");
echo "\";
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 276 => 75, 270 => 72, 257 => 61, 247 => 60, 229 => 59, 204 => 8, 194 => 7, 175 => 6, 163 => 80, 160 => 60, 158 => 59, 155 => 58, 146 => 51, 143 => 50, 133 => 47, 130 => 46, 128 => 45, 119 => 43, 109 => 40, 99 => 37, 89 => 34, 79 => 31, 69 => 28, 63 => 24, 61 => 7, 57 => 6, 53 => 4, 51 => 3, 47 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
{% set route_name = app.request.attributes.get('_route') %}
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}Truck Capacity RC{% endblock %}</title>
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css\" integrity=\"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk\" crossorigin=\"anonymous\">
<script src=\"https://code.jquery.com/jquery-3.5.1.min.js\" integrity=\"sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=\" crossorigin=\"anonymous\"></script>
<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\"></script>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css\" integrity=\"sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==\" crossorigin=\"anonymous\" />
<link href=\"https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css\" rel=\"stylesheet\" />
<link href=\"https://fonts.googleapis.com/css?family=Montserrat:300, 400, 600\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/vue-multiselect@2.1.6/dist/vue-multiselect.min.css\">
<style>
* {
font-family: Montserrat;
}
.row {
margin: 0px;
}
</style>
{% endblock %}
</head>
<body>
<ul class=\"nav nav-tabs\">
<li class=\"nav-item\">
<a {% if route_name == 'upload' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} href=\"/\">Subir Archivo</a>
</li>
<li class=\"nav-item\">
<a {% if route_name == '_shipments' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} href=\"/shipments\">Listado</a>
</li>
<li class=\"nav-item\">
<a {% if route_name == '_rutas' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} href=\"/rutas\">Rutas</a>
</li>
<li class=\"nav-item\">
<a {% if route_name == '_truck_report' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} href=\"/truckReport\">Truck Capacity Report</a>
</li>
<li class=\"nav-item\">
<a {% if route_name == '_grafica' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} href=\"/grafica\">Gráfica</a>
</li>
<li class=\"nav-item\">
<a {% if route_name == '_dashboard' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} class=\"nav-link\" href=\"/dashboard\">Dashboard</a>
</li>
{% if is_granted('IS_ANONYMOUS') %}
<li class=\"nav-item\">
<a {% if route_name == 'app_login' %} class=\"nav-link active\" {% else %} class=\"nav-link\" {% endif %} class=\"nav-link\" href=\"/login\">Login</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class=\"nav-link\" href=\"/metas\">Metas</a>
</li>
<li>
<a class=\"nav-link\" href=\"/logout\">Salir</a>
</li>
{% endif %}
</ul>
{% block body %}{% endblock %}
{% block javascripts %}
<script>
\$(document).ready(function(){
Vue.component('multiselect', window.VueMultiselect.default);
});
</script>
<script src=\"https://code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js\" integrity=\"sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49\" crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js\"></script>
<script src=\"https://unpkg.com/vue-multiselect@2.1.6\"></script>
<script src=\"{{ asset('js/base.js') }}\"></script>
<script>
var pushEmpate = \"{{path ('_push_empate')}}\";
</script>
{% endblock %}
</body>
</html>
", "base.html.twig", "/var/www/templates/base.html.twig");
}
}