<?php /** * @var \App\View\AppView $this * @var iterable<\Cake\Datasource\EntityInterface> $externalProductCatalogs */ ?> <div class="externalProductCatalogs index content"> <?= $this->Html->link(__('New External Product Catalog'), ['action' => 'add'], ['class' => 'button float-right']) ?> <h3><?= __('External Product Catalogs') ?></h3> <div class="table-responsive"> <table> <thead> <tr> <th><?= $this->Paginator->sort('product_catalog_id') ?></th> <th><?= $this->Paginator->sort('base_url') ?></th> <th><?= $this->Paginator->sort('api_url') ?></th> <th><?= $this->Paginator->sort('created') ?></th> <th><?= $this->Paginator->sort('deleted') ?></th> <th><?= $this->Paginator->sort('enabled') ?></th> <th class="actions"><?= __('Actions') ?></th> </tr> </thead> <tbody> <?php foreach ($externalProductCatalogs as $externalProductCatalog): ?> <tr> <td><?= $externalProductCatalog->hasValue('product_catalog') ? $this->Html->link($externalProductCatalog->product_catalog->name, ['controller' => 'ProductCatalogs', 'action' => 'view', $externalProductCatalog->product_catalog->id]) : '' ?></td> <td><?= h($externalProductCatalog->base_url) ?></td> <td><?= h($externalProductCatalog->api_url) ?></td> <td><?= h($externalProductCatalog->created) ?></td> <td><?= h($externalProductCatalog->deleted) ?></td> <td><?= h($externalProductCatalog->enabled) ?></td> <td class="actions"> <?= $this->Html->link(__('View'), ['action' => 'view', $externalProductCatalog->id]) ?> <?= $this->Html->link(__('Edit'), ['action' => 'edit', $externalProductCatalog->id]) ?> <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $externalProductCatalog->id], ['confirm' => __('Are you sure you want to delete # {0}?', $externalProductCatalog->id)]) ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <div class="paginator"> <ul class="pagination"> <?= $this->Paginator->first('<< ' . __('first')) ?> <?= $this->Paginator->prev('< ' . __('previous')) ?> <?= $this->Paginator->numbers() ?> <?= $this->Paginator->next(__('next') . ' >') ?> <?= $this->Paginator->last(__('last') . ' >>') ?> </ul> <p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p> </div> </div>