<?php $__env->startSection('main-content'); ?>
    <main>
        <div class="container-fluid">
            <h2 class="mt-5 mb-4">Upload Received Amount List</h2>

            <div class="row">
                <div class="card-body">
                    <form action="<?php echo e(url('admin/receive-amount-list')); ?>" method="get">
                        <div class="col-md-2">
                            <label for="">From Date</label>
                            <input type="date" name="from_date" value="<?php echo e(Request::get('from_date')); ?>" class="form-control">
                        </div>
                        <div class="col-md-2">
                            <label for="">To Date</label>
                            <input type="date" name="to_date" value="<?php echo e(Request::get('to_date')); ?>" class="form-control">
                        </div>
                        <div class="col-md-2">
                            <div class="form-group">
                                <label>Registrar EA Combination</label>
                                <select name="Ea_Code" id="eacode" onchange="eacodeFun()" class="form-control select2">
                                    <option value="">All</option>
                                    <?php $__currentLoopData = DB::table('registrars')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($val->Ea_Code); ?>" <?php echo e(Request::get('Ea_Code')==$val->Ea_Code ?
                                        'selected' : ''); ?>>
                                        <?php echo e($val->Ea_Code); ?> (<?php echo e($val->Ea_Name); ?>)</option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        
                        <div class="col-md-2">
                            <label for="">State</label>
                            <select name="state" id="state" onchange="stateFun()" class="form-control">
                                <option value="">All</option>
                                <?php $__currentLoopData = $state; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($val->state); ?>" <?php echo e(Request::get('state')==$val->state?'selected':''); ?>><?php echo e($val->state); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="col-md-2">
                            <label for="">District</label>
                            <select name="district" id="district" onchange="districtFun()" class="form-control">
                                <option value="">All</option>
                                <?php $__currentLoopData = $districtData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($val->District); ?>" <?php echo e(Request::get('district')==$val->
                                    District?'selected':''); ?>><?php echo e($val->District); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>

                        <div class="col-md-2">
                            <label for="">Branch</label>
                            <select name="branch" id="branch" onchange="branchFun()"  class="form-control"
                                style="width: 100%;">
                                <option value="">All</option>
                                <?php $__currentLoopData = $branchData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($val->branch_code); ?>" <?php echo e(Request::get('branch')==$val->branch_code?'selected':''); ?>><?php echo e($val->branch_code); ?> (<?php echo e($val->branch_name); ?>)</option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="col-md-2">
                            <label for="">Operator</label>
                            <select name="operator" id="operator"  class="form-control"
                                style="width: 100%;">
                                <option value="">All</option>
                                <?php $__currentLoopData = $operatorData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($val->Operator_Code); ?>" <?php echo e(Request::get('operator')==$val->
                                    Operator_Code?'selected':''); ?>><?php echo e($val->Operator_Code); ?> (<?php echo e($val->Operator_Name); ?>)</option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>          
                        <div class="col-md-2">
                            <label for=""></label>
                            <input type="submit" value="Filter" class="btn btn-primary" style="margin-top: 25px;">
                        </div>

                    </form>
                </div>
                <div class="col-md-12">
                    <div class="card card-primary">
                        <div class="card-header">
                            <h6 class="card-title"></h6>
                        </div>
                        <div class="card-body" id="demo">
                            <div class="table-responsive">
                                <table class="table table-bordered table-striped" width="100%" cellspacing="0">
                                    <thead>
                                        <tr>
                                            <th>S.No.</th>
                                            <th>Date Of Transaction</th>
                                            <th>Transaction Id</th>
                                            <th>Registrar Code</th>
                                            <th>EA Code</th>
                                            <th>Branch Code</th>
                                            <th>Operator Code</th>
                                            <th>Operator Name</th>
                                            <th>State</th>
                                            <th>District</th>
                                            <th>Station Code	</th>
                                            <th>Amount Credited</th>
                                        </tr>
                                    </thead>
                                    <tbody>


                                        <?php $__empty_1 = true; $__currentLoopData = $List; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                        <tr>
                                            <td><?php echo e($key+$List->firstItem()); ?>.</td>
                                            <td><?php echo e(date('d-m-Y h:i:s a', strtotime($val->date_of_transaction))); ?></td>
                                            <td><?php echo e($val->transaction_no); ?></td>
                                            <td><?php echo e($val->registrar_code); ?></td>
                                            <td><?php echo e($val->ea_code); ?></td>
                                            <td><?php echo e($val->branch_code); ?></td>
                                            <td><?php echo e($val->Operator_Code); ?></td>
                                            <?php
                                                $opData = DB::table('operators')->select('Operator_Name')->where('Operator_Code',$val->Operator_Code)->first();
                                            ?>
                                            <td><?php echo e(!empty($opData) ? $opData->Operator_Name : ''); ?></td>
                                            <td><?php echo e($val->state); ?></td>
                                            <td><?php echo e($val->district); ?></td>
                                            <td><?php echo e($val->station_code); ?></td>
                                            <td><?php echo e($val->amount_credited); ?></td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                                        <tr>
                                            <td colspan="8">No Record Found !!</td>
                                        </tr>

                                        <?php endif; ?>


                                    </tbody>
                                </table>
                                <?php echo $List->appends($_GET)->links(); ?>

                            </div>
                        </div>
                        <!-- /.card-body -->
                    </div>
                    <!-- /.card -->

                    <!-- end -->
                </div>
            </div>

        </div>
    </main>
<!-- Include jQuery -->
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aks5g/public_html/aadhar.aks.5g.in/resources/views/admin/bank_upload_list.blade.php ENDPATH**/ ?>