@extends('template.login')
@section('content')
    <form role="form" method="POST" action="{{ route('password.reset',[$token]) }}">
        {{ csrf_field() }}
        {{--<h3 class="font-green">Forget Password ?</h3>--}}
        <h3> Ingrese su email y su nueva contraseña.</h3>

        <input type="hidden" name="token" value="{{ $token }}">

        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
            <input class="form-control password-forget" type="text" autocomplete="off" placeholder="E-Mail" name="email" value="{{ $email or old('email') }}" required autofocus>

            @if ($errors->has('email'))
                <span class="help-block">
                         <strong>{{ $errors->first('email') }}</strong>
                    </span>
            @endif
        </div>

        <div class="form-group">
            <input class="form-control " type="password" autocomplete="off" placeholder="contraseña" name="password" required>
            @if ($errors->has('password'))
                <span class="help-block">
                                            <strong>{{ $errors->first('password') }}</strong>
                                        </span>
            @endif
        </div>

        <div class="form-group">
            <input class="form-control " type="password" autocomplete="off" placeholder="confirmar contraseña" name="password_confirmation" />
            @if ($errors->has('password_confirmation'))
                <span class="help-block">
                                            <strong>{{ $errors->first('password_confirmation') }}</strong>
                                        </span>
            @endif
        </div>

        <div class="form-actions">
            <button type="button" id="back-btn" class="btn green btn-outline">Back</button>
            <button type="submit" class="btn btn-success uppercase pull-right">Submit</button>
        </div>
    </form>
@endsection
