@extends('flatlab::layout_login')
@section('header_title')
    {{ __('flatlab::core.reset_pass') }}
@endsection
@section('main-content')
    <form class="form-signin" role="form" method="POST" action="{{ route('password.request') }}">
        {{ csrf_field() }}
        <h2 class="form-signin-heading">{{ __('flatlab::core.reset_pass') }}</h2>
        <div class="login-wrap">
            @if (session('status'))
            <div class="alert alert-success">
                {{ session('status') }}
            </div>
            @endif
            <input type="hidden" name="token" value="{{ $token }}">
            <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                <input id="email" type="text" class="form-control" name="email" value="{{ $email or old('email') }}" placeholder="{{ __('flatlab::core.user') }}" required autofocus>
                @if ($errors->has('email'))
                <span class="help-block">
                    <strong>{{ $errors->first('email') }}</strong>
                </span>
                @endif
            </div>
            <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                <input id="password" type="password" class="form-control" name="password" placeholder="{{ __('flatlab::core.pass') }}" required>
                @if ($errors->has('password'))
                <span class="help-block">
                    <strong>{{ $errors->first('password') }}</strong>
                </span>
                @endif
            </div>
            <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
                <input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ __('flatlab::core.pass_confirm') }}" required>
                @if ($errors->has('password_confirmation'))
                <span class="help-block">
                    <strong>{{ $errors->first('password_confirmation') }}</strong>
                </span>
                @endif
            </div>
            <button type="submit" class="btn btn-lg btn-login btn-block">{{ __('flatlab::core.pass_change') }}</button>
        </div>
    </form>
@endsection