@extends('auth.app')
@push('title')
    {{$pageTitle}}
@endpush
@section('content')
    <section class=" p-3 h-100 d-flex align-items-center">
        <div class="bda-w-card">
            <div class="bda-mb-30">
                <a href="{{route('frontend-settings')}}">
                    <img class="bda-logo-main" src="{{ getImageUrl(getOption('white_logo')) }}" alt="logo">
                </a>
            </div>
            <h5 class="bda-fs-40 title-light bda-mb-10">{{__("Sign Up")}}</h5>
            <form method="POST" action="{{ route('register') }}">
                @csrf
                <p class="bda-mb-30">{{__("I have an account")}} <a class="title-light"
                                                                    href="{{route('login')}}">{{__("Sign In")}}</a>

                <div class="bda-from-box">
                    <label class="bda-text-label">{{__('Name')}}</label>
                    <input type="text" name="name" placeholder="{{__("Name")}}"
                           class="bda-from-control @error('name') is-invalid @enderror">
                    @error('name')
                    <span class="fst-normal invalid-feedback mb-3 ms-1 mt-0 mt-2 pt-0" role="alert">
                            <strong>{{ $message }}</strong>
                        </span>
                    @enderror
                </div>
                <div class="bda-from-box">
                    <label class="bda-text-label">{{__('Email')}}</label>
                    <input type="email" name="email" placeholder="{{__("Email")}}"
                           class="bda-from-control @error('email') is-invalid @enderror">
                    @error('email')
                    <span class="fst-normal invalid-feedback mb-3 ms-1 mt-0 mt-2 pt-0" role="alert">
                            <strong>{{ $message }}</strong>
                        </span>
                    @enderror
                </div>
                <div class="bda-from-box">
                    <label class="bda-text-label">{{__("Password")}}</label>
                    <input type="password"
                           class="bda-from-control password-field @error('password') is-invalid @enderror"
                           id="passwordInput" name="password" placeholder="{{__("Enter your password")}}">
                    <i class="ri-eye-line fw"></i>
                    @error('password')
                    <span class="fst-normal invalid-feedback mb-3 ms-1 mt-0 mt-2 pt-0" role="alert">
                            <strong>{{ $message }}</strong>
                        </span>
                    @enderror
                </div>

                <div class=" mt-3">
                    <button class="bda-btu-theme" type="submit">{{__("Registration")}}</button>
                </div>

                <div
                    class="bd-other-login-area bda-mt-30 {{ !(getOption('google_login_status') == ACTIVE || getOption('facebook_login_status') == ACTIVE) ? 'd-none' : '' }}">
                    <p class="bd-continue-wrapper">{{__("Or continue with")}}</p>
                </div>
                <div class="row bda-mt-10">
                    <div class="col-md-6 {{ getOption('google_login_status') != ACTIVE ? 'd-none' : ''}}">
                        <a href="{{ route('login.google') }}" class="bda-social-login-social-btu">
                            <img src="{{getImageUrl('assets/images/google.png')}}" alt="">
                            <span>{{__("Google")}}</span>
                        </a>
                    </div>
                    <div class="col-md-6 {{ getOption('facebook_login_status') != ACTIVE ? 'd-none' : ''}}">
                        <a href="{{route('login.facebook')}}" class="bda-social-login-social-btu">
                            <img src="{{getImageUrl('assets/images/facebook.png')}}" alt="">
                            <span>{{__("Facebook")}}</span>
                        </a>
                    </div>
                </div>
            </form>
        </div>
    </section>
@endsection
