

<?php $__env->startSection('content'); ?>
<h3 class="mb-4">My Passbook</h3>

    <div class="card">
        <div class="card-body">

            <div class="table-responsive">
                <table class="table table-stripped">
                    <thead class="table-light">
                        <tr>
                            <th>#</th>
                            <th>Date</th>
                            <th>Amount</th>
                            <th>Details</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr class="<?php echo e($transaction->type == 'credit' ? 'table-success' : 'table-danger'); ?>">
                                <td><?php echo e($transactions->firstItem() + $key); ?></td>
                                <td><?php echo e($transaction->created_at->format('d M Y, h:i A')); ?></td>
                                <td><?php echo e($transaction->type == 'credit' ? '+' : '-'); ?><?php echo e($transaction->amount); ?></td>
                                <td>
                                    <?php echo e($transaction->details); ?>

                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>

                <div class="mt-3">
                    <?php echo e($transactions->links('pagination::bootstrap-5')); ?>

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

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/theearn1/public_html/resources/views/passbook.blade.php ENDPATH**/ ?>