@extends('employee.layouts.layout')

@section('container_content')

    <section class="login-pg">
        <div class="content">
            <div class="row gx-0">
                <div class="col-lg-6">
                    <div class="logo-side">
                        <a href="#" class="logo">
                            <img src="{{url('')}}/assets/admin/images/logo2.svg" alt="">
                        </a>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-side">
                        <form method="POST" action="{{ route('employee_login') }}" class="form col-lg-8">
                            @csrf
                            @if (session('error'))
                                <div class="alert alert-danger">
                                    {{ session('error') }}
                                    {{ session()->forget('error') }}
                                </div>
                            @endif

                            @if (session('suspended_error'))
                                <div class="alert alert-danger">
                                    {{ session('suspended_error') }}
                                    {{ session()->forget('suspended_error') }}
                                </div>
                            @endif
                            <div class="title-wrapper">
                                <h3> {{__('dashboard.welcome_back')}} </h3>
                                <div class="text"> {{__('dashboard.login_continue')}} </div>
                            </div>
                            <div class="form-group">
                                <div class="txt mb-2"> {{__('dashboard.email')}}</div>
                                <input type="text" name="email" id="" value="{{ old('email') }}" class="form-control @error('email') is-invalid @enderror" placeholder="{{__('dashboard.enter_email')}}">

                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="form-group show_hide_password mb-2">
                                <div class="txt mb-2"> {{__('dashboard.password')}} </div>
                                <input type="password" name="password" id="" class="form-control @error('password') is-invalid @enderror" placeholder="{{__('dashboard.enter_password')}}">
                                <i class="show_pass far fa-eye-slash"></i>

                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="form-group mb-3">
                                <button type="submit" class="butn-st2 w-100"> <span> {{__('dashboard.login')}} </span> </button>
                            </div>
                            <div class="text mt-5"> ©2024 SKYBRIDGE. All rights reserved </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

<!--End-Contents-->
@endsection
