
<?php $__env->startSection('content'); ?>
    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php echo $__env->make('dashboard.user.layouts.components.breadcrumbs', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            </div>
        </div>

        <div class="row">
            <?php echo $__env->make('dashboard.user.components.menu', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <a onclick="return confirm('Download PDF?')"
                            href="<?php echo e(route('user.account_statement.download', [$fromDate, $toDate])); ?>" target="_blank"
                            class="btn btn-success"> <i class="ti ti-download"></i> Download</a>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table id="myTable" class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>Reference ID</th>
                                        <th>Amount</th>
                                        <th>Type</th>
                                        <th>Direction</th>
                                        <th>Balance</th>
                                        <th>Description</th>
                                        <th>Date</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($loop->iteration); ?></td>
                                            <td><?php echo e($transaction->reference_id); ?></td>
                                            <td><?php echo e(currency($transaction->user->currency)); ?><?php echo e(formatAmount($transaction->amount)); ?>

                                            </td>
                                            <td><?php echo e($transaction->type->label()); ?></td>
                                            <td>
                                                <?php echo $transaction->direction->badge(); ?>

                                            </td>
                                            <td><?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($transaction->current_balance)); ?>

                                            </td>
                                            <td><?php echo e($transaction->description); ?></td>
                                            <td><?php echo e(date('d M Y, h:i:s A', strtotime($transaction->transaction_at))); ?></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                                <tfoot class="thead-dark">
                                    <tr>
                                        <td colspan="5"><strong>*** Totals ***</strong></td>
                                        <td><?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($totalAmount)); ?></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div><!-- end card-body -->
                </div><!-- end card -->
            </div>

        </div>

    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v6.0\resources\views/dashboard/user/account_statement/show.blade.php ENDPATH**/ ?>