Edit User
{!! Form::open(['route'=>array('user-profile.update', $userProfile->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put']) !!}
{!! Form::close() !!}
{{$errors->first('user_code')}}
{{$errors->first('name')}}
{{$errors->first('email')}}
{{$errors->first('password')}}
{{$errors->first('m_number')}}
{!! Form::select("user_role", [''=>'Select Type']+['super_admin'=>'Super Admin','admin'=> 'Admin', 'supervisor'=>'Supervisor','advisor'=>'Advisor','spares'=>'Spares','technician'=>'Technician','salesman'=>'Salesman','hr'=>"HR",'accountant'=>'Accountant'], old("user_role",$userProfile->user_role), ['class'=>'form-control' ,'id' => 'product_id1','required'=>'required'] ) !!}
{!! Form::select("status", ['active'=> 'Active', 'inactive'=>'Inactive'], old("status", $userProfile->status), ['class'=>'form-control' ,'id' => 'status','required'=>'required'] ) !!}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id", $userProfile->branch_id), ['class'=>'form-control' ,'id' => 'branch_id', 'disabled'] ) !!}