mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
577 lines
33 KiB
PHP
577 lines
33 KiB
PHP
<?php
|
|
$session = session();
|
|
$token = $session->get('token') ?? '';
|
|
$tfa = $session->get('tfa') ?? false;
|
|
$settings = $session->get('settings');
|
|
|
|
$picture = session()->get('picture');
|
|
$pulse = session()->get('pulse');
|
|
$notification = session()->get('notification');
|
|
|
|
if (!empty($token) && $tfa == false) {
|
|
//echo "<script>window.location.href = '/'; </script>";
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
|
|
<html
|
|
lang="<?= $session->get('lang') ?>"
|
|
class="h-100 light-style layout-navbar-fixed layout-menu-fixed"
|
|
dir="ltr"
|
|
data-theme="theme-default"
|
|
data-assets-path="<?= site_url('themes/vuexy/') ?>"
|
|
data-template="vertical-menu-template-no-customizer"
|
|
>
|
|
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
|
|
/>
|
|
|
|
<title><?= lang("App.dashboard_title") ?> - <?= $settings['title'] ?? '' ?></title>
|
|
|
|
<meta name="description" content=""/>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/x-icon" href="<?= site_url('themes/vuexy/img/favicon/favicon.ico') ?>"/>
|
|
<link rel="apple-touch-icon" sizes="57x57" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-57x57.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-60x60.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-72x72.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="<?= site_url('themes/vuexy/img/favicon/apple-icon-76x76.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="114x114"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-114x114.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="120x120"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-120x120.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="144x144"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-144x144.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="152x152"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-152x152.png') ?>">
|
|
<link rel="apple-touch-icon" sizes="180x180"
|
|
href="<?= site_url('themes/vuexy/img/favicon/apple-icon-180x180.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="192x192"
|
|
href="<?= site_url('themes/vuexy/img/favicon/android-icon-192x192.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="32x32"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-32x32.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="96x96"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-96x96.png') ?>">
|
|
<link rel="icon" type="image/png" sizes="16x16"
|
|
href="<?= site_url('themes/vuexy/img/favicon/favicon-16x16.png') ?>">
|
|
<link rel="manifest" href="<?= site_url('themes/vuexy/img/favicon/manifest.json') ?>">
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https:/fonts.googleapis.com"/>
|
|
<link rel="preconnect" href="https:/fonts.gstatic.com" crossorigin/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
|
|
<!-- Icons -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/fontawesome.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/tabler-icons.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/fonts/flag-icons.css') ?>"/>
|
|
|
|
<!-- Core CSS -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/rtl/core.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/rtl/theme-semi-dark.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/demo.css') ?>"/>
|
|
|
|
|
|
<!-- Vendors CSS -->
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.css') ?>"/>
|
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/node-waves/node-waves.css') ?>"/>
|
|
|
|
<!-- Page CSS -->
|
|
<?= $this->renderSection('css') ?>
|
|
|
|
<!-- Helpers -->
|
|
<script src="<?= site_url('themes/vuexy/vendor/js/helpers.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/js/config.js') ?>"></script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- Layout wrapper -->
|
|
<div class="layout-wrapper layout-content-navbar">
|
|
<div class="layout-container">
|
|
|
|
<?php include "menu.php" ?>
|
|
|
|
<!-- Layout container -->
|
|
<div class="layout-page">
|
|
|
|
<!-- Navbar -->
|
|
<nav
|
|
class="layout-navbar container-xxl navbar navbar-expand-xl navbar-detached align-items-center bg-navbar-theme"
|
|
id="layout-navbar"
|
|
>
|
|
<div class="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none">
|
|
<a class="nav-item nav-link px-0 me-xl-4" href="javascript:void(0)">
|
|
<i class="ti ti-menu-2 ti-sm"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="navbar-nav-right d-flex align-items-center" id="navbar-collapse">
|
|
<div class="navbar-nav align-items-center">
|
|
<a class="nav-link style-switcher-toggle hide-arrow" href="javascript:void(0);">
|
|
<i class="ti ti-sm"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<ul class="navbar-nav flex-row align-items-center ms-auto">
|
|
|
|
<!-- Notification -->
|
|
<li class="nav-item dropdown-notifications navbar-dropdown dropdown me-3 me-xl-1">
|
|
<a
|
|
class="nav-link dropdown-toggle hide-arrow"
|
|
href="javascript:void(0);"
|
|
data-bs-toggle="dropdown"
|
|
data-bs-auto-close="outside"
|
|
aria-expanded="false"
|
|
>
|
|
<i class="ti ti-bell ti-md"></i>
|
|
<span class="badge bg-danger rounded-pill badge-notifications">5</span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end py-0">
|
|
<li class="dropdown-menu-header border-bottom">
|
|
<div class="dropdown-header d-flex align-items-center py-3">
|
|
<h5 class="text-body mb-0 me-auto">Notification</h5>
|
|
<a
|
|
href="javascript:void(0)"
|
|
class="dropdown-notifications-all text-body"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="Mark all as read"
|
|
><i class="ti ti-mail-opened fs-4"></i
|
|
></a>
|
|
</div>
|
|
</li>
|
|
<li class="dropdown-notifications-list scrollable-container">
|
|
<ul class="list-group list-group-flush">
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<img src="../../assets/img/avatars/1.png" alt class="h-auto rounded-circle" />
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Congratulation Lettie 🎉</h6>
|
|
<p class="mb-0">Won the monthly best seller gold badge</p>
|
|
<small class="text-muted">1h ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<span class="avatar-initial rounded-circle bg-label-danger">CF</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Charles Franklin</h6>
|
|
<p class="mb-0">Accepted your connection</p>
|
|
<small class="text-muted">12hr ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item marked-as-read">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<img src="../../assets/img/avatars/2.png" alt class="h-auto rounded-circle" />
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">New Message ✉️</h6>
|
|
<p class="mb-0">You have new message from Natalie</p>
|
|
<small class="text-muted">1h ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<span class="avatar-initial rounded-circle bg-label-success"
|
|
><i class="ti ti-shopping-cart"></i
|
|
></span>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Whoo! You have new order 🛒</h6>
|
|
<p class="mb-0">ACME Inc. made new order $1,154</p>
|
|
<small class="text-muted">1 day ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item marked-as-read">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<img src="../../assets/img/avatars/9.png" alt class="h-auto rounded-circle" />
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Application has been approved 🚀</h6>
|
|
<p class="mb-0">Your ABC project application has been approved.</p>
|
|
<small class="text-muted">2 days ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item marked-as-read">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<span class="avatar-initial rounded-circle bg-label-success"
|
|
><i class="ti ti-chart-pie"></i
|
|
></span>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Monthly report is generated</h6>
|
|
<p class="mb-0">July monthly financial report is generated</p>
|
|
<small class="text-muted">3 days ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item marked-as-read">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<img src="../../assets/img/avatars/5.png" alt class="h-auto rounded-circle" />
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">Send connection request</h6>
|
|
<p class="mb-0">Peter sent you connection request</p>
|
|
<small class="text-muted">4 days ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<img src="../../assets/img/avatars/6.png" alt class="h-auto rounded-circle" />
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">New message from Jane</h6>
|
|
<p class="mb-0">Your have new message from Jane</p>
|
|
<small class="text-muted">5 days ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item list-group-item-action dropdown-notifications-item marked-as-read">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar">
|
|
<span class="avatar-initial rounded-circle bg-label-warning"
|
|
><i class="ti ti-alert-triangle"></i
|
|
></span>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<h6 class="mb-1">CPU is running high</h6>
|
|
<p class="mb-0">CPU Utilization Percent is currently at 88.63%,</p>
|
|
<small class="text-muted">5 days ago</small>
|
|
</div>
|
|
<div class="flex-shrink-0 dropdown-notifications-actions">
|
|
<a href="javascript:void(0)" class="dropdown-notifications-read"
|
|
><span class="badge badge-dot"></span
|
|
></a>
|
|
<a href="javascript:void(0)" class="dropdown-notifications-archive"
|
|
><span class="ti ti-x"></span
|
|
></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="dropdown-menu-footer border-top">
|
|
<a
|
|
href="javascript:void(0);"
|
|
class="dropdown-item d-flex justify-content-center text-primary p-2 h-px-40 mb-1 align-items-center"
|
|
>
|
|
View all notifications
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!--/ Notification -->
|
|
|
|
<!-- Language -->
|
|
<li class="nav-item dropdown-language dropdown me-2 me-xl-0">
|
|
<a class="nav-link dropdown-toggle hide-arrow" href="javascript:void(0);" data-bs-toggle="dropdown">
|
|
<i class="fi fi-es fis rounded-circle me-1 fs-3"></i>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li>
|
|
<a class="dropdown-item" href="<?= site_url('lang/es'); ?>" data-language="es">
|
|
<i class="fi fi-es fis rounded-circle me-1 fs-3"></i>
|
|
<span class="align-middle"><?= lang("App.lang_es") ?></span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item" href="<?= site_url('lang/en'); ?>" data-language="en">
|
|
<i class="fi fi-gb fis rounded-circle me-1 fs-3"></i>
|
|
<span class="align-middle"><?= lang("App.lang_en") ?></span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!--/ Language -->
|
|
|
|
<!-- User -->
|
|
<li class="nav-item navbar-dropdown dropdown-user dropdown">
|
|
<a class="nav-link dropdown-toggle hide-arrow" href="javascript:void(0);"
|
|
data-bs-toggle="dropdown">
|
|
<div class="avatar">
|
|
<img src="<?= $picture ?? '' ?>" alt class="h-auto rounded-circle"/>
|
|
</div>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li>
|
|
<a class="dropdown-item" href="#">
|
|
<div class="d-flex">
|
|
<div class="flex-shrink-0 me-3">
|
|
<div class="avatar avatar-online">
|
|
<img src="<?= $picture ?? '' ?>" alt class="h-auto rounded-circle"/>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1">
|
|
<span class="fw-semibold d-block"><?= $session->get('first_name') . ' ' . $session->get('first_name') ?></span>
|
|
<small class="text-muted">Admin</small>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<div class="dropdown-divider"></div>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item" href="<?= site_url('profile'); ?>">
|
|
<i class="ti ti-user-check me-2 ti-sm"></i>
|
|
<span class="align-middle"><?= lang("App.menu_profile") ?></span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item" href="#">
|
|
<i class="ti ti-settings me-2 ti-sm"></i>
|
|
<span class="align-middle">Settings</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<div class="dropdown-divider"></div>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item" href="<?= site_url("login/logout") ?>">
|
|
<i class="ti ti-logout me-2 ti-sm"></i>
|
|
<span class="align-middle"><?= lang("App.menu_logout") ?></span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!--/ User -->
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<!-- / Navbar -->
|
|
|
|
<!-- Content wrapper -->
|
|
<div class="content-wrapper">
|
|
<!-- Content -->
|
|
|
|
<div class="container-xxl flex-grow-1 container-p-y">
|
|
<h4 class="fw-bold py-3 mb-4">Page 1</h4>
|
|
<p>
|
|
<?= $this->renderSection('content') ?>
|
|
</p>
|
|
</div>
|
|
<!-- / Content -->
|
|
|
|
<!-- Footer -->
|
|
<footer class="content-footer footer bg-footer-theme">
|
|
<div class="container-xxl">
|
|
<div class="footer-container d-flex align-items-center justify-content-between py-2 flex-md-row flex-column">
|
|
<div>
|
|
<a href="#" target="_blank" class="fw-semibold">Safekat</a> © <?= date('Y'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<!-- / Footer -->
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
</div>
|
|
<!-- Content wrapper -->
|
|
</div>
|
|
<!-- / Layout page -->
|
|
</div>
|
|
|
|
<!-- Overlay -->
|
|
<div class="layout-overlay layout-menu-toggle"></div>
|
|
|
|
<!-- Drag Target Area To SlideIn Menu On Small Screens -->
|
|
<div class="drag-target"></div>
|
|
</div>
|
|
<!-- / Layout wrapper -->
|
|
|
|
<?= $this->renderSection('footerAdditions') ?>
|
|
|
|
<!-- Core JS -->
|
|
<!-- build:js assets/vendor/js/core.js -->
|
|
<script src="<?= site_url('themes/vuexy/vendor/libs/jquery/jquery.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/vendor/libs/popper/popper.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/vendor/js/bootstrap.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
|
|
<script src="<?= site_url('themes/vuexy/vendor/libs/node-waves/node-waves.js') ?>"></script>
|
|
|
|
<script src="<?= site_url('themes/vuexy/vendor/libs/hammer/hammer.js') ?>"></script>
|
|
|
|
<script src="<?= site_url('themes/vuexy/vendor/js/menu.js') ?>"></script>
|
|
<!-- endbuild -->
|
|
|
|
<!-- Vendors JS -->
|
|
<?= $this->renderSection('additionalExternalJs') ?>
|
|
|
|
<!-- Main JS -->
|
|
<script src="<?= site_url('themes/vuexy/js/main.js') ?>"></script>
|
|
|
|
<!-- Page JS -->
|
|
<?= sweetAlert() ?>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
var theTable;
|
|
var <?=csrf_token() ?? 'token'?>v = '<?= csrf_hash() ?>';
|
|
|
|
function yeniden(andac = null) {
|
|
if (andac == null) {
|
|
andac = <?= csrf_token() ?>v;
|
|
} else {
|
|
<?= csrf_token() ?>v = andac;
|
|
}
|
|
$('input[name="<?= csrf_token() ?>"]').val(andac);
|
|
$('meta[name="<?= config('Security')->tokenName ?>"]').attr('content', andac)
|
|
$.ajaxSetup({ headers: {'<?= config('Security')->headerName ?>': andac, 'X-Requested-With': 'XMLHttpRequest' }, <?=csrf_token()?>: andac });
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
function adjustSidebar4ContentWrapper() {
|
|
if ($('#sidebar').hasClass('d-none') && $(window).width() <= 768) {
|
|
$('#contentWrapper').addClass('full-width');
|
|
} else {
|
|
if (!$('#sidebar').hasClass('inactive')) {
|
|
$('#contentWrapper').removeClass('full-width');
|
|
}
|
|
}
|
|
}
|
|
|
|
adjustSidebar4ContentWrapper();
|
|
|
|
$('#sidebarCollapse').on('click', function () {
|
|
|
|
if ($('#sidebar').hasClass('d-none') && $(window).width() <= 768 ) {
|
|
$('#sidebar').removeClass('d-none d-sm-none d-md-block');
|
|
|
|
$('#contentWrapper').removeClass('full-width');
|
|
} else {
|
|
$('#sidebar').toggleClass('inactive');
|
|
$('#contentWrapper').toggleClass('full-width');
|
|
$('.collapse.in').toggleClass('in');
|
|
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
|
|
}
|
|
|
|
});
|
|
|
|
$(window).resize(function() {
|
|
adjustSidebar4ContentWrapper();
|
|
});
|
|
|
|
<?= $this->renderSection('additionalInlineJs') ?>
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|