{{ csrf_field() }}
{{ 'Name' }}
{{ 'Email' }}
{!! $errors->first('email', '
:message
') !!}
Phone
Address
{{ $user->address ?? ''}}
{!! $errors->first('address', '
:message
') !!}
{{--
{{ 'Password' }}
--}} @can('create-user')
{{ 'Role' }}
@php $members= array('Agent'); @endphp
@foreach($roles as $role) @if(in_array($role->name,$members))
name, $user->getRoleNames()->toArray())) ? 'selected' : '' }} @endif value="{{$role->id}}">{{ ucfirst($role->name) }}
@endif @endforeach
{!! $errors->first('role_id', '
:message
') !!}
@endcan {{--
{{ 'Role' }}
@foreach($roles as $role)
name, $user->getRoleNames()->toArray())) ? 'selected' : '' }} @endif value="{{$role->id}}">{{ ucfirst($role->name) }}
@endforeach
{!! $errors->first('role_id', '
:message
') !!}
--}}