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

<div class="eunis index large-9 medium-8 columns content">
<div class="col-md-3">
    <h3><?= __('Eunis') ?></h3>
	</div>
    <!--<div><?= $this->Html->link(__('New Euni'), ['action' => 'add']) ?></div>
<div class="search-filter"><?= $this->Search->filterForm($searchFilters) ?></div>-->
<div class="col-md-9">
    <div class="btn-link"><?= $this->Html->link(__('New EUNI'), ['action' => 'add'],['class' => 'green-btn']) ?></div>
	</div>
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th scope="col"><?= $this->Paginator->sort('Sr No') ?></th>
                <th scope="col"><?= $this->Paginator->sort('company_id') ?></th>
                <th scope="col"><?= $this->Paginator->sort('EUNI') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php $srlno = ($this->request->params['paging']['Eunis']['page']-1) * $this->request->params['paging']['Eunis']['perPage'];
            foreach ($eunis as $euni): $srlno++; ?>
            <tr>
                <td><?= $srlno ?></td>
                <td><?= $euni->has('company') ? $this->Html->link($euni->company->company, ['controller' => 'Companies', 'action' => 'view', $euni->company->id]) : '' ?></td>
                <td><?= h($euni->eunisno) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['action' => 'view', $euni->id],['class' => 'view']) ?>
                    <?= $this->Html->link(__('Edit'), ['action' => 'edit', $euni->id],['class' => 'edit']) ?>
                    <!--<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $euni->id],['class' => 'delete'], ['confirm' => __('Are you sure you want to delete # {0}?', $euni->id)]) ?>-->
                </td>
            </tr>
            <?php 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->first(__('First', true), array('class' => 'disabled')); ?>
            <?= $this->Paginator->prev('< ' . __('previous',true), array('class' => 'disabled')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next' . ' >',true), array('class' => 'disabled')) ?>
		 <?=  $this->Paginator->last(__('Last', true), array('class' => 'disabled')); ?>
        </ul>
        <p><?= $this->Paginator->counter() ?></p>
    </div>
</div>
