{{--@extends('layouts.app')--}}
@extends('layouts.frontend')

@section('content')
    <section id="maincontent" class="pad">
<div class="container-fluid">
    <div class="row account-login">
        <div class="col-sm-6">
            <div class="well">
                <h2>{{__('frontside.login.nu_title')}}</h2>
                <p><strong>{{__('frontside.login.nu_subtitle')}}</strong></p>
                <p><hr></p>
                <p>{{__('frontside.login.nu_text')}}</p>
                <a href="{{ locRoute('register') }}" class="btn btn-primary">{{__('frontside.login.nu_btn')}}</a></div>
        </div>
        <div class="col-sm-6">
            <div class="well">
                <h2>{{__('frontside.login.eu_title')}}</h2>
                <p><strong>{{__('frontside.login.eu_subtitle')}}</strong></p>
                <p><hr></p>
                @if (session('status'))
                    <div class="alert alert-info alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        {{ session('status') }}
                    </div>
                    @php session()->forget('status') @endphp

                @endif
                @if (session('errmessage'))
                    <div class="alert alert-danger alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        {{ session('errmessage') }}
                    </div>
                    @php session()->forget('errmessage') @endphp
                @endif
                <form class="form-horizontal" role="form" method="POST" action="/{{ tr_url('login') }}">

                    {{ csrf_field() }}

                    <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                        <label for="email" class="col-md-4 control-label">{{__('frontside.login.email')}}</label>

                        <div class="col-md-6">
                            <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>

                            @if ($errors->has('email'))
                                <span class="help-block">
                                        <strong>{{ strtr($errors->first('email'), __('frontside.login'))  }}</strong>
                                    </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                        <label for="password" class="col-md-4 control-label">{{__('frontside.login.password')}}</label>

                        <div class="col-md-6">
                            <input id="password" type="password" class="form-control" name="password" required>

                            @if ($errors->has('password'))
                                <span class="help-block">
                                        <strong>{{ strtr($errors->first('password'), __('frontside.login')) }}</strong>
                                    </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-4">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> {{__('frontside.login.remember')}}
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-8 col-md-offset-4">
                            {{--<button type="submit" class="btn btn-primary">
                                Login
                            </button>--}}
                            <input value="Login" class="btn btn-primary" type="submit">

                            <a class="btn btn-link" href="{{ locRoute('password.request') }}">{{__('frontside.login.forgot_pass')}}</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div>
    </section>
@endsection
