@can('update-user')
{!! Form::open(['route' => ['users.update', $user], 'method'=>'put', 'files' => true]) !!}
@endcan
User information
{{ Form::label('name', 'Name', ['class' => 'form-control-label']) }}
{{ Form::text('name', $user->name, ['class' => 'form-control']) }}
{{ Form::label('email', 'E-mail', ['class' => 'form-control-label']) }}
{{ Form::email('email', $user->email, ['class' => 'form-control']) }}
{{ Form::label('phone_number', 'Phone number', ['class' => 'form-control-label']) }}
{{ Form::text('phone_number', $user->phone_number, ['class' => 'form-control']) }}
@if ($user->profile_photo)
@endif
{{ Form::label('role', 'Select Role', ['class' => 'form-control-label']) }}
{{ Form::select('role', $roles, $user->roles, [ 'class'=> 'selectpicker form-control', 'placeholder' => 'Select role...']) }}
Password information
{{ Form::label('password', 'Password', ['class' => 'form-control-label']) }}
{{ Form::password('password', ['class' => 'form-control']) }}
{{ Form::label('password_confirmation', 'Confirm password', ['class' => 'form-control-label']) }}
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
@can('update-user')
{{ Form::submit('Submit', ['class'=> 'mt-5 btn btn-primary']) }}
@endcan
@can('update-user')
{!! Form::close() !!}
@endcan