<!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>