CakeAccounting/templates/DeExternalAccounts/index.php

51 lines
2.6 KiB
PHP
Raw Permalink Normal View History

2025-08-09 21:07:39 +00:00
<?php
/**
* @var \App\View\AppView $this
* @var iterable<\Cake\Datasource\EntityInterface> $deExternalAccounts
*/
?>
<div class="deExternalAccounts index content">
<?= $this->Html->link(__('New De External Account'), ['action' => 'add'], ['class' => 'button float-right']) ?>
<h3><?= __('De External Accounts') ?></h3>
<div class="table-responsive">
<table>
<thead>
<tr>
<th><?= $this->Paginator->sort('external_account_number') ?></th>
<th><?= $this->Paginator->sort('entity_type_code') ?></th>
<th><?= $this->Paginator->sort('created') ?></th>
<th><?= $this->Paginator->sort('related_model') ?></th>
<th><?= $this->Paginator->sort('related_model_fk') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($deExternalAccounts as $deExternalAccount): ?>
<tr>
<td><?= h($deExternalAccount->external_account_number) ?></td>
<td><?= h($deExternalAccount->entity_type_code) ?></td>
<td><?= h($deExternalAccount->created) ?></td>
<td><?= h($deExternalAccount->related_model) ?></td>
<td><?= $deExternalAccount->related_model_fk === null ? '' : $this->Number->format($deExternalAccount->related_model_fk) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $deExternalAccount->external_account_number]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $deExternalAccount->external_account_number]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $deExternalAccount->external_account_number], ['confirm' => __('Are you sure you want to delete # {0}?', $deExternalAccount->external_account_number)]) ?>
</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>