@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">Sign up your account</h4>
                        <form method="POST" action="{{ route('admin.register.store') }}">
                            @csrf
                            <div class="mb-3">
                                <label class="mb-1"><strong>Name</strong></label>
                                <input type="text" name="name" class="form-control @error('name') is-invalid @enderror" value="{{ old('name') }}" placeholder="Your name" required autofocus>
                                @error('name')
                                    <div class="invalid-feedback">{{ $message }}</div>
                                @enderror
                            </div>
                            <div class="mb-3">
                                <label class="mb-1"><strong>Email</strong></label>
                                <input type="email" name="email" class="form-control @error('email') is-invalid @enderror" value="{{ old('email') }}" placeholder="hello@example.com" required 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,
                                'labelClass' => 'mb-1',
                                'autocomplete' => 'new-password',
                            ])
                            @include('iqec.partials.password-field', [
                                'name' => 'password_confirmation',
                                'label' => 'Confirm Password',
                                'required' => true,
                                'labelClass' => 'mb-1',
                                'autocomplete' => 'new-password',
                            ])
                            <div class="text-center mt-4">
                                <button type="submit" class="btn btn-primary btn-block">Sign me up</button>
                            </div>
                        </form>
                        <div class="new-account mt-3">
                            <p>Already have an account? <a class="text-primary" href="{{ route('admin.login') }}">Sign in</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
