CakeAccounting/templates/DeExternalAccountStatements/index.php

51 lines
2.7 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> $deExternalAccountStatements
*/
?>
<div class="deExternalAccountStatements index content">
<?= $this->Html->link(__('New De External Account Statement'), ['action' => 'add'], ['class' => 'button float-right']) ?>
<h3><?= __('De External Account Statements') ?></h3>
<div class="table-responsive">
<table>
<thead>
<tr>
<th><?= $this->Paginator->sort('external_account_number') ?></th>
<th><?= $this->Paginator->sort('statement_date') ?></th>
<th><?= $this->Paginator->sort('closing_balance') ?></th>
<th><?= $this->Paginator->sort('total_credit') ?></th>
<th><?= $this->Paginator->sort('total_debit') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($deExternalAccountStatements as $deExternalAccountStatement): ?>
<tr>
<td><?= h($deExternalAccountStatement->external_account_number) ?></td>
<td><?= h($deExternalAccountStatement->statement_date) ?></td>
<td><?= $this->Number->format($deExternalAccountStatement->closing_balance) ?></td>
<td><?= $this->Number->format($deExternalAccountStatement->total_credit) ?></td>
<td><?= $this->Number->format($deExternalAccountStatement->total_debit) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $deExternalAccountStatement->external_account_number]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $deExternalAccountStatement->external_account_number]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $deExternalAccountStatement->external_account_number], ['confirm' => __('Are you sure you want to delete # {0}?', $deExternalAccountStatement->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>