<commit_before>{{-- Master Layout --}}
@extends('cortex/foundation::frontend.layouts.auth')

{{-- Page Title --}}
@section('title')
    {{ config('app.name') }} » {{ trans('cortex/fort::common.register') }}
@stop

{{-- Scripts --}}
@push('scripts')
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
@endpush

{{-- Main Content --}}
@section('content')

    <div class="register-box">
        <div class="register-logo">
            <a href="{{ route('frontend.home') }}"><b>{{ config('app.name') }}</b></a>
        </div>
        <!-- /.register-logo -->
        <div class="register-box-body">
            <p class="register-box-msg">{{ trans('cortex/fort::common.register_new_account') }}</p>

            {{ Form::open(['url' => route('frontend.auth.register.process')]) }}

            <div class="form-group has-feedback{{ $errors->has('username') ? ' has-error' : '' }}">
                {{ Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => trans('cortex/fort::common.username'), 'required' => 'required', 'autofocus' => 'autofocus']) }}
                <span class="fa fa-font form-control-feedback"></span>

                @if ($errors->has('username'))<commit_msg>Add clientside laravel form validation<commit_after>{{-- Master Layout --}}
@extends('cortex/foundation::frontend.layouts.auth')

{{-- Page Title --}}
@section('title')
    {{ config('app.name') }} » {{ trans('cortex/fort::common.register') }}
@stop

{{-- Scripts --}}
@push('scripts')
    {!! JsValidator::formRequest(Cortex\Fort\Http\Requests\Frontend\RegistrationProcessRequest::class) !!}

    <script>
        $(function () {
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%' // optional
            });
        });
    </script>
@endpush

{{-- Main Content --}}
@section('content')

    <div class="register-box">
        <div class="register-logo">
            <a href="{{ route('frontend.home') }}"><b>{{ config('app.name') }}</b></a>
        </div>
        <!-- /.register-logo -->
        <div class="register-box-body">
            <p class="register-box-msg">{{ trans('cortex/fort::common.register_new_account') }}</p>

            {{ Form::open(['url' => route('frontend.auth.register.process')]) }}

            <div class="form-group has-feedback{{ $errors->has('username') ? ' has-error' : '' }}">
                {{ Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => trans('cortex/fort::common.username'), 'required' => 'required', 'autofocus' => 'autofocus']) }}
                <span class="fa fa-font form-control-feedback"></span>

                @if ($errors->has('username'))
{'fraction_non_alphanumeric': 0.22852292020373516, 'fraction_numerical': 0.0013582342954159593, 'mean_word_length': 2.738578680203046, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6958283', 'n_tokens_mistral': 915, 'n_tokens_neox': 878, 'n_words': 142}