{# {% if (app.request.get('_route') == 'admin_pm' and is_granted('ROLE_ACCESS_PM_ADD'))
or (app.request.get('_route') == 'admin_tariffs' and is_granted('ROLE_ACCESS_TARIFFS_ADD'))
or (app.request.get('_route') == 'admin_servers' and is_granted('ROLE_ACCESS_SERVERS_ADD'))
or (app.request.get('_route') == 'admin_services' and is_granted('ROLE_ACCESS_SERVICES_ADD'))
or (app.request.get('_route') == 'admin_prices' and is_granted('ROLE_ACCESS_PRICES_ADD'))
or (app.request.get('_route') == 'admin_vouchers' and is_granted('ROLE_ACCESS_VOUCHERS_ADD'))
or (app.request.get('_route') == 'admin_usersServices' and is_granted('ROLE_ACCESS_US_ADD'))
or (app.request.get('_route') == 'admin_groups' and is_granted('ROLE_ACCESS_GROUPS_ADD'))
or (app.request.get('_route') == 'admin_users' and is_granted('ROLE_ACCESS_USERS_ADD')) %}
<div class="modal modal-right" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="modal_add" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
{% block modal_add %}{% endblock %}
</div>
</div>
</div>
{% endif %} #}
<!DOCTYPE html>
<html class="no-js" lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>{% block title %}{% endblock %}</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('assets/uploads/' ~ core.getSettings().pageLogo) }}" />
<!-- Web Font -->
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css" rel="stylesheet">
<!-- ========================= CSS here ========================= -->
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/css/LineIcons.2.0.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/css/animate.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/css/tiny-slider.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/css/glightbox.min.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/css/main.css?v=2.0.3') }}" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css">
</head>
<body data-theme="dark" style="--main-color: {{ pageColor }}">
{% block body %}{% endblock %}
<a href="#" class="scroll-top btn-hover">
<i class="lni lni-chevron-up"></i>
</a>
<script src="{{ asset('assets/js/popper.min.js') }}"></script>
<script src="{{ asset('assets/js/tippy-bundle.iife.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/js/wow.min.js') }}"></script>
<script src="{{ asset('assets/js/tiny-slider.js') }}"></script>
<script src="{{ asset('assets/js/glightbox.min.js') }}"></script>
<script src="{{ asset('assets/js/main.js') }}"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
<script type="text/javascript">
const Toast = Swal.mixin({
toast: true,
position: 'center-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
</script>
<!-- Success notifications -->
{% for message in app.flashes('add_success') %}
<script type="text/javascript">
Toast.fire({
icon: 'success',
title: 'Sukces',
text: '{{ message }}'
})
</script>
{% endfor %}
{% block javascripts %}{% endblock %}
</body>
</html>