@extends('template.login')
@section('content')
    <form class="forget-form" action="{{ route('password.email') }}" method="POST">
        {{ csrf_field() }}
        <div style="padding-top: 2%;">
            @if (session('status'))
                <div class="alert alert-success">
                    {{ session('status') }}
                </div>
            @endif
        </div>
        <h3 class="font-condensed">Recuperar contrase&ntilde;a</h3>
        <p> Ingrese su e-mail para recuperar su contraseña. </p>
        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }} top">
            <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Email" name="email" />
            @if ($errors->has('email'))
                <span class="help-block">
                        <strong>{{ $errors->first('email') }}</strong>
                    </span>
            @endif
        </div>
        <div class="form-actions">
            <a href="{{ url()->previous() }}" type="button" class="btn green btn-outline">Regresar</a>
            <button type="submit" class="btn btn-default pull-right">Enviar</button>
        </div>
    </form>
@endsection
