<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Bank Statement</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                background-color: #fff;
                color: #000;
                margin: 0;
                padding: 0;
            }

            .statement-container {
                width: 900px;
                margin: 20px auto;
                border: 1px solid #000;
                padding: 20px;
                box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
            }

            header {
                display: flex;
                justify-content: space-between;
                border-bottom: 2px solid #000;
                padding-bottom: 10px;
            }

            .bank-details h1 {
                margin: 0;
                font-size: 24px;
                color: #000;
            }

            .bank-details p {
                margin: 5px 0;
                line-height: 1.4;
                color: #000;
            }

            .statement-info {
                text-align: right;
            }

            .statement-info p {
                margin: 5px 0;
                color: #000;
            }

            .account-info {
                display: flex;
                justify-content: space-between;
                margin: 20px 0;
                border-bottom: 2px solid #000;
                padding-bottom: 10px;
            }

            .account-info>div {
                flex: 1;
                color: #000;
            }

            .statement-period,
            .account-number {
                text-align: right;
            }

            .statement-table {
                width: 100%;
                border-collapse: collapse;
                margin-top: 10px;
            }

            .statement-table th,
            .statement-table td {
                border: 1px solid #000;
                padding: 8px;
                text-align: left;
                color: #000;
            }

            .statement-table th {
                background-color: #d3d3d3;
            }

            .statement-table tr:nth-child(even) {
                background-color: #f2f2f2;
            }

            .statement-table tfoot {
                font-weight: bold;
                background-color: #d3d3d3;
            }
        </style>
    </head>

    <body>
        <div class="statement-container">
            <header>
                <div class="bank-details">
                    <h1 style="text-transform: capitalize"><?php echo e(strtoupper(env('APP_NAME'))); ?></h1>
                    <p><?php echo e(env('APP_ADDRESS')); ?><br>
                        <?php echo e(env('APP_EMAIL')); ?><br>
                        <?php echo e(env('APP_PHONE')); ?></p>
                </div>
                <div class="statement-info">
                    <p style="text-transform: capitalize"><?php echo e(strtoupper($user->account_type)); ?> ACCOUNT STATEMENT</p>
                </div>
            </header>
            <section class="account-info">
                <div>
                    <p><?php echo e($user->first_name); ?> <?php echo e($user->last_name); ?><br>
                        <?php echo e($user->address); ?><br>
                        <?php echo e($user->email); ?></p>
                </div>
                <div class="statement-period">
                    <p>Statement period<br>
                        <?php echo e($fromDate); ?> to <?php echo e($toDate); ?></p>
                </div>
                <div class="account-number">
                    <p>Account Number<br>
                        <?php echo e($user->account_number); ?></p>
                </div>
            </section>
            <table class="statement-table">
                <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($user->currency, 'code')); ?> <?php echo e(formatAmount($transaction->amount)); ?>

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

                            </td>
                            <td><?php echo e(currency($user->currency, 'code')); ?>

                                <?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>
                    <tr>
                        <td colspan="5"><strong>*** Totals ***</strong></td>
                        <td><?php echo e(currency($user->currency, 'code')); ?> <?php echo e(formatAmount($totalAmount)); ?></td>
                        <td></td>
                        <td></td>
                    </tr>
                </tfoot>
            </table>
        </div>
    </body>

</html>
<?php /**PATH C:\xampp\htdocs\projects\online-banking-v6.0\resources\views/pdf/account_statement.blade.php ENDPATH**/ ?>