{!! Element::mainbloc('open', __('app.user_informations'), 'fas fa-table') !!}
{!! Twb::admin_text('login',__('app.user_login'),$user->login,[], $errors->first('login')) !!}
{!! Twb::admin_password('password',__('app.user_password_if_updated'),'',[], $errors->first('password')) !!}
{!! Twb::admin_password('password_confirmation',__('app.user_password_confirmation_if_updated'),'',[], $errors->first('password_confirmation')) !!}
{!! Element::mainbloc('close') !!}
{!! Element::mainbloc('open', __('app.user_attrs'), 'fas fa-table') !!}
{!! Twb::admin_select('active', __('app.user_type'),$user->active,[], $errors->first('active'), '','', ['1' => __('app.active'),'0' => __('app.inactive')]) !!}
{!! Twb::admin_select('is_admin', __('app.user_isadmin'),$user->is_admin,[], $errors->first('active'), '','', ['1' => __('app.yes'),'0' => __('app.no')]) !!}
{!! Twb::admin_select('lang', __('app.user_lang'),@$user->lang,[], $errors->first('active'), '','', Helper::arrayLang()) !!}
{!! Form::button(__('app.update'), ['type' => 'submit','','class' => 'btn btn-block btn-lg btn-success','id' => 'updateButton' ]) !!}
{!! Element::mainbloc('close') !!}
{!! Form::close() !!}
{!! Element::mainbloc('open', __('app.user_delete'), 'fas fa-table') !!}
{{ __('app.danger_delete_user')}}
{!! Form::button(__('app.delete_user'), ['type' => 'button','','class' => 'btn btn-lg btn-danger','id' => 'deleteButton' ]) !!}
{!! Element::mainbloc('close') !!}
@stop
@section('footer')
@stop