@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('name', trans("lang.user_name"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=> trans("lang.user_name_placeholder")]) !!}
{{ trans("lang.user_name_help") }}
{!! Form::label('email', trans("lang.user_email"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::text('email', null, ['class' => 'form-control','placeholder'=> trans("lang.user_email_placeholder")]) !!}
{{ trans("lang.user_email_help") }}
{!! Form::label('password', trans("lang.user_password"), ['class' => 'col-3 control-label text-right']) !!}
{!! Form::password('password', ['class' => 'form-control','placeholder'=> trans("lang.user_password_placeholder")]) !!}
{{ trans("lang.user_password_help") }}
{!! Form::label('avatar', trans("lang.user_avatar"), ['class' => 'col-3 control-label text-right']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.user_avatar_help") }}
@prepend('scripts') @endprepend
{!! Form::label('roles[]', trans("lang.user_role_id"),['class' => 'col-3 control-label text-right']) !!}
{!! Form::select('roles[]', $role, $rolesSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.user_role_id_help") }}
@if($customFields) {{--TODO generate custom field--}}
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
{{trans('lang.cancel')}}