<nav class="large-3 medium-4 columns" id="actions-sidebar">
      <?= $this->element('admin_sidebar') ?>
</nav>

<div class="products index large-9 medium-8 columns content">
    <h3><?= __('Products') ?></h3>
   <!-- <div class="btn-link"><?= $this->Html->link(__('Add Product'), ['action' => 'add'],['class'=>'green-btn', 'title' => 'Add New Product', 'type' => 'button']) ?></div>-->
    <table class="tbl-wrapper" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th scope="col"><?= $this->Paginator->sort('id') ?></th>
                <th scope="col"><?= $this->Paginator->sort('Product Name') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php $j=1;
foreach ($products as $product): ?>
            <tr>
                <td><?= $j ?></td>
                <td><?= h($product->productname) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['action' => 'view', $product->id],['class' => 'view','title'=>__('View')]) ?>
                   <!-- <?= $this->Html->link(__('Edit'), ['action' => 'edit', $product->id],['class' => 'delete','title'=>__('Delete'),'class' => 'edit','title'=>__('Edit')]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $product->id], ['class' => 'delete','title'=>__('Delete'),'confirm' => __('Are you sure you want to delete # {0}?', $product->id)]) ?>-->
                </td>
            </tr>
            <?php $j++;
endforeach; ?>
        </tbody>
    </table>
<div class="btn-link"><input type="button" value="Back" onclick="window.history.back()" class="green-btn" /> </div>
    <div class="paginator">
        <ul class="pagination">
            <?= $this->Paginator->prev('< ' . __('previous')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next') . ' >') ?>
        </ul>
        <p><?= $this->Paginator->counter() ?></p>
    </div>
</div>
