@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('surname', __( 'business.prefix' ) . ':') !!}
{!! Form::text('surname', $user->surname, ['class' => 'form-control', 'placeholder' => __( 'business.prefix_placeholder' ) ]); !!}
{!! Form::label('first_name', __( 'business.first_name' ) . ':*') !!}
{!! Form::text('first_name', $user->first_name, ['class' => 'form-control', 'required', 'placeholder' => __( 'business.first_name' ) ]); !!}
{!! Form::label('last_name', __( 'business.last_name' ) . ':') !!}
{!! Form::text('last_name', $user->last_name, ['class' => 'form-control', 'placeholder' => __( 'business.last_name' ) ]); !!}
{!! Form::label('email', __( 'business.email' ) . ':*') !!}
{!! Form::text('email', $user->email, ['class' => 'form-control', 'required', 'placeholder' => __( 'business.email' ) ]); !!}
{!! Form::label('confirm_password', __( 'business.confirm_password' ) . ':') !!}
{!! Form::password('confirm_password', ['class' => 'form-control', 'placeholder' => __( 'business.confirm_password' ) ]); !!}
{!! Form::label('cmmsn_percent', __( 'lang_v1.cmmsn_percent' ) . ':') !!} @show_tooltip(__('lang_v1.commsn_percent_help'))
{!! Form::text('cmmsn_percent', $user->cmmsn_percent, ['class' => 'form-control input_number', 'placeholder' => __( 'lang_v1.cmmsn_percent' )]); !!}
@endcomponent
@component('components.widget', ['title' => __('lang_v1.roles_and_permissions')])
{!! Form::label('role', __( 'user.role' ) . ':*') !!} @show_tooltip(__('lang_v1.admin_role_location_permission_help'))
{!! Form::select('role', $roles, $user->roles->first()->id, ['class' => 'form-control select2']); !!}
@lang( 'role.access_locations' ) @show_tooltip(__('tooltip.access_locations_permission'))
@show_tooltip(__('tooltip.all_location_permission'))
@foreach($locations as $location)
@endforeach
@endcomponent