<table style="width: 100%;">
		<tr>
			<th scope="col" class="first"><?php echo $this->lang->line('id'); ?></th>
			<th scope="col"><?php echo $this->lang->line('date'); ?></th>
			<th scope="col" class="client"><?php echo $this->lang->line('client'); ?></th>
			<th scope="col" class="col_amount"><?php echo $this->lang->line('amount'); ?></th>
			<th scope="col"><?php echo $this->lang->line('status'); ?></th>
			<th scope="col"><?php echo $this->lang->line('generate'); ?></th>
			<th scope="col" class="last"><?php echo $this->lang->line('view'); ?></th>
		</tr>
		<?php foreach ($invoices as $invoice) { ?>

			<tr>
				<td class="first"><?php echo $invoice->invoice_id; ?></td>
				<td><?php echo format_date($invoice->invoice_date_entered); ?></td>
				<td class="client"><?php echo $invoice->client->client_name; ?></td>
				<td class="col_amount"><?php echo display_currency($invoice->invoice_total); ?></td>
				<td><?php echo $invoice->invoice_status; ?></td>
				<td><a href="javascript:void(0)" class="output_link" id="<?php echo $invoice->invoice_id; ?>"><?php echo $this->lang->line('generate'); ?></a></td>
				<td class="last"><?php echo anchor('client_center/view_invoice/invoice_id/' . $invoice->invoice_id . '/client_id/' . $invoice->client_id, $this->lang->line('view')); ?></td>
			</tr>

		<?php } ?>
</table>

<?php if ($this->mdl_invoices->page_links) { ?>
<div id="pagination">
	<?php echo $this->mdl_invoices->page_links; ?>
</div>
<?php } ?>