<?php $__env->startSection('page-title'); ?> Inicio de sesión <?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<section class="page-header">
  <div class="page-header__bg" style="background-image: url(<?php echo e(asset('assets/images/header-auth.jpg')); ?>);"></div>
  <div class="container">
    <h2>Inicio de sesión </h2>
    <ul class="thm-breadcrumb list-unstyled">
      <li class="text-white"><a href="<?php echo e(url('/')); ?>">Inicio</a></li>
    </ul>
  </div>
</section>

<div class="container card my-4">
  <div class="row justify-content-center py-5">
    <div class="col-xs-12 col-md-6">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h2 class="headerSection">
            <i class="fa fa-user"> </i> Acceso de usuarios
          </h2>
        </div>
        <div class="panel-body">
          <form class="form-horizontal" role="form" method="POST" action="<?php echo e(url('/login')); ?>">
            <?php echo e(csrf_field()); ?>


            <div class="form-group<?php echo e($errors->has('email') ? ' has-error' : ''); ?>">
              <label for="email" class="col-md-12 control-label">Correo electrónico</label>

              <div class="col-md-12">
                <input id="email" type="email" class="form-control" name="email" value="<?php echo e(old('email')); ?>">

                <?php if($errors->has('email')): ?> 
                  <div class="alert alert-danger" role="alert">
                    <strong><?php echo e($errors->first('email')); ?></strong>
                  </div>
                <?php endif; ?>
              </div>
            </div>

            <div class="form-group<?php echo e($errors->has('password') ? ' has-error' : ''); ?>">
              <label for="password" class="col-md-12 control-label">Password</label>

              <div class="col-md-12">
                <input id="password" type="password" class="form-control" name="password">

                <?php if($errors->has('password')): ?> 
                  <div class="alert alert-danger" role="alert">
                    <strong>Debe ingresar un password válido</strong>
                  </div>
                <?php endif; ?>
              </div>
            </div>
            
            <div class="form-group">
              <div class="col-xs-12 col-md-6">
                <button type="submit" class="btn btn-block btn-success">
                  <i class="fa fa-btn fa-sign-in"></i> Ingresar
                </button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
  <?php /* <script src="<?php echo e(elixir('js/app.js')); ?>"></script> */ ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.web', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>