<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
{% if sentryDSN != '' %}
{# Sentry MUST be the first element to load to work correctly #}
<script src="https://browser.sentry-cdn.com/5.12.1/bundle.min.js" integrity="sha384-y+an4eARFKvjzOivf/Z7JtMJhaN6b+lLQ5oFbBbUwZNNVir39cYtkjW1r6Xjbxg3" crossorigin="anonymous"></script>
<script>
Sentry.init({ dsn: '{{ sentryDSN }}' });
</script>
{% endif %}
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
<link rel="manifest" href="{{ asset('site.webmanifest') }}">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="{{ asset('app/assets/css/style.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/main.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/navbar.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/app.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/form.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/modals.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/organization.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/footer.css') }}">
<link rel="stylesheet" href="{{ asset('app/assets/css/datatable.css') }}">
{% block stylesheets %}{% endblock %}
<title>{% block title %}TrackPay{% endblock %}</title>
<script src="https://kit.fontawesome.com/0fe2ee508f.js" crossorigin="anonymous"></script>
<!-- Optional JavaScript -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-156900088-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-156900088-2', {
'custom_map': {'dimension1': 'firstStep'}
});
</script>
{% block head_tags %}{% endblock %}
</head>
<body>
{% if app.user %}
{% include 'app/include/navbar.html.twig' %}
{% endif %}
<div class="main container-fluid">
{% block content %}{% endblock %}
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script type="text/javascript">
/*let occurence = localStorage.getItem('occurence')
if ( occurence == null ) {
localStorage.setItem('occurence', 0);
} else {
localStorage.setItem('occurence', parseInt(occurence) + 1);
}
console.log(localStorage)
console.log(localStorage.getItem('occurence')) */
// clear session when leave browser
/*window.addEventListener("unload", function(){
$.get('{{ path('app_security_logout') }}', function(){
});
});*/
// check for forbidden request ajax and redirect to login
$( document ).ajaxError(function( event, jqxhr ) {
if (jqxhr.status === 403) {
window.location.href = '{{ path('app_page_index') }}';
}
});
</script>
{% block javascripts %}{% endblock %}
</body>
</html>