@extends('template.login')
@section('content')
    <form class="login-form" method="POST" action="{{ route('login.post') }}">
        {{ csrf_field() }}
        <h3 class="font-condensed">Iniciar Sesi&oacute;n</h3>
        <div class="alert alert-danger display-hide">
            <button class="close" data-close="alert"></button>
            <span> Ingrese un usuario y password </span>
        </div>
        <div class="form-group {{ $errors->has('username') ? ' has-error' : '' }}">
            <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
            <label class="control-label visible-ie8 visible-ie9">Usuario</label>
            <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off"
                   value="{{ old('username') }}" placeholder="Usuario" name="username"/></div>
        @if ($errors->has('username'))
            <span class="help-block">
                    <strong>{{ $errors->first('username') }}</strong>
            </span>
        @endif
        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
            <label class="control-label visible-ie8 visible-ie9">Password</label>
            <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off"
                   placeholder="Password" name="password"/>
            @if ($errors->has('password'))
                <span class="help-block">
                <strong>{{ $errors->first('password') }}</strong>
            </span>
            @endif
        </div>
        <label class="rememberme check mt-checkbox mt-checkbox-outline">
            <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }} />Recordarme
            <span></span>
        </label>
        <div class="form-actions" style="padding-top: 0px; padding-bottom: 5px;">
            <button type="submit" class="btn btn-default">Ingresar</button>
            <a href="{{ route('password.request') }}" id="forget-password" class="forget-password">¿Olvid&oacute; su
                contraseña?</a>
        </div>

    </form>
@endsection
