@extends('iqec.layouts.guest')

@section('content')
    <div class="col-md-6">
        <div class="authincation-content">
            <div class="row no-gutters">
                <div class="col-xl-12">
                    <div class="auth-form">
                        <div class="text-center mb-3">
                            <a href="{{ route('admin.login') }}"><img src="{{ asset('public/images/logo-full.png') }}" alt=""></a>
                        </div>
                        <h4 class="text-center mb-4">Reset Password</h4>
                        <form method="POST" action="{{ route('admin.password.update') }}">
                            @csrf
                            <input type="hidden" name="token" value="{{ $token }}">
                            <div class="mb-3">
                                <label><strong>Email</strong></label>
                                <input type="email" name="email" class="form-control @error('email') is-invalid @enderror" value="{{ old('email', request('email')) }}" required autofocus autocomplete="email" autocapitalize="none" spellcheck="false">
                                @error('email')
                                    <div class="invalid-feedback">{{ $message }}</div>
                                @enderror
                            </div>
                            @include('iqec.partials.password-field', [
                                'name' => 'password',
                                'label' => 'Password',
                                'required' => true,
                                'autocomplete' => 'new-password',
                            ])
                            @include('iqec.partials.password-field', [
                                'name' => 'password_confirmation',
                                'label' => 'Confirm Password',
                                'required' => true,
                                'autocomplete' => 'new-password',
                            ])
                            <div class="text-center">
                                <button type="submit" class="btn btn-primary btn-block">Reset Password</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
