@extends('admin.layouts.layout')

@section('container_content')

<div class="login section-padding">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-7">
                <div class="login_head">
                    <!--<h3> login </h3>-->
                    <!--<p> login to dashboard now </p>-->
                    <div class="img_logo">
                        <img src="{{asset('/assets/admin/images/logo.svg')}}" alt="">
                    </div>
                </div>

                <form method="POST" action="{{ route('store_login') }}" class="border-item rounded-0">
                    @csrf
                    {{-- <div class="form-head text-center">
                        <h3>Login</h3>
                    </div> --}}

                    @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="form-group">
                        <!--<label for="email" class="col-form-label text-md-right">{{ __('E-Mail Address') }}</label>-->
                        <label for="email" class="col-form-label text-md-right">البريد الالكترونى</label>

                        <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>

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

                    <div class="form-group">
                        <label for="password" class="col-form-label text-md-right">{{ __('Password') }}</label>
                        <label for="password" class="col-form-label text-md-right">كلمة المرور</label>

                        <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

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

                    <div class="form-group row">
                        <div class="col-md-6">
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>

                                <label class="form-check-label" for="remember">
                                    {{ __('Remember Me') }}
                                </label>
                            </div>
                        </div>
                    </div>
                    <button class="butn butn_blue mt-3">
                        <div class="cont">
                            <span>  {{ __('Login') }} </span>
                        </div>
                        <img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape">
                    </button>

                </form>
            </div>
        </div>
    </div>
</div>
<!--End-Contents-->
@endsection
