<?php
    use App\Http\Controllers\plantillaController;
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
  <title>Stock APP | <?php echo e(Route::currentRouteName()); ?></title>

  <!-- Icono de aplicacion -->
  <link rel="shortcut icon" href="<?php echo e(asset('assets/img/favicon.ico')); ?>" />
  <!-- 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="<?php echo e(asset('assets/plugins/fontawesome-free/css/all.min.css')); ?>">
  <!-- overlayScrollbars -->  
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/overlayScrollbars/css/OverlayScrollbars.min.css')); ?>">
  <!-- Theme style -->    
  <link rel="stylesheet" href="<?php echo e(asset('assets/css/adminlte.min.css')); ?>">
  <!-- daterange picker -->
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/daterangepicker/daterangepicker.css')); ?>">  
  <!-- Tempusdominus Bootstrap 4 -->  
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css')); ?>">  
  <!-- Select2 -->  
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/select2/css/select2.min.css')); ?>">    
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css')); ?>">  
  <!-- DataTables -->
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('assets/plugins/datatables-buttons/css/buttons.bootstrap4.min.css')); ?>">

  <!-- Modifica HOVER de todas las tablas -->
  <style>
table.dataTable tbody tr:hover {
   background-color:#3f6791 !important;
}

table.dataTable thead tr {
  background-color:#7D3C98;
}
</style>
  
</head>
<body class="hold-transition dark-mode sidebar-mini sidebar-collapse layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">

  <!-- Preloader -->
  <div class="preloader flex-column justify-content-center align-items-center">
    <img class="animation__wobble" src="<?php echo e(asset('assets/img/AdminLTELogo.png')); ?>" alt="AdminLTELogo" height="60" width="60">
  </div>

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-dark">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>      
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
    
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-user"></i>          
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">Mi perfil</span>
          <div class="dropdown-divider"></div>
          <a href="<?php echo e(route('perfil')); ?>" class="dropdown-item">
            <i class="fas fa-user-edit mr-2"></i> Actualizar perfil                              
          </a>
          <div class="dropdown-divider"></div>
          <a href="<?php echo e(route('logout')); ?>" class="dropdown-item">
            <i class="fas fa-sign-out-alt mr-2"></i> Cerrar sesion   
          </a>          
      </li>
      
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="<?php echo e(route('inicio')); ?>" class="brand-link">
      <img src="<?php echo e(asset('assets/img/AdminLTELogo.png')); ?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light">Stock <b>APP</b></span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="<?php echo e(asset('assets/img/'.auth()->user()->usua_foto)); ?>"  class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="<?php echo e(route('perfil')); ?>" class="d-block"><?php echo e(auth()->user()->usua_nombreComercial); ?></a>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
               <li class="nav-header"><i class="nav-icon fas fa-folder-open"></i> MENU PRINCIPAL  </li>

               <li class="nav-item">
                <a href="<?php echo e(route('inicio')); ?>" class="<?php echo e(Route::currentRouteName() == 'inicio'  ? 'nav-link active' : 'nav-link'); ?> ">
                  <i class="nav-icon fas fa-house-user"></i>
                  <p>Incio</p>
                </a>
              </li>

              <?php $__currentLoopData = plantillaController::ObtenerMenusPermiso(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $itemPermiso): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php $menuIndividual = plantillaController::ObtenerUnicoMenuById($itemPermiso->menu_id) ?>                              

                  <li class="nav-item">
                    <a href="<?php echo e(route($menuIndividual->menu_nombreformulario)); ?>" class="<?php echo e(Route::currentRouteName() == $menuIndividual->menu_nombreformulario  ? 'nav-link active' : 'nav-link'); ?>  "><i class="<?php echo e($menuIndividual->menu_icono); ?>"></i><p><?php echo e($menuIndividual->menu_nombre); ?></p></a>
                  </li>
                  
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>            
         
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">

      <?php echo $__env->yieldContent('seccion'); ?>
    
  </div>
  <!-- /.content-wrapper -->



  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->

  <!-- Main Footer -->
  <footer class="main-footer">
    <strong>Copyright &copy; 2014-2024 <a href="https://adminlte.io">Desarrollado por MRPU</a>.</strong>
    All rights reserved.
    <div class="float-right d-none d-sm-inline-block">
      <b>Version</b> 3.2.0
    </div>
  </footer>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="<?php echo e(asset('assets/plugins/jquery/jquery.min.js')); ?>"></script>
<!-- Bootstrap -->
<script src="<?php echo e(asset('assets/plugins/bootstrap/js/bootstrap.bundle.min.js')); ?>"></script>
<!-- overlayScrollbars -->
<script src="<?php echo e(asset('assets/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js')); ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo e(asset('assets/js/adminlte.js')); ?>"></script>

<!-- PAGE PLUGINS -->
<!-- jQuery Mapael -->
<script src="<?php echo e(asset('assets/plugins/jquery-mousewheel/jquery.mousewheel.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/raphael/raphael.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/jquery-mapael/jquery.mapael.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/jquery-mapael/maps/usa_states.min.js')); ?>"></script>

<!-- ChartJS -->
<script src="<?php echo e(asset('assets/plugins/chart.js/Chart.min.js')); ?>"></script>

<!-- AdminLTE for demo purposes -->
<script src="<?php echo e(asset('assets/js/demo.js')); ?>"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="<?php echo e(asset('assets/js/pages/dashboard2.js')); ?>"></script>
<!-- date-range-picker -->    
<script src="<?php echo e(asset('assets/plugins/daterangepicker/daterangepicker.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/moment/moment.min.js')); ?>"></script> 
<!-- Tempusdominus Bootstrap 4 -->
<script src="<?php echo e(asset('assets/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js')); ?>"></script>


<!-- SwetAlerts-->
<script src="<?php echo e(asset('assets/plugins/sweetalert/sweetalert2.min.js')); ?>"></script>
<!-- END Java Script for this page -->

<?php echo $__env->yieldContent('librerias'); ?>
</body>
</html>
<?php /**PATH D:\Codigo\resources\views/plantilla.blade.php ENDPATH**/ ?>