@extends('layouts.guest')

@section('content')
    <div class="col-lg-5">
        <div class="card-group d-block d-md-flex row">
            <div class="card col-md-2 p-4 mb-0">
                <div class="card-body">
                    <h1>{{ __('تسجيل الدخول') }}</h1>
                    <br>
                    <br>
                    <form action="{{ route('login') }}" method="POST">
                        @csrf
                        <div class="input-group mb-3"><span class="input-group-text">
                      <svg class="icon">
                        <use xlink:href="{{ asset('icons/coreui.svg#cil-envelope-open') }}"></use>
                      </svg></span>
                            <input class="form-control @error('email') is-invalid @enderror" type="text" name="email"
                                   placeholder="{{ __('البريد الإلكتروني') }}" required autofocus>
                            @error('email')
                            <div class="invalid-feedback">
                                {{ $message }}
                            </div>
                            @enderror
                        </div>
                        <div class="input-group mb-4"><span class="input-group-text">
                      <svg class="icon">
                        <use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
                      </svg></span>
                            <input class="form-control @error('password') is-invalid @enderror" type="password"
                                   name="password"
                                   placeholder="{{ __('كلمة المرور') }}" required>
                            @error('password')
                            <div class="invalid-feedback">
                                {{ $message }}
                            </div>
                            @enderror
                        </div>
                        <div class="row">
                            <div class="col-6">
                                <button class="btn btn-primary px-4" type="submit">{{ __('تسجيل الدخول') }}</button>
                            </div>
                        
                        </div>
                    </form>
                </div>
            </div>
          
        </div>
    </div>
@endsection