@extends('lamis.layout.main')
@section('content')


 <!--Contents-->
 
      <main>
           <div class="inner_header">
            <div class="container">
                <h2>{{__('site.login')}}</h2>
            </div>
            <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="slider_shape">
        </div>
            <section class="login">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12 m-auto">
                            <div class="login-container">
                                <img src="{{url('')}}/assets/lamis/images/logo.png" class="m-auto">
                                <form method="post" action="{{url(getCurrentLocale().'/login')}}"> 
                                    @CSRF
                                    <div class="row">
                                          @if ($errors->any())
                                          <div class="col-12">
      <div  class="alert alert-danger">
          <ul>
              @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
              @endforeach
          </ul>
      </div>
  </div>
  @endif
   @if(Session::has('error'))
   <div class="col-12">
    <div  class="alert alert-danger">
<p style="color: black;">{{ Session::get('error') }}</p>
</div>
</div>
@endif
                                        <div class="col-12">
                                          <input type="email" name="email" class="form-control" placeholder="{{__('site.email')}}">
                                        </div>
                                        <div class="col-12">
                                            <input type="password" name="password" class="form-control" id="password" placeholder="{{__('site.password')}}">
                                            <i class="far fa-eye" id="togglePassword"></i>
                                            <small id="emailHelp" class="form-text text-muted forgetten">
                                                <a href="#">
                                                   {{__('site.forgetpassword')}}
                                                </a>
                                            </small>
                                        </div>
                                        <div class="col-12 pt-3 pb-3">
                                            <input type="submit"  class="login-btn" value="{{__('site.login')}}">
                                        </div>
                                    </div>
                                </form>
                                <p class="signup-label">{{__('site.new_acc_question')}} <a href="{{url(getCurrentLocale().'/regist')}}">{{__('site.new_accout')}}  </a></p>
                            </div>
                        </div>
                    </div>
                </div>
                <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="r-top wow fadeInRight slow">
                <img src="{{url('')}}/assets/lamis/images/home-topl.png" alt="" class="l-top wow fadeInLeft slow">
                <img src="{{url('')}}/assets/lamis/images/home-bottomr.png" alt="" class="r-bottom animated fadeInRight slow">
                <span class="c-shap r-bottom animated zoomIn slow"></span>
            </section>
        </main>
   
    <!--End-Contents-->





@stop