{!! Form::model($user, ['method' => 'PATCH','route' => ['users.update', $user->id],'id'=>'users_form','files'=> true,'enctype'=>'multipart/form-data']) !!}
@error('image')
@error('roles')
{{ $message }}
@enderror
{!! Form::close() !!}
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control form-control-sm')) !!}
@error('name')
{{ $message }}
@enderror
{{ $message }}
@enderror
Contact Information
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control form-control-sm', 'id' => 'user_email_id')) !!}
@error('email')
{{ $message }}
@enderror
{!! Form::text('phone_code', $user->phone_code, array('placeholder' => 'Code','class' => 'form-control form-control-sm','maxlength'=>3)) !!}
{!! Form::text('phone', null, array('placeholder' => 'Contact Number','class' => 'form-control form-control-sm')) !!}
@error('phone_code')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
Company Information
{!! Form::text('designation', null, array('placeholder' => 'Designation','class' => 'form-control form-control-sm')) !!}
@error('designation')
{{ $message }}
@enderror
{!! Form::text('staff_code', null, array('placeholder' => 'Staff Code','class' => 'form-control form-control-sm','id'=>'staff_code')) !!}
@error('designation')
{{ $message }}
@enderror
{!! Form::select('companies', $companies,$company, array('class' => 'form-control form-control-sm','id'=>'company_id')) !!}
@error('companies')
{{ $message }}
@enderror
@foreach($roles as $value)
id}}>{{$value->name}} {{ Form::checkbox('roles[]', $value->id, in_array($value->id, $userRole) ? true : false, array('class' => 'name','title'=>$value->name)) }}
@endforeach
@if($user->image)
@else
@endif
@include('components.dashboard.vertical')