@extends('flatlab::layout_login')
@section('header_title')
    {{ __('flatlab::core.enter') }} a {{ config('app.name') }}
@endsection
@section('main-content')
<form class="form-signin" role="form" method="POST" action="{{ route('login') }}">
    {{ csrf_field() }}
    <h2 class="form-signin-heading">{{ __('flatlab::core.enter') }}</h2>
    <div class="login-wrap">
        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
            <input id="email" type="text" class="form-control" name="email" value="{{ old('email') }}" placeholder="{{ __('flatlab::core.user') }}" required autofocus>
            @if ($errors->has('email'))
            <span class="help-block">
                <strong>{{ $errors->first('email') }}</strong>
            </span>
            @endif
        </div>
        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
            <input  id="password" type="password" class="form-control" name="password" placeholder="{{ __('flatlab::core.pass') }}" required >
            @if ($errors->has('password'))
            <span class="help-block">
                <strong>{{ $errors->first('password') }}</strong>
            </span>
            @endif
        </div>
        <div class="form-group d-flex justify-content-between">
            <label class="checkbox">
                <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> {{ __('flatlab::core.rememberme') }}
            </label>
            <a href="{{ route('password.request') }}"> {{ __('flatlab::core.forgot') }}</a>
        </div>
        <button class="btn btn-lg btn-login btn-block" type="submit">{{ __('flatlab::core.login')}}</button>
        @isset($social_login)
            @include('flatlab::_login.social_login')
        @endisset
        @isset($registration)
            @include('flatlab::_login.registration')
        @endisset
    </div>
</form>
@endsection
