<?php
    use Carbon\Carbon;
?>
<header class="main-header">
    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">AI</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>AdminImprenta</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
     <!-- Esconde menu -----------------------------------------------------------------------
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
    ----------------------------------------------------------------------------------------->

    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">     
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-fw fa-user"></i>

              <span class="hidden-xs"><?php echo e(session()->get('nombre_usuario', 'Invitado')); ?> - <?php echo e(session()->get('rol_nombre', 'Guest')); ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <p>
                  <?php echo e(session()->get('nombre_usuario', 'Inivitado')); ?> - <?php echo e(session()->get('rol_nombre', 'Guest')); ?>

                    <?php if(auth()->guard()->check()): ?>
                        <small>Registrado desde <?php echo e(Carbon::parse(auth()->user()->created_at)->year); ?></small>
                    <?php endif; ?>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
                    <?php if(session()->get("roles") && count(session()->get("roles")) > 1): ?>
                        <div class="col-xs-6 text-center">
                            <a href="#" class="cambiar-rol">Cambiar Rol</a>
                        </div>
                    <?php endif; ?>
                </div>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                    <?php if(auth()->guard()->guest()): ?>
                        <a href="<?php echo e(route('login')); ?>" class="btn btn-default btn-flat">Login</a>
                    <?php endif; ?>
                </div>
                <div class="pull-right">
                  <a href="<?php echo e(route('logout')); ?>" class="btn btn-default btn-flat">Salir</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
        </ul>
      </div>
    </nav>
  </header>
<?php /**PATH /home/adminimprenta/public_html/enoks/resources/views/theme/lte/header.blade.php ENDPATH**/ ?>