@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.email') }}">
        {{ 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
            <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                <input id="email" type="text" class="form-control" name="email" value="{{ old('email') }}" placeholder="{{ __('flatlab::core.user') }}" required>
                @if ($errors->has('email'))
                <span class="help-block">
                    <strong>{{ $errors->first('email') }}</strong>
                </span>
                @endif
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-lg btn-login btn-block">
                    {{ __('flatlab::core.reset_pass_link') }}
                </button>
                <a href="{{ route('login') }}" class=""> {{ __('flatlab::core.return_login') }}</a>  
            </div>
        </div>
</form>
@endsection
