@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>
        <label class="checkbox">
            <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> {{ __('flatlab::core.rememberme') }}
            <span class="pull-right">
            <a href="{{ route('password.request') }}"> {{ __('flatlab::core.forgot') }}</a>
            </span>
        </label>
        <button class="btn btn-lg btn-login btn-block" type="submit">{{ __('flatlab::core.login')}}</button>
        @isset($social_login)
            @include('flatlab::partials.login.social_login')
        @endisset
        @isset($registration)
            @include('flatlab::partials.login.registration')
        @endisset
    </div>
</form>
@endsection