<div class="row title justify-content-center sec-heading-block text-center">
    <div class="col-xl-8">
        <h1 class="h2 heading-title mb-0 mt-lg-0 mt-3">
            <?php echo $heading_title; ?>
        </h1>
    </div>
</div>

<div class="container-fluid">
	<div class="table-responsive">
		<table class="table table-striped transaction-table">
			<thead>
			<tr>
				<th><?php echo $text_transaction_id; ?></th>
				<th><?php echo $text_date_added; ?></th>
				<th><?php echo $text_transaction_type; ?></th>
				<th><?php echo $text_debit; ?></th>
				<th><?php echo $text_credit; ?></th>
				<th ><?php echo $text_transaction_description; ?></th>
			</tr>
			</thead>
			<?php if( sizeof((array)$transactions) ) { foreach ($transactions as $trn) { ?>
				<tr>
					<td><?php echo $trn['customer_transaction_id']; ?></td>
					<td><?php echo $trn['date_added']; ?></td>
					<td><?php echo $trn['transaction_type']; ?></td>
					<td><?php echo $trn['debit']; ?></td>
					<td><?php echo $trn['credit']; ?></td>
					<td class="col-md-4"><?php echo $trn['description']; ?></td>
				</tr>
				<?php echo $this->getHookVar('account_transactions_row_hook_var'); ?>
			<?php } } ?>
		</table>
	</div>

	<?php if ( sizeof((array)$transactions) <=0 ) { ?>
		<div><?php echo $text_error; ?></div>
	<?php } ?>
	<div class="pagination"><?php echo $pagination_bootstrap; ?></div>
</div>
<?php echo $this->getHookVar('account_transactions_hook_var'); ?>

<div class="cart_total">
    <div class="cart-info totals pull-right">
        <table class="table table-striped table-bordered">
            <tr>
                <td>
                    <span class="fw-bold"><?php echo $text_total; ?></span>
                </td>
                <td class="text-end">
                    <span class="fw-bold"><?php echo $balance_amount; ?></span>
                </td>
            </tr>
        </table>
        <div class="col-12 py-3 d-flex align-content-stretch mb-2">
            <a href="<?php echo $continue; ?>" class="btn btn-secondary" title="<?php echo_html2view($button_continue->text); ?>">
                <i class="bi bi-arrow-right"></i>
                <?php echo $button_continue->text ?>
            </a>
            <?php echo $this->getHookVar('account_transactions_button_hook_var'); ?>
        </div>
    </div>
</div>
