riainvoice/application/modules/guest/views/payments_index.php
gandhimathi Bharathirajan c940cb1a2c all files
2017-09-11 14:38:03 +05:30

49 lines
1.6 KiB
PHP

<div id="headerbar">
<h1 class="headerbar-title"><?php _trans('payments'); ?></h1>
<div class="headerbar-item pull-right">
<?php echo pager(site_url('guest/payments/index'), 'mdl_payments'); ?>
</div>
</div>
<div id="content" class="table-content">
<?php $this->layout->load_view('layout/alerts'); ?>
<div id="filter_results">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th><?php _trans('date'); ?></th>
<th><?php _trans('invoice'); ?></th>
<th><?php _trans('amount'); ?></th>
<th><?php _trans('payment_method'); ?></th>
<th><?php _trans('note'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($payments as $payment) { ?>
<tr>
<td><?php echo date_from_mysql($payment->payment_date); ?></td>
<td>
<a href="<?php echo site_url('guest/invoices/view/' . $payment->invoice_id); ?>">
<?php echo $payment->invoice_number; ?>
</a>
</td>
<td><?php echo format_currency($payment->payment_amount); ?></td>
<td><?php echo $payment->payment_method_name; ?></td>
<td><?php _htmlsc($payment->payment_note); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>