@extends('frontend.layout.app')

  
@section('content')
<div class="mt-5">
    @if($errors->any())
        <div class="col-12">
            <!-- @foreach ($errors->all() as $error)
                <div class="alert alert-danger">{{ $error }}</div>
             @endforeach -->
         </div>
    @endif
    @if(Session()->has('error'))
      <!-- <div class="alert alert-danger">{{ Session('error') }}</div> -->
    @endif
    @if(Session()->has('success'))
      <!-- <div class="alert alert-success">{{ Session('success') }}</div> -->
    @endif
 </div> 
 <div class="container">
  <div class="row justify-content-center">
      <div class="col-md-4">
        <div class="card shadow-sm">
          <div class="card-body">

          <h3 class="card-title mb-4 text-center">Login</h3>
            
           <form action="{{ route('login') }}" method="post" >
               @csrf
              <div class="mb-4">
                <label for="email" class="form-label">Email address</label>
                <input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}" required autofocus>
              </div>
              <div class="mb-4">
                <label for="password" class="form-label">Password</label>
                <input type="password" class="form-control" id="password" name="password" required>
              </div>
             <div class="mb-4 col-md-12 logindiv">
               <p>
                 @lang('Already User?')
                  <a href="{{ route('register') }}" class="golden-text">@lang('Dont have account')</a>
               </p>
              </div>
  
               <button type="submit" class="btn btn-primary">Submit</button>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
@endsection