code: public function run()
      {
          $rows = [];
          $i = 0;
          foreach ($this->attributes as $attribute) {
              $rows[] = $this->renderAttribute($attribute, $i++);
          }
  
          $options = $this->options;
          $tag = ArrayHelper::remove($options, 'tag', 'table');
          echo Html::tag($tag, implode("\n", $rows), $options);
      }
docs: Renders the detail view.
  This is the main entry of the whole detail view rendering.