<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simonwep/pickr/_dist/themes/nano.min.css"/> -->
<!-- <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> -->
<!-- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> -->

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/sweetalert2.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/line-awesome/css/line-awesome.min.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/components-elegant-icons/css/elegant-icons.min.css"
    type="text/css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/driverjs/driver.css">

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/material.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/3024-day.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/abbott.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/abcdef.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/ambiance.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/base16-light.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/mdn-like.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/codemirror/theme/solarized.css">

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/bootstrap-rtl.min.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/persian-datepicker.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/dropzone.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/css/majoris_root.css?<?=CSS_VERSIONS?>">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/css/majoris_style.css?<?=CSS_VERSIONS?>">

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/pickr_nano.min.css?<?=CSS_VERSIONS?>">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/notyf.min.css?<?=CSS_VERSIONS?>">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/fancybox.css?<?=CSS_VERSIONS?>">

<!-- material icon pack and phosphor icons are for icon selector window -->
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/phosphor_icons.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/materialdesignicons.min.css">

<!-- this phosphor icons are for using inside panel -->
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/fonts/phosphor-icons/thin/style.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/fonts/phosphor-icons/regular/style.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/fonts/phosphor-icons/fill/style.css">

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/swiper/swiper.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/select2.min.css">
<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins-css/switchery.css" />

<link rel="stylesheet" href="<?= BASE ?>/core/_dist/plugins/quill/quill.snow.css" />


<?php 
$panel_sidebar_btn_color = "#afd7ebc4";
if(isset($panelconfig['panel_sidebar_btn_color'])){
    $panel_sidebar_btn_color = $panelconfig['panel_sidebar_btn_color'];
}

if(!isset($panelconfig['panel_sidebar_btn_txt_color'])){
    $panel_sidebar_btn_txt_color = '#003166';
    $panel_sidebar_btn_color = "#afd7ebc4";
    $panelconfig['panel_sidebar_theme'] = "light";
    $panelconfig['panel_sidebar_color'] = "#e6eef2";
}else{
    $panel_sidebar_btn_txt_color = $panelconfig['panel_sidebar_btn_txt_color'];
    if($panel_sidebar_btn_txt_color == '#ff0000'){
        //reset button and all colors to default
        $panel_sidebar_btn_txt_color = '#003166';
        $panel_sidebar_btn_color = "#afd7ebc4";
        $panelconfig['panel_sidebar_theme'] = "light";
        $panelconfig['panel_sidebar_color'] = "#e6eef2";
    }
}

?>

<style>
.sidebar-light-primary .nav-treeview>.nav-item>.nav-link.active, .sidebar-light-primary .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: <?=$panel_sidebar_btn_color?>;
    color: <?=$panel_sidebar_btn_txt_color?>;
}
.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: <?=$panel_sidebar_btn_color?>;
    color: <?=$panel_sidebar_btn_txt_color?>;
}
.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active, .sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active:hover{
    background-color: <?=$panel_sidebar_btn_color?>;
    color: <?=$panel_sidebar_btn_txt_color?>;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active{
    background-color: <?=$panel_sidebar_btn_color?>;
    color: <?=$panel_sidebar_btn_txt_color?>;
}
</style>

<script src="<?= BASE ?>/core/_dist/plugins-js/switchery.js"></script>

<?php 
if($selected_app['app_icon'] != null && trim($selected_app['app_icon']) != ""){ ?>
    <link rel="icon" type="image/png" href="<?=trim($selected_app['app_icon'])?>" />
    <link rel="apple-touch-icon" href="<?=trim($selected_app['app_icon'])?>">
<?php } else { ?>
    <link rel="icon" type="image/png" href="<?= BASE ?>/core/_dist/img/majoris_logo_256.png" />
    <link rel="apple-touch-icon" href="<?= BASE ?>/core/_dist/img/majoris_logo_256.png">
<?php } ?>


<meta name="msapplication-TileColor" content="#dae2e7">
<meta name="msapplication-config" content="<?= BASE ?>/core/_dist/img/fav/browserconfig.xml">
<meta name="theme-color" content="#dae2e7">


<script src="<?= BASE ?>/core/_dist/plugins/jquery/jquery.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/sweetalert2.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/pickr.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/notyf.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/fancybox.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/Sortable.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/jquery-sortable.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/jquery-visibility.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/qrcode.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/jquery-ui/jquery-ui-effects.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/codemirror/codemirror.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/codemirror/mode/css/css.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/codemirror/mode/xml/xml.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/codemirror/mode/htmlmixed/htmlmixed.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/driverjs/driver.js.iife.js"></script>

<script src="<?= BASE ?>/core/_dist/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/adminlte.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/persian-date.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/persian-datepicker.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/jalaali.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/jalaali.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/dropzone.js?<?=JS_VERSIONS?>"></script>
<script src="<?= BASE ?>/core/_dist/plugins-js/select2.full.min.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/swiper/swiper.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/chartjs/chart.js"></script>
<script src="<?= BASE ?>/core/_dist/plugins/quill/quill.js"></script>