@extends('layouts.admin-auth')

@section('content')
    <div class="row justify-content-center">
        <div class="col-xl-10 col-lg-12 col-md-9">
            <div class="card o-hidden border-0 shadow-lg my-5">
                <div class="card-body p-0">
                    <!-- Nested Row within Card Body -->
                    <div class="row">
                        <div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
                        <div class="col-lg-6">
                            <div class="p-5">
                                <div class="text-center">
                                    <h1 class="h4 text-gray-900 mb-4">{{__("Welcome Back!")}}</h1>
                                </div>
                                <form class="user" action="{{ route('admin.auth.login.connexion') }}" method="POST">
                                    @csrf

                                    <input type="hidden" name="guard" value="admin">
                                    <div class="form-group">
                                        <input type="text" name="loginId" value="{{ old('loginId') }}"
                                               class="form-control form-control-users"
                                               placeholder="Enter Your Email or Username">
                                        @error('loginId')<span class="text-danger">{{ $message }}</span>@enderror
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" value="{{ old('password') }}"
                                               class="form-control form-control-userw"
                                               placeholder="Enter Your Password">
                                        @error('password')<span class="text-danger">{{ $message }}</span>@enderror
                                    </div>
                                    <div class="form-group">
                                        <div class="custom-control custom-checkbox small">
                                            <input type="checkbox" class="custom-control-input"
                                                   name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
                                            <label class="custom-control-label" for="remember">
                                                {{__("Remember Me")}}
                                            </label>
                                        </div>
                                    </div>
                                    <button class="btn btn-app btn-user btn-block rounded" type="submit" name="login">
                                        {{__("Login")}}
                                    </button>
                                </form>
                                <hr>
                                <div class="text-center">
                                    <a class="small" href="{{ route('admin.auth.forgot_password') }}">{{__("Forgot Password")}}?</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
