@extends('layouts.fullLayoutMaster')
{{-- page title --}}
@section('title','Forgot Password')
{{-- page scripts --}}
@section('page-styles')
<link rel="stylesheet" type="text/css" href="{{asset('css/pages/authentication.css')}}">
@endsection

@section('content')
<!-- forgot password start -->
<section class="row flexbox-container">
  <div class="col-xl-4 col-md-8 col-11">
      <div class="row m-0">
        <!-- right section image -->
        <div class="col-md-12 text-center align-self-center p-3">
          <div class="card-content">
            <img class="img-fluid" src="{{asset('images/pages/garuda.png')}}" alt="branding logo" style="max-width:200px">
          </div>
        </div>
      </div>
    <div class="card bg-authentication mb-0">
      <div class="row m-0">
        <!-- left section-forgot password -->
        <div class="col-12 px-0">
          <div class="card disable-rounded-right mb-0 p-2">
            <div class="card-header pb-1">
              <div class="card-title">
                <h4 class="text-center">Lupa Password?</h4>
              </div>
            </div>
            <div class="card-content">
              <div class="card-body">
                <div class="text-muted text-center mb-2">
                  <small>Masukkan email yang Anda gunakan saat daftar dan kami akan mengirimkan password sementara</small>
                </div>
                {{-- form --}}
                <form class="mb-2" method="POST" action="{{ route('password.email') }}">
                  @csrf
                  <div class="form-group mb-2">
                    <label class="text-bold-600" for="email">Alamat Email</label>
                    <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" autocomplete="email" autofocus placeholder="Masukkan email">
                    @if (session('status'))
                        <div class="alert alert-success mb-0 mt-1" role="alert">
                            {{ session('status') }}
                        </div>
                    @endif
                    @error('email')
                      <span class="invalid-feedback" role="alert">
                        <strong>{{ $message }}</strong>
                      </span>
                    @enderror
                  </div>
                  <button type="submit" class="btn btn-danger glow position-relative w-100">Kirim Password
                    <i id="icon-arrow" class="bx bx-right-arrow-alt"></i>
                  </button>
                </form>

                <div class="text-center">
                  <a href="{{asset('login')}}">
                    <small class="text-muted">Kembali ke Login</small>
                  </a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- forgot password ends -->
@endsection
