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

        <div class="row">
            <div class="col-md-12">
                <div class="card card-primary">
                    <div class="card-header">
                        <h6 class="card-title"></h6>
                    </div>
                    <form action="<?php echo e(url('branch/enrollment-client-view')); ?>" method="get">
                        <div class="card-body" id="demo">
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">From Date</label>
                                    <input type="date" class="form-control" name="from_date" id="from_date"
                                        value="<?php echo e(Request::get('from_date')); ?>">
                                </div>
                            </div>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">To Date</label>
                                    <input type="date" class="form-control" name="to_date" id="to_date"
                                        value="<?php echo e(Request::get('to_date')); ?>">
                                </div>
                            </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">
                                <div class="form-group">
                                    <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>
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label for="">Operator Name</label>
                                    <select name="operator_code" id="operator" class="form-control">
                                        <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_code')==$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>
                            <div class="col-md-2">
                                <input type="submit" class="btn btn-primary" value="Filter" style="margin: 25px; float:right;">
                            </div>
                        </div>

                    </form>
                </div>
            </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 width="5%">S.No.</th>
                                        <th width="8%">Enrolment No. And Date</th>
                                        <th width="12%">Appointment Id</th>
                                        <th width="20%">Type</th>
                                        <th width="10%">Mandatory Biometric Update</th>
                                        <th width="10%">IS_NRI</th>
                                        <th width="10%">Tin Number </th>
                                        <th>Operator ID </th>
                                        <th>Reviewer ID </th>
                                        <th>Introducer</th>
                                        <th>Proof</th>
                                        <th>Resident</th>
                                        <th>Status</th>
                                        <th>Introducer Review Status </th>
                                        <th>User Review Status </th>
                                        <th>GST Applied(%) </th>
                                        <th>Amount Charged For New Enrolment </th>
                                        <th>Amount Charged For Update Enrolment </th>
                                        <th>Total Amount Charged</th>
                                    </tr>
                                </thead>
                                <tbody>


                                    <?php $__empty_1 = true; $__currentLoopData = $enrollmentList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($key+$enrollmentList->firstItem()); ?>.</td>
                                        <td><?php echo e($val->Enrolment_No_and_Date); ?></td>
                                        <td><?php echo e($val->Appointment_Id); ?></td>
                                        <td><?php echo e($val->Type); ?></td>
                                        <td><?php echo e($val->Mandatory_biometric_update); ?></td>
                                        <td><?php echo e($val->IS_NRI); ?></td>
                                        <td><?php echo e($val->Tin_Number); ?></td>
                                        <td><?php echo e($val->Operator_ID); ?></td>
                                        <td><?php echo e($val->Reviewer_ID); ?></td>
                                        <td><?php echo e($val->Introducer); ?></td>
                                        <td><?php echo e($val->Proof); ?></td>
                                        <td><?php echo e($val->Resident); ?></td>
                                        <td><?php echo e($val->Status); ?></td>
                                        <td><?php echo e($val->Introducer_Review_Status); ?></td>
                                        <td><?php echo e($val->User_Review_Status); ?></td>
                                        <td><?php echo e($val->GSApplied_Percentage); ?></td>
                                        <td><?php echo e($val->Amount_charged_for_New_Enrolment); ?></td>
                                        <td><?php echo e($val->Amount_charged_for_Update_Enrolment); ?></td>
                                        <td><?php echo e($val->Total_amount_charged); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="19">No Record Found !!</td>
                                    </tr>
                                    <?php endif; ?>


                                </tbody>
                            </table>
                            <?php echo $enrollmentList->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('branch.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aks5g/public_html/aadhar.aks.5g.in/resources/views/branch/enrollment_client_view.blade.php ENDPATH**/ ?>