@extends('layout.adminlogin')

@section('page-css')

@endsection

@section('content')
  <main class="main">
      <section class="py-xl bg-cover bg-size--cover" style="background-image: url('{{ asset('images/h3.jpeg')}}');height:100vh">
        <span class="mask bg-tertiary alpha-6"></span>
        <div class="container d-flex align-items-center no-padding">
          <div class="col">
            <div class="row justify-content-center">
              <div class="col-lg-6">
                <div class="card bg-secondary text-white">
                  <div class="card-body">

                    <span class="clearfix"></span>

                    <h4 class="heading text-center h3 text-dark pt-3 pb-5">Fidelity Young Enterprenuer Initiative <br> <br> Reset Password </h4>
                    @if (Session::has('message'))
                          <div class="alert alert-success" role="alert">
                             {{ Session::get('message') }}
                         </div>
                     @endif

                     <form action="{{ route('reset.password.post') }}" method="POST">
                       @csrf
                       <input type="hidden" name="token" value="{{ $token }}">

                       <div class="form-group ">
                           <label for="email_address" class="text-dark">E-Mail Address</label>
                               <input type="text" id="email_address" class="form-control" name="email" required >
                               @if ($errors->has('email'))
                                   <span class="text-danger">{{ $errors->first('email') }}</span>
                               @endif
                       </div>

                       <div class="form-group ">
                           <label for="password" class="text-dark">Password</label>
                               <input type="password" id="password" class="form-control" name="password" required >
                               @if ($errors->has('password'))
                                   <span class="text-danger">{{ $errors->first('password') }}</span>
                               @endif
                       </div>

                       <div class="form-group ">
                           <label for="password-confirm" class="text-dark">Confirm Password</label>
                               <input type="password" id="password-confirm" class="form-control" name="password_confirmation" required >
                               @if ($errors->has('password_confirmation'))
                                   <span class="text-danger">{{ $errors->first('password_confirmation') }}</span>
                               @endif
                       </div>

                       <div class="text-center">
                           <button type="submit" class="btn btn-primary">
                               Reset Password
                           </button>
                       </div>
                   </form>

                  </div>
                </div>
                <h5 class="text-center text-white mt-4">Powered By <span> <a href="https://npontu.com" class="text-white">Npontu Technologies</a> </span> </h5>
              </div>
            </div>
          </div>
        </div>
      </section>
    </main>

@endsection

@section('page-js')

@endsection
