@extends('layout')
@section('content')
<!--middle-section-->
@section('sign-in')
<div class="top-header-right pull-right">
   <a href="{{ url('/login') }}"><button class="sign-btn"><i class="fa fa-sign-in" aria-hidden="true"></i>Sign In</button></a>
</div>
@endsection
<div class="middle-section inner-middle">
   <div class="container">
      <div class="row">
         <div class="col-md-6 col-md-offset-3">
            <div class="white-block">
               <div class="login_block">
                  <h2 class="main-heading">Forget Password</h2>
                    <div class="col-sm-12">
                    @if(Session::has('msg'))
                      <div class="alert alert-danger">
                        {{ session::get('msg') }}
                      </div>
                    @endif
                    @if( $errors->any() )
                     <div class="alert alert-danger">
                        <strong>Following error(s) occured !!</strong>
                        <ul>
                           @foreach( $errors->all() as $error )
                              <li>{{ $error }}</li>
                           @endforeach
                        </ul>
                     </div>
                    @endif
                    @if (session('status'))
                      <div class="alert alert-success">
                        <b>
                          {{ session('status') }}
                        </b>
                      </div>
                    @endif
                    <form name="form" class="form-validation mt-20" method="POST" action="{{ url('/password/reset') }}">
                      {{ csrf_field() }}
                      <input type="hidden" name="token" value="{{ $token }}">

                      <div class="input-block">
                        <span class="input-icon"><img src="{{ asset('public/images/email-icon.png') }}" alt="" /></span>
                        <input id="email" type="email" placeholder="Please enter your email address!" class="input-fill underline-input" name="email" value="{{ $email or old('email') }}">
                      </div>
                      
                      <div class="input-block">
                        <span class="input-icon"><img src="{{ asset('public/images/password-icon.png') }}" alt="" /></span>
                        <input id="password" type="password" placeholder="Please Enter New Password" class="input-fill underline-input" name="password">
                      </div>

                      <div class="input-block">
                        <span class="input-icon"><img src="{{ asset('public/images/password-icon.png') }}" alt="" /></span>
                        <input id="password-confirm" type="password" placeholder="Please Re-Enter New Password" class="input-fill underline-input" name="password_confirmation">
                      </div>

                      <div class="button-block">
                        <button class="social-btn join-btn">
                          Reset Password
                        </button></a>
                        <div class="or"><span>or</span></div>
                      </div>
                    </form>      
                    <div class="button-block">
                      <a href="{{ url('/login')}}">
                        <button class="social-btn join-btn">
                          Log In
                        </button>
                      </a>
                    </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>
<!--End-middle-section--> 
@endsection



