original_string: private static function registerUsersAdmin()
      {
          if (!Gate::allows('users_read')) {
              return;
          }
  
          Agencms::registerRoute(
              Route::init('users', ['Users' => 'Manage Users'], '/agencms-auth/users')
                  ->icon('person')
                  ->addGroup(
                      Group::large('Details')->addField(
                          Field::number('id', 'Id')->readonly()->list(),
                          Field::string('name', 'Name')->medium()->required()->list(),
                          Field::string('email', 'Email')->medium()->required()->list(),
                          Field::related('roleids', 'Roles')->model(
                              Relationship::make('roles')
                          )
                      ),
                      Group::small('Extra')->addField(
                          Field::boolean('active', 'Active')->list(),
                          Field::image('avatar', 'Profile Picture')->ratio(600, 600, $resize = true)
                      )
                  )
          );
      }
code: private static function registerUsersAdmin()
      {
          if (!Gate::allows('users_read')) {
              return;
          }
  
          Agencms::registerRoute(
              Route::init('users', ['Users' => 'Manage Users'], '/agencms-auth/users')
                  ->icon('person')
                  ->addGroup(
                      Group::large('Details')->addField(
                          Field::number('id', 'Id')->readonly()->list(),
                          Field::string('name', 'Name')->medium()->required()->list(),
                          Field::string('email', 'Email')->medium()->required()->list(),
                          Field::related('roleids', 'Roles')->model(
                              Relationship::make('roles')
                          )
                      ),
                      Group::small('Extra')->addField(
                          Field::boolean('active', 'Active')->list(),
                          Field::image('avatar', 'Profile Picture')->ratio(600, 600, $resize = true)
                      )
                  )
          );
      }
code_tokens: private static function registerUsersAdmin ( ) { if ( ! Gate :: allows ( 'users_read' ) ) { return ; } Agencms :: registerRoute ( Route :: init ( 'users' , [ 'Users' => 'Manage Users' ] , '/agencms-auth/users' ) -> icon ( 'person' ) -> addGroup ( Group :: large ( 'Details' ) -> addField ( Field :: number ( 'id' , 'Id' ) -> readonly ( ) -> list ( ) , Field :: string ( 'name' , 'Name' ) -> medium ( ) -> required ( ) -> list ( ) , Field :: string ( 'email' , 'Email' ) -> medium ( ) -> required ( ) -> list ( ) , Field :: related ( 'roleids' , 'Roles' ) -> model ( Relationship :: make ( 'roles' ) ) ) , Group :: small ( 'Extra' ) -> addField ( Field :: boolean ( 'active' , 'Active' ) -> list ( ) , Field :: image ( 'avatar' , 'Profile Picture' ) -> ratio ( 600 , 600 , $ resize = true ) ) ) ) ; }
docstring: Register the Agencms endpoints for User administration
  
  @return void
docstring_tokens: Register the Agencms endpoints for User administration