<?php
session_start();
if (!isset($_SESSION['usuario'])) {
  header('Location: ../login/index.php');
}
?>

<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>SCAE | Inicio</title>

    <link rel="shortcut icon" href="vistas/assets/dist/img/LOGO.png" type="image/x-icon">

<!-- ============================================================================================================= -->
<!-- REQUIRED CSS -->
<!-- ============================================================================================================= -->
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet"
    href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="vistas/assets/plugins/fontawesome-free/css/all.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">


<!-- SweetAlert2 -->
<link rel="stylesheet" href="vistas/assets/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css">
<!-- Jquery CSS -->
<link rel="stylesheet" href="vistas/assets/plugins/jquery-ui/css/jquery-ui.css">

<!-- Bootstrap 5 -->
<link href="vistas/assets/dist/bs5/css/bootstrap.min.css" rel="stylesheet">
    <!-- ============================================================
    =ESTILOS PARA USO DE DATATABLES JS
    ===============================================================-->
    <!-- link rel="stylesheet" href="https://cdn.datatables.net/1.11.0/css/jquery.dataTables.min.css" -->
    <link rel="stylesheet" href="vistas/assets/plugins/datatables-bs5/css/jquery.dataTables.min.css">
    <!-- link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.dataTables.min.css" -->
    <link rel="stylesheet" href="vistas/assets/plugins/datatables-bs5/css/responsive.dataTables.min.css">
    <!-- link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.0.0/css/buttons.dataTables.min.css" -->
    <link rel="stylesheet" href="vistas/assets/plugins/datatables-bs5/css/buttons.dataTables.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="vistas/assets/dist/css/adminlte.min.css">
    <!-- Estilos personzalidos -->
    <link rel="stylesheet" href="vistas/assets/dist/css/plantilla.css">

    <!-- RELOJ ------------------------------------------------ -->

    <!-- link rel="stylesheet" href="vistas/assets/dist/css/font-awesome.min.css" -->
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="vistas/vistas/assets/dist/css/styles.css">
    <!-- ============================================================================================================= -->
    <!-- REQUIRED SCRIPTS -->
    <!-- ============================================================================================================= -->

    <!-- jQuery -->
    <script src="vistas/assets/plugins/jquery/jquery.min.js"></script>
    
    <!-- Bootstrap 4 -->
    <script src="vistas/assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
    
    <!-- ChartJS -->
    <script src="vistas/assets/plugins/chart.js/Chart.min.js"></script>

    <!-- SweetAlert2 -->
    <script src="vistas/assets/plugins/sweetalert2/sweetalert2.min.js"></script>

    <!-- jquery UI -->
    <script src="vistas/assets/plugins/jquery-ui/js/jquery-ui.js"></script>

    <!-- JS Bootstrap 5 -- \vistas\assets\plugins\bootstrap\js -->
    <!-- script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></!-->
    <script src="vistas/assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>


    
    <!-- ============================================================
    =LIBRERIAS PARA USO DE DATATABLES JS vistas/assets/plugins/datatables-bs5/js
    ===============================================================-->
    <!-- script src="https://cdn.datatables.net/1.11.0/js/jquery.dataTables.min.js"></!-->    
    <script src="vistas/assets/plugins/datatables-bs5/js/jquery.dataTables.min.js"></script>    
    
    <!-- script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></!-->
    <script src="vistas/assets/plugins/datatables-bs5/js/dataTables.responsive.min.js"></script>
    <!-- ============================================================
    =LIBRERIAS PARA EXPORTAR A ARCHIVOS
    ===============================================================-->
    <!-- script src="https://cdn.datatables.net/buttons/2.0.0/js/dataTables.buttons.min.js"></!-->
    <script src="vistas/assets/plugins/datatables-bs5/js/dataTables.buttons.min.js"></script>
    <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></!-->
    <script src="vistas/assets/plugins/datatables-bs5/js/jszip.min.js"></script>
    <!-- script src="https://cdn.datatables.net/buttons/2.0.0/js/buttons.html5.min.js"></!-->
    <script src="vistas/assets/plugins/datatables-bs5/js/buttons.html5.min.js"></script>
    <!-- script src="https://cdn.datatables.net/buttons/2.0.0/js/buttons.print.min.js"></!-->
    <script src="vistas/assets/plugins/datatables-bs5/js/buttons.print.min.js"></script>
    <!-- AdminLTE App -->
    <script src="vistas/assets/dist/js/adminlte.min.js"></script>
    
    <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></!-->
    <script src="vistas/assets/dist/bs5/js/popper.min.js"></script>
    
    <!-- DE LA CAMARA ------------------------------------->
    <link href="vistas/assets/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="vistas/assets/dist/css/stylos.css" rel="stylesheet">


    <!-- AdminLTE App -->
    <script src="vistas/assets/dist/js/adminlte.min.js"></script>
</head>

<body class="hold-transition sidebar-mini">
    <div class="wrapper">
        <?php
        include "modulos/navbar.php";
        include "modulos/aside.php";

        ?>

        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
           
            <?php include "dashboard.php";   ?>     
        </div>
        <!-- /.content-wrapper -->

        <?php  include "modulos/footer.php";    ?>

    </div>
    <!-- ./wrapper -->
    <script>
        function CargarContenido(pagina_php, contenedor){
            $("." + contenedor).load(pagina_php);
        }
    </script>
</body>

</html>