@extends('auth.layouts.app')
@section('title', 'Lupa Password | Career Development and Consultation (CDC)')
@section('content')
    <div class="d-flex flex-center flex-column flex-column-fluid">
        <div class="p-10 mx-auto w-lg-500px p-lg-15">
            <form action="{{ route('password.email') }}" method="POST" class="form w-100">
                @csrf
                <div class="mb-10 text-center">
                    <h1 class="mb-3 text-dark">Lupa Password ?</h1>
                    <div class="text-gray-400 fw-bold fs-4">Masukkan email Anda untuk mengatur ulang kata sandi Anda.</div>
                </div>
                @if (session('status'))
                    <div class="fv-plugins-message-container valid-feedback">
                        <span>{{ session('status') }}</span>
                    </div>
                @endif
                <div class="mb-10 fv-row">
                    <label class="text-gray-900 form-label fw-bolder fs-6">Email</label>
                    <input class="form-control form-control-solid" type="email" name="email" autocomplete="off" required
                        autofocus />
                    @if ($errors->get('email'))
                        @foreach ((array) $errors->get('email') as $message)
                            <div class="fv-plugins-message-container invalid-feedback">
                                <span>{{ $message }}</span>
                            </div>
                        @endforeach
                    @endif
                </div>
                <div class="flex-wrap d-flex justify-content-center pb-lg-0">
                    <button type="submit" class="btn btn-lg btn-primary fw-bolder me-4">
                        <span class="indicator-label">Kirim</span>
                        <span class="indicator-progress">Loading...
                            <span class="align-middle spinner-border spinner-border-sm ms-2"></span></span>
                    </button>
                    <a href="{{ route('login') }}" class="btn btn-lg btn-light-primary fw-bolder">Kembali</a>
                </div>
            </form>
        </div>
    </div>
@endsection
