<!doctype html>
<html lang="fa">
<head>
<title>
{% block title %}{% endblock %}
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="{{ asset('panel-beta/global.css') }}">
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<link rel="icon" href="{{ asset('favicon.png') }}?v=2" type="image/png">
{% block stylesheets %}{% endblock %}
{% set hour = 'now'|date('H') %}
</head>
<body style="font-family: sahel;" class="preset-gradient-11" data-pc-layout="color-header" data-pc-theme="{% if hour >= 6 and hour <= 17 %}light{% else %}dark{% endif %}"
data-pc-sidebar-caption="true" data-pc-direction="rtl" data-pc-preset="preset-1">
<nav class="pc-sidebar">
<div class="navbar-wrapper">
<div class="m-header">
<a href="{{ path('app_auth_handler') }}" class="b-brand text-white">
{{ getEnv('APP_NAME') }}
</a>
</div>
{{ render(controller('App\\Controller\\Render\\PanelNavbarController::renderDesktopSideBar',{'routeName' : app.request.attributes.get('_route')})) }}
</div>
</nav>
{% include 'panel/modules/generic/_header.html.twig' %}
<div class="pc-container">
<div class="pc-content">
<div class="page-header">
<div class="page-block">
<div class="row align-items-center">
<div class="col-12 col-md-6">
<div class="page-header-title">
<h2 class="mb-0">{{ block('title') }}</h2>
</div>
</div>
<div class="col-12 col-md-6">
<div class="text-end">
{% block btn %}{% endblock %}
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div>
{% for message in app.flashes('success') %}
<div class="alert show alert-success" role="alert">{{ message|raw }}</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert show alert-danger" role="alert">{{ message|raw }}</div>
{% endfor %}
{% for message in app.flashes('warning') %}
<div class="alert show alert-warning" role="alert">{{ message|raw }}</div>
{% endfor %}
</div>
<div class="col-md-12">
{% block body %}{% endblock %}
</div>
</div>
</div>
</div>
{% include 'panel/modules/generic/_footer.html.twig' %}
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{ asset('panel-beta/simplebar.min.js') }}"></script>
<script src="{{ asset('panel-beta/js/plugins/popper.min.js') }}"></script>
<script src="{{ asset('panel-beta/js/plugins/simplebar.min.js') }}"></script>
<script src="{{ asset('panel-beta/js/plugins/bootstrap.min.js') }}"></script>
<script src="{{ asset('panel-beta/js/fonts/custom-font.js') }}"></script>
<script src="{{ asset('panel-beta/js/pcoded.js') }}?v=2"></script>
<script src="{{ asset('panel-beta/js/plugins/feather.min.js') }}"></script>
<script src="{{ asset('panel-beta/js/plugins/dropzone-amd-module.min.js') }}"></script>
<script>
function changebrand(presetColor) {
removeClassByPrefix(document.querySelector('body'), 'preset-');
document.querySelector('body').classList.add(presetColor);
}
localStorage.setItem('layout', 'color-header');
$('.user-avtar').on('click', function () {
$('.dropdown-user-profile').css('display', 'block')
})
$('.pc-container').on('click', function () {
$('.dropdown-user-profile').css('display', 'none')
})
</script>
<script>layout_change('dark');</script>
<script>change_box_container('false');</script>
<script>layout_caption_change('true');</script>
<script>layout_rtl_change('true');</script>
<script>preset_change('preset-1');</script>
<script>main_layout_change('vertical');</script>
<script src="{{ asset('clipboard-polyfill.js') }}"></script>
<script>
function copyText(text) {
clipboard.writeText(text);
}
</script>
{% block javascripts %}{% endblock %}
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script>
$(document).ready(function() {
$('.select2').select2();
});
</script>
</body>
</html>