@extends('flatlab::layout_login')
@section('header_title')
    {{ __('flatlab::core.register') }}
@endsection
@section('main-content')
<form class="form-signin" role="form" method="POST" action="{{ route('register') }}">
    {{ csrf_field() }}
    <h2 class="form-signin-heading">{{ __('flatlab::core.register') }}</h2>
    <div class="login-wrap">
        <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
            <input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" placeholder="{{ __('flatlab::core.name') }}" required autofocus>
            @if ($errors->has('name'))
                <span class="help-block">
                    <strong>{{ $errors->first('name') }}</strong>
                </span>
            @endif
        </div>
        <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>
            @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">
            <input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ __('flatlab::core.pass_confirm') }}" required>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-lg btn-login btn-block">
                    {{ __('flatlab::core.register')}}
            </button>
            <a href="{{ route('login') }}" class=""> {{ __('flatlab::core.already_member') }}</a> 
        </div>
    </div>
</form>
@endsection
