@extends('layouts.app') @section('title', __( 'user.edit_user' )) @section('content')

@lang( 'user.edit_user' )

{!! Form::open(['url' => action('ManageUserController@update', [$user->id]), 'method' => 'PUT', 'id' => 'user_edit_form' ]) !!}
{!! 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('role', __( 'user.role' ) . ':*') !!} {!! Form::select('role', $roles, $user->roles->first()->id, ['class' => 'form-control select2']); !!}
{!! Form::label('password', __( 'business.password' ) . ':') !!} {!! Form::text('password', null, ['class' => 'form-control', 'placeholder' => __( 'business.password' ) ]); !!}

@lang('user.leave_password_blank')

{!! Form::label('confirm_password', __( 'business.confirm_password' ) . ':') !!} {!! Form::text('confirm_password', null, ['class' => 'form-control', 'placeholder' => __( 'business.confirm_password' ) ]); !!}
@if($ask_commision_percent)
{!! Form::label('cmmsn_percent', __( 'lang_v1.cmmsn_percent' ) . ':') !!} {!! Form::number('cmmsn_percent', $user->cmmsn_percent, ['class' => 'form-control', 'placeholder' => __( 'lang_v1.cmmsn_percent' ), 'step' => 0.01, 'required' ]); !!}
@endif
{!! Form::close() !!}
@stop @section('javascript') @endsection