<div class="content-wrapper">
    <div class="container-xxl flex-grow-1 container-p-y">
        <div class="row">
            <div class="col">
                <div class="card shadow">
                    <div class="card-header text-uppercase custom-header bg-primary text-bg-info fw-bold">
                        <div class="col-6">
                            <i class="menu-icon ti ti-users-group"></i> Member Saving Report
                        </div>
                    </div>
                    <div class="card-body">

                        
                        <div class="row mb-3 mt-3">
                            <div class="col-md-4">
                                <label>Month Filter</label>
                                <select id="monthFilter" class="selectizeFilter">
                                    <option value="">-- Filter by Month --</option>
                                    <?php
                                        $months = [];
                                        foreach ($getData as $d) {
                                            $month = \Carbon\Carbon::parse($d->created_at)->format('Y-m');
                                            $months[$month] = \Carbon\Carbon::parse($d->created_at)->format('F Y');
                                        }
                                    ?>
                                    <?php $__currentLoopData = collect($months)->sortKeysDesc(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($value); ?>"><?php echo e($label); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <hr>
                        
                        <table id="savingReportTable" class="table table-sm mt-3">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Date</th>
                                    <th>Saving Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $count = 1; ?>
                                <?php $__currentLoopData = $getData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($count++); ?></td>
                                        <td><?php echo e($data->created_at); ?></td>
                                        <td><?php echo e($data->amount); ?></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <th colspan="2" class="text-end">Total:</th>
                                    <th id="totalAmountFooter">0.00</th>
                                </tr>
                            </tfoot>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /Users/anlex/Desktop/untitled folder/ngo/resources/views/pages/allpages/reports/view_member_saving_report.blade.php ENDPATH**/ ?>