<commit_before>@extends('UMViews::default')


@section('content')
    <h1>Create User</h1>
    <a href="{{ route('user.manager.index') }}" class="btn btn-danger">Back</a>
    <hr>
    @include('UMViews::errors')
    {!! Form::open(['route' => 'user.manager.store', 'class' => 'form']) !!}
        <div class="form-group">
            {!! Form::label('name', 'Name') !!}
            {!! Form::text('name', null, ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('email', 'Email') !!}
            {!! Form::text('email', null, ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('password', 'Password') !!}
            {!! Form::password('password', ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('password_confirmation', 'Confirm password') !!}
            {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
            <span class="check-password"></span>
        </div>
        <div class="form-group">
        @if (config('source.usermanager.multiple'))
           @if($roles->count())
                {!! Form::label('role', 'Roles') !!}
                <br>
                @foreach($roles as $id => $role)
                    <?php $checked = '' ?>
                    @foreach($user->roles as $usedRole)
                        @if($id == $usedRole->id)
                            <?php $checked = 'checked' ?>
                        @endif
                    @endforeach
                    <label class="checkbox-inline">
                        <input type="checkbox" id="role{{$id}}" name="role[]" value="{{ $id }}" {{ $checked }}> {{ $role }}
                    </label>
                @endforeach
            @endif
        @else
            {!! Form::label('role', 'Role') !!}
            <select name="role" id="role" class="form-control">
                <option value="">---- Select a Role ----</option>
                <optgroup label="All the available roles">
                @if($roles->count())
                    @foreach($roles as $id => $role)
                        <option value="{{ $id }}">{{ $role }}</option>
                    @endforeach
                @endif
                </optgroup>
            </select>
        @endif
        </div>
        <div class="form-group">
            {!! Form::submit('Create', ['class' => 'btn btn-success form-control']) !!}<commit_msg>Bug fixed in a view file<commit_after>@extends('UMViews::default')


@section('content')
    <h1>Create User</h1>
    <a href="{{ route('user.manager.index') }}" class="btn btn-danger">Back</a>
    <hr>
    @include('UMViews::errors')
    {!! Form::open(['route' => 'user.manager.store', 'class' => 'form']) !!}
        <div class="form-group">
            {!! Form::label('name', 'Name') !!}
            {!! Form::text('name', null, ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('email', 'Email') !!}
            {!! Form::text('email', null, ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('password', 'Password') !!}
            {!! Form::password('password', ['class' => 'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('password_confirmation', 'Confirm password') !!}
            {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
            <span class="check-password"></span>
        </div>
        <div class="form-group">
        @if (config('source.usermanager.multiple'))
           @if($roles->count())
                {!! Form::label('role', 'Roles') !!}
                <br>
                @foreach($roles as $id => $role)
                    <label class="checkbox-inline">
                        <input type="checkbox" id="role{{$id}}" name="role[]" value="{{ $id }}"> {{ $role }}
                    </label>
                @endforeach
            @endif
        @else
            {!! Form::label('role', 'Role') !!}
            <select name="role" id="role" class="form-control">
                <option value="">---- Select a Role ----</option>
                <optgroup label="All the available roles">
                @if($roles->count())
                    @foreach($roles as $id => $role)
                        <option value="{{ $id }}">{{ $role }}</option>
                    @endforeach
                @endif
                </optgroup>
            </select>
        @endif
        </div>
        <div class="form-group">
            {!! Form::submit('Create', ['class' => 'btn btn-success form-control']) !!}
{'fraction_non_alphanumeric': 0.21290458175704077, 'fraction_numerical': 0.0008406893652795292, 'mean_word_length': 1.7461050201961916, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 89, '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': '7298660', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1316, 'n_words': 252}