<?php
/**
 * baserCMS :  Based Website Development Project <https://basercms.net>
 * Copyright (c) NPO baser foundation <https://baserfoundation.org/>
 *
 * @copyright     Copyright (c) NPO baser foundation
 * @link          https://basercms.net baserCMS Project
 * @since         5.0.0
 * @license       https://basercms.net/license/index.html MIT License
 */

/**
 * [ADMIN] プラグイン一覧　テーブル
 * @checked
 * @unitTest
 * @noTodo
 */
?>


<table class="list-table bca-table-listup" id="ListTable">
  <thead class="bca-table-listup__thead">
  <tr class="list-tool bca-table-listup__thead-th bca-table-listup__thead-th--select">
    <th class="bca-table-listup__thead-th">&nbsp;</th>
    <th class="bca-table-listup__thead-th"><?php echo __d('baser_core', 'プラグイン名') ?></th>
    <th class="bca-table-listup__thead-th"><?php echo __d('baser_core', 'バージョン') ?></th>
    <th class="bca-table-listup__thead-th"><?php echo __d('baser_core', '説明') ?></th>
    <th class="bca-table-listup__thead-th"><?php echo __d('baser_core', '開発者') ?></th>
    <th class="bca-table-listup__thead-th"><?php echo __d('baser_core', '登録日') ?><br><?php echo __d('baser_core', '更新日') ?>
    </th>
  </tr>
  </thead>
  <tbody>
  <?php if (!empty($baserPlugins)): ?>
    <?php foreach($baserPlugins as $data): ?>
      <?php $this->BcBaser->element('Plugins/index_row_market', ['data' => $data]) ?>
    <?php endforeach; ?>
  <?php else: ?>
    <tr>
      <td colspan="6">
        <p class="no-data"><?php echo __d('baser_core', 'baserマーケットのテーマを読み込めませんでした。') ?></p>
      </td>
    </tr>
  <?php endif; ?>
  </tbody>
</table>
