@extends('auth.layouts.app')
@section('title', 'Daftar | 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-600px p-lg-15">
            <form method="POST" action="{{ route('register') }}" class="form w-100">
                @csrf
                <div class="mb-10 text-center">
                    <h1 class="mb-3 text-dark">Pendaftaran Akun</h1>
                    <div class="text-gray-400 fw-bold fs-4">Sudah punya akun?
                        <a href="{{ route('login') }}" class="link-primary fw-bolder">Masuk</a>
                    </div>
                </div>
                {{-- <button type="button" class="mb-10 btn btn-light-primary fw-bolder w-100">
                    <img alt="Logo" src="{{ asset('assets/student/media/svg/brand-logos/google-icon.svg') }}"
                        class="h-20px me-3" />Sign in with Google</button>
                <div class="mb-10 d-flex align-items-center">
                    <div class="border-gray-300 border-bottom mw-50 w-100"></div>
                    <span class="mx-2 text-gray-400 fw-bold fs-7">OR</span>
                    <div class="border-gray-300 border-bottom mw-50 w-100"></div>
                </div> --}}
                <div class="row fv-row mb-7">
                    <div class="col-xl-6">
                        <label class="form-label fw-bolder text-dark fs-6">Nama Depan</label>
                        <input class="form-control form-control-lg form-control-solid" type="text" placeholder=""
                            name="first_name" autocomplete="off" value="{{ old('firstName') }}" />
                        @error('first_name')
                            <div class="fv-plugins-message-container invalid-feedback">
                                <span>{{ $message }}</span>
                            </div>
                        @enderror
                    </div>
                    <div class="col-xl-6">
                        <label class="form-label fw-bolder text-dark fs-6">Nama Belakang</label>
                        <input class="form-control form-control-lg form-control-solid" type="text" placeholder=""
                            name="last_name" autocomplete="off" value="{{ old('lastName') }}" />
                        @error('last_name')
                            <div class="fv-plugins-message-container invalid-feedback">
                                <span>{{ $message }}</span>
                            </div>
                        @enderror
                    </div>
                </div>
                <div class="fv-row mb-7">
                    <label class="form-label fw-bolder text-dark fs-6">Email</label>
                    <input class="form-control form-control-lg form-control-solid" type="email" placeholder=""
                        name="email" autocomplete="off" />
                    @error('email')
                        <div class="fv-plugins-message-container invalid-feedback">
                            <span>{{ $message }}</span>
                        </div>
                    @enderror
                </div>
                <div class="mb-10 fv-row" data-kt-password-meter="true">
                    <div class="mb-1">
                        <label class="form-label fw-bolder text-dark fs-6">Password</label>
                        <div class="mb-3 position-relative">
                            <input class="form-control form-control-lg form-control-solid" type="password" placeholder=""
                                name="password" autocomplete="off" />
                            <span class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2"
                                data-kt-password-meter-control="visibility">
                                <i class="bi bi-eye-slash fs-2"></i>
                                <i class="bi bi-eye fs-2 d-none"></i>
                            </span>
                        </div>
                        @error('password')
                            <div class="mb-3 fv-plugins-message-container invalid-feedback">
                                <span>{{ $message }}</span>
                            </div>
                        @enderror
                        <div class="mb-3 d-flex align-items-center" data-kt-password-meter-control="highlight">
                            <div class="rounded flex-grow-1 bg-secondary bg-active-success h-5px me-2"></div>
                            <div class="rounded flex-grow-1 bg-secondary bg-active-success h-5px me-2"></div>
                            <div class="rounded flex-grow-1 bg-secondary bg-active-success h-5px me-2"></div>
                            <div class="rounded flex-grow-1 bg-secondary bg-active-success h-5px"></div>
                        </div>
                    </div>
                    <div class="text-muted">Gunakan 8 karakter atau lebih dengan campuran huruf, angka, dan simbol.</div>
                </div>
                <div class="mb-10 fv-row">
                    <label class="form-label fw-bolder text-dark fs-6">Konfirmasi Password</label>
                    <input class="form-control form-control-lg form-control-solid" type="password" placeholder=""
                        name="password_confirmation" autocomplete="off" />
                    @error('password_confirmation')
                        <div class="fv-plugins-message-container invalid-feedback">
                            <span>{{ $message }}</span>
                        </div>
                    @enderror
                </div>
                <div class="text-center">
                    <button type="submit" class="btn btn-lg btn-primary w-100">
                        <span class="indicator-label">Daftar</span>
                        <span class="indicator-progress">Loading...
                            <span class="align-middle spinner-border spinner-border-sm ms-2"></span></span>
                    </button>
                </div>
            </form>
        </div>
    </div>
@endsection
