{!! Form::text('name', $user->name, array(
'id' => 'name_input',
'class' => 'form-control',
'maxlength' => '100',
'data-toggle' => ($errors->has('name') ? 'tooltip': null),
'title' => ($errors->has('name') ? $errors->first('name'): null),
'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::text('lastName', $user->last_name, array(
'id' => 'lastName_input',
'class' => 'form-control',
'maxlength' => '100',
'data-toggle' => ($errors->has('lastName') ? 'tooltip': null),
'title' => ($errors->has('lastName') ? $errors->first('lastName'): null),
'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::text('email', $user->email, array(
'id' => 'email_input',
'class' => 'form-control',
'maxlength' => '100',
'data-toggle' => ($errors->has('email') ? 'tooltip': null),
'title' => ($errors->has('email') ? $errors->first('email'): null),
'readonly' => 'readonly')) !!}
{!! Form::text('department', $user->department, array(
'id' => 'department_input',
'class' => 'form-control',
'maxlength' => '20',
'data-toggle' => ($errors->has('department') ? 'tooltip': null),
'title' => ($errors->has('department') ? $errors->first('department'): null),
'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::text('function', $user->function, array(
'id' => 'function_input',
'class' => 'form-control',
'maxlength' => '250',
'data-toggle' => ($errors->has('function') ? 'tooltip': null),
'title' => ($errors->has('function') ? $errors->first('function'): null),
'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::text('phoneNumber', $user->phone_number, array(
'id' => 'phoneNumber_input',
'class' => 'form-control',
'maxlength' => '20',
'data-toggle' => ($errors->has('phoneNumber') ? 'tooltip': null),
'title' => ($errors->has('phoneNumber') ? $errors->first('phoneNumber'): null),
'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::password('password', array(
'id' => 'password_input',
'class' => 'form-control',
'maxlength' => '30',
'data-toggle' => ($errors->has('password') ? 'tooltip': null),
'title' => ($errors->has('password') ? $errors->first('password'): null))) !!}
@if ($user->state !== 'pendingEmailValidation')
@endif