@extends('app')

@section('title') {{trans('auth.reset_password')}} -@endsection

@section('content')
  <div class="py-5 bg-primary bg-sections">
    <div class="btn-block text-center text-white position-relative">
      <h1>{{ trans('auth.reset_password') }}</h1>
      <p>{{$settings->title}}</p>
    </div>
  </div><!-- container -->

<div class="py-5 bg-white text-center">
<div class="container margin-bottom-40">

	<div class="row">
<!-- Col MD -->
<div class="col-md-12">
	<div class="d-flex justify-content-center">

        <form action="{{ url('password/reset') }}" method="post" class="login-form text-left @if (count($errors) > 0)vivify shake @endif" name="form" id="signup_form">

          @csrf

          @include('errors.errors-forms')

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

          <div class="form-group">
            <div class="input-group">
                <span class="input-group-text"><i class="fa fa-envelope"></i></span>
            <input type="email" class="form-control" required value="{{ old('email') }}" name="email" id="username_or_email" placeholder="{{ trans('auth.email') }}" title="{{ trans('auth.email') }}" autocomplete="off">
          </div>
          </div>

          <div class="form-group">
            <div class="input-group">
                <span class="input-group-text"><i class="fa fa-key"></i></span>
            <input type="password" class="form-control" required name="password" placeholder="{{ trans('auth.password') }}" title="{{ trans('auth.password') }}" autocomplete="off">
          </div>
          </div>

          <div class="form-group">
            <div class="input-group">
                <span class="input-group-text"><i class="fa fa-lock"></i></span>
            <input type="password" class="form-control" required name="password_confirmation" placeholder="{{ trans('auth.password_confirmation') }}" title="{{ trans('auth.password_confirmation') }}" autocomplete="off">
          </div>
          </div>

          @if ($settings->captcha == 'on')
          {!! NoCaptcha::displaySubmit('signup_form', __('auth.reset_password'), [
           'data-size' => 'invisible', 
           'class' => 'btn btn-block mt-2 py-2 btn-primary font-weight-light'
           ]) !!}
 
         {!! NoCaptcha::renderJs() !!}
          @else
          <button type="submit" class="btn btn-block mt-2 py-2 btn-primary font-weight-light">{{ trans('auth.reset_password') }}</button>
          @endif
          
          @if ($settings->captcha == 'on')
            <small class="btn-block text-center">{{trans('misc.protected_recaptcha')}} <a href="https://policies.google.com/privacy" target="_blank">{{trans('misc.privacy')}}</a> - <a href="https://policies.google.com/terms" target="_blank">{{trans('misc.terms')}}</a></small>
          @endif
        </form>
     </div><!-- Login Form -->
   </div><!-- /COL MD -->
  </div><!-- ./ -->
  </div><!-- ./ -->
</div>
 <!-- container wrap-ui -->

@endsection
