<?php
    use frontend\models\IntellectualProperty;
    use yii\helpers\Url;
    use yii\web\View;
    use yii\widgets\ActiveForm;
    use yii\widgets\Pjax;
    
    /**
     * @var View $this
     * @var IntellectualProperty[] $table
     */
?>
<div class="style cab_content_list">
  <div class="cab_content_list-dropdown">
    <div class="title_forms">Список ОІВ</div>
    <div class="style table-forms-wrapp">
      <?php
      Pjax::begin([
        'id' => 'int-property-table',
                  ]);
      ?>
      <table class="table-1 table-2" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td style="width: 213px;">Назва</td>
          <td style="width: 108px;">Дата створення</td>
          <td>Шифр</td>
          <td>Жанр</td>
          <td style="width: 107px;">Дата реєстрації</td>
          <td>Договір</td>
          <td>Тип</td>
          <td class="refactor-td"></td>
        </tr>
          <?php
              foreach ($table as $row) {
                  ?>
                <tr>
                  <td><?= $row->title ?></td>
                  <td><?= $row->creation_date ?></td>
                  <td><?= $row->code ?></td>
                  <td><?= $row->genre ?></td>
                  <td><?= $row->registration_date ?></td>
                  <td><?= $row->contract ?></td>
                  <td><?= $row->type ?></td>
                  <td><a href="<?php echo Url::to(
                          [
                              'sales',
                              'id' => $row->id,
                          ]
                      ) ?>" class="edit-table"></a><a href="#" class="remove-table remove-int-prop" data-id="<?=$row->id?>"></a></td>
                </tr>
                  <?php
              }
          ?>
      </table>
      <?php
      Pjax::end();
      ?>
    </div>
  </div>
</div>
