CakeAccounting/templates/DeAccountTransactions/index.php

51 lines
2.7 KiB
PHP
Raw Normal View History

2025-08-09 21:07:39 +00:00
<?php
/**
* @var \App\View\AppView $this
* @var iterable<\Cake\Datasource\EntityInterface> $deAccountTransactions
*/
?>
<div class="deAccountTransactions index content">
<?= $this->Html->link(__('New De Account Transaction'), ['action' => 'add'], ['class' => 'button float-right']) ?>
<h3><?= __('De Account Transactions') ?></h3>
<div class="table-responsive">
<table>
<thead>
<tr>
<th><?= $this->Paginator->sort('ledger_id') ?></th>
<th><?= $this->Paginator->sort('submitted_at') ?></th>
<th><?= $this->Paginator->sort('transaction_type_code') ?></th>
<th><?= $this->Paginator->sort('de_code') ?></th>
<th><?= $this->Paginator->sort('account_number') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($deAccountTransactions as $deAccountTransaction): ?>
<tr>
<td><?= $deAccountTransaction->hasValue('de_transaction') ? $this->Html->link($deAccountTransaction->de_transaction->ledger_transaction_type_code, ['controller' => 'DeTransactions', 'action' => 'view', $deAccountTransaction->de_transaction->ledger_id]) : '' ?></td>
<td><?= h($deAccountTransaction->submitted_at) ?></td>
<td><?= h($deAccountTransaction->transaction_type_code) ?></td>
<td><?= h($deAccountTransaction->de_code) ?></td>
<td><?= h($deAccountTransaction->account_number) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $deAccountTransaction->ledger_id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $deAccountTransaction->ledger_id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $deAccountTransaction->ledger_id], ['confirm' => __('Are you sure you want to delete # {0}?', $deAccountTransaction->ledger_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>