@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('name', trans("lang.user_name"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! 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-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('email', null, ['class' => 'form-control','placeholder'=> trans("lang.user_email_placeholder")]) !!}
{{ trans("lang.user_email_help") }}
{!! Form::label('phone_number', trans("lang.user_phone_number"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('phone_number', null, ['class' => 'form-control','placeholder'=> trans("lang.user_phone_number_placeholder")]) !!}
{{ trans("lang.user_phone_number_help") }}
{!! Form::label('password', trans("lang.user_password"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! 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-md-3 control-label text-md-right mx-1']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.user_avatar_help") }}
@prepend('scripts') @endprepend @can('permissions.index')
{!! Form::label('roles[]', trans("lang.user_role_id"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('roles[]', $role, $rolesSelected, ['class' => 'select2 form-control' , 'multiple'=>'multiple']) !!}
{{ trans("lang.user_role_id_help") }}
@endcan
@if($customFields) {{--TODO generate custom field--}}
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
{{trans('lang.cancel')}}