@extends('layout.master-mini')

@section('content')
<div class="content-wrapper d-flex align-items-center justify-content-center auth theme-one" style="background-image: url({{ url('assets/images/auth/login_1.jpg') }}); background-size: cover;">
    <div class="row w-100">
      <div class="col-lg-4 mx-auto">
        <div class="auto-form-wrapper">
          <h2 class="center">Redefinir Senha</h2>
            

                <div class="panel-body">
                    @if (session('status'))
                        <div class="alert alert-success">
                            {{ session('status') }}
                        </div>
                    @endif
                </div>

                @if ($errors->any())
                    <div class="alert alert-danger">
                        
                        @foreach ($errors->all() as $error)
                        <span>
                            {{ $error }} <br />
                        </span>
                        @endforeach
                        
                    </div><br />
                @endif

                <form role="form" method="POST" action="{{ url('admin/password/reset') }}">
                    {{ csrf_field() }}

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

                    <div class="form-group">
                        <label class="label">Endereço de e-mail</label>
                        <div class="input-group">
                            <input id="email" type="email" class="form-control" name="email" value="{{ $email }}" required readonly >
                            <div class="input-group-append">
                                <span class="input-group-text">
                                <i class="mdi mdi-check-circle-outline"></i>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="label">Password</label>
                        <div class="input-group">
                            <input id="password" type="password" autocomplete="new-password" class="form-control" name="password" required>
                            <div class="input-group-append">
                                <span class="input-group-text">
                                  <i class="mdi mdi-check-circle-outline"></i>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="label">Confirmação do Password</label>
                        <div class="input-group">
                            <input id="password-confirm" type="password" autocomplete="new-password" class="form-control" name="password_confirmation" required>
                            <div class="input-group-append">
                                <span class="input-group-text">
                                  <i class="mdi mdi-check-circle-outline"></i>
                                </span>
                            </div>
                        </div>
                    </div>
               
                    <div class="form-group d-flex justify-content-between">
                        <div class="form-check form-check-flat mt-0">
                            <button type="submit" class="btn btn-primary">
                                Redefinir Senha
                            </button>
                        </div>
                        <a href="{{ url('admin/login') }}" class="text-small forgot-password text-black">Voltar</a>
                      </div>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
