{{$name}} {{ __(' / Roles')}}

@if($editable)
Role
@endif

@if($editable)@endif @php $lineCount=1; $roles = $user->roles()->orderBy('roles.rolename')->get()->toArray(); @endphp @if(old()) @php $roles=old('role_lines'); // dd($roles); @endphp @endif @if($roles) @foreach ($roles as $key=>$role) @if(old('role_lines')) @php $lineCount=$key; $role = App\Models\Role::find([$role['id']])->first(); $role = $role?$role->toArray():array(); @endphp @endif @if($editable) @endif @php ++$lineCount; @endphp @endforeach @endif
# {{__('Role Name')}} {{__('Description')}}
{{ isset($role['rolename'])?$role['rolename']:''}} @if ($errors->has('role_lines.'.$lineCount.'.id')) {{ $errors->first('role_lines.'.$lineCount.'.id') }} @endif {{ isset($role['description'])?$role['description']:''}}
@if( empty($roles) )
-- No Any User Role --
@endif