<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
      <meta http-equiv="X-UA-Compatible" content="ie=edge">
      <title>Bitacora 3.0</title>
      
      <link rel="stylesheet" href="<?php echo e(asset('fonts/dashboard/style.css')); ?>">
      <link rel="stylesheet" href="<?php echo e(asset('fonts/mas/style.css')); ?>">
      <link rel="stylesheet" href="<?php echo e(asset('fonts/mas1/style.css')); ?>">

      <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
      <link rel="stylesheet" href="<?php echo e(asset('css/bootstrap.min.css')); ?>">
      <script type="text/javascript" src="<?php echo e(asset('js/jquery-3.4.1.min.js')); ?>"></script>
      <script type="text/javascript" src="<?php echo e(asset('js/bootstrap.min.js')); ?>"></script>      
      <link rel="stylesheet" href="<?php echo e(asset('css/dashboard.css')); ?>">
      <script src="<?php echo e(asset('js/alertify.js')); ?>"></script>
      <script src="<?php echo e(asset('js/alertify.min.js')); ?>"></script>
      <link rel="stylesheet" href="<?php echo e(asset('/css/alertify.min.css')); ?>">
      <link rel="stylesheet" href="<?php echo e(asset('/css/alertify.rtl.min.css')); ?>">
      <link rel="shortcut icon" href="<?php echo e(asset('img/logo_Bitacora.ico')); ?>">  
      <link rel="stylesheet" href="<?php echo e(asset('/css/style.css')); ?>">
      <style>
        .nav-item:hover{ background-color: #b6b6b6; }
        .header-menu{ color: #b5b5b5 !important; }
      </style>
  </head>
  <body>
      <div class="page-wrapper chiller-theme toggled">
        <a id="show-sidebar" class="btn btn-sm btn-dark" href="#">
          <i class="fas fa-bars"></i>
        </a>
        <nav id="sidebar" class="sidebar-wrapper">
          <div class="sidebar-content">
            <div class="sidebar-brand">
              <a href="#"> Bitacora 3.0</a>
              <div id="close-sidebar">
                <i class="fas fa-times"></i>
              </div>
            </div>
            <div class="sidebar-header">

              <?php $__currentLoopData = $datos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usuario): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              
              <div class="user-pic">
                <span class="user-role" style="color:#ffff;">Permisos: </span>
                <?php if($usuario->MZ == 1): ?>
                <span class="badge badge-pill badge-warning">mz</span>
                <?php endif; ?>
                <?php if($usuario->VZ == 1): ?>
                <span class="badge badge-pill badge-info">vz</span>
                <?php endif; ?>
                <?php if($usuario->LZ == 1): ?>
                <span class="badge badge-pill badge-danger">lz</span>
                <?php endif; ?>
                <?php if($usuario->MX == 1): ?>
                <span class="badge badge-pill badge-light">mx</span>
                <?php endif; ?>              
              </div>    
            
              <div class="user-info">
                <span class="user-role"><strong>Nombre:</strong> <?php echo e($usuario->Nombre); ?></span>
                <span class="user-role"><strong>Tipo:</strong> <?php echo e($usuario->Tipo_usuario); ?></span>
                <span class="user-role"><strong>Ubicación:</strong> <?php echo e($usuario->ubicacion); ?></span>
              </div>
            </div>

            <!-- sidebar-search  -->
            <div class="sidebar-menu">
              <ul>
                <li class="header-menu"><span>Referencias</span></li>
                  <li class="sidebar"><a href="<?php echo e(url('GenRef')); ?>"><i class="icon-file" style="font-size:26px;"></i><span> Generar referencias</span></a></li>
                  <li class="sidebar"><a href="<?php echo e(url('ref')); ?>"><i class="icon-cabinet" style="font-size:26px;" ></i><span> Ver referencias</span></a></li>
                
                <li class="header-menu"><span>Rectificaciones</span></li>
                  <li class="sidebar"><a href="<?php echo e(URL('GenRec')); ?>"><i class="icon-file" style="font-size:26px;"></i><span> Generar.rec antigua</span></a></li>
                  <li class="sidebar"><a href="<?php echo e(url('rec')); ?>"><i class="icon-cabinet1" style="font-size:26px;"></i><span> Ver rectificaciones</span></a></li>

                <li class="header-menu"><span>Clientes</span></li>
                  
                  <li class="sidebar"><a href="<?php echo e(url('listClientes')); ?>"><i class="icon-cabinet" style="font-size:26px;"></i><span> Lista de clientes</span></a></li>

                <?php if(auth()->user()->hasRole('Administrador')): ?>
                  <li class="header-menu"><span>Usuarios</span></li>
                    <li class="sidebar"><a href="<?php echo e(url('ListUsu')); ?>"><i class="icon-users" style="font-size:26px;"></i><span> Lista de usuarios</span></a></li>
                <?php endif; ?> 
              </ul>
            </div>
          </div>

          <div class="sidebar-footer">
            <a  href="<?php echo e(route('logout')); ?>" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" class="btn btn-sm" style="background-color:#640000; color:#fff;">
                <i class="fa fa-power-off"><strong class="ml-2" style="font-size:17px;">Salir</strong></i>
            </a>
            <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;"><?php echo csrf_field(); ?></form>
          </div>
        </nav>
        <main class="page-content">
          <?php echo $__env->make('clientes.mdl_registroClientes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
          <?php echo $__env->yieldContent('contenido'); ?>
        </main>

      </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </body>
  <script src="<?php echo e(asset('js/dashboard.js')); ?>"></script>
</html><?php /**PATH C:\xampp\htdocs\Bitacora\resources\views/complementos/dashboard.blade.php ENDPATH**/ ?>