<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-xl-12 col-xxl-12 m-auto">
            <div class="card mt-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <h6 class="m-0 table__top__txt">Admitted List</h6>
                    <div class="m-0 float-right">
                        
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="table-responsive">
                            <table class="table data-table">
                                <thead class="thead-light">
                                <tr>
                                    <th>Form ID</th>
                                    <th>Name</th>
                                    <th>Class</th>
                                    <th>Shift</th>
                                    <th>Mobile No</th>
                                    <th>Action</th>
                                </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script type="text/javascript">
   $(function () {
        var table = $('.data-table').DataTable({
            processing: true,
            serverSide: true,
            ajax: "<?php echo e(route('online-admission.admitted-ist')); ?>",
            columns: [
                {data: 'form_id', name: 'form_id'},
                {data: 'name', name: 'name'}, // ✅ works now
                {data: 'class_name', name: 'class_name'},
                {data: 'shift_name', name: 'shift_name'},
                {data: 'mobile_no', name: 'mobile_no'},
                {
                    data: 'action',
                    name: 'action',
                    orderable: false,
                    searchable: false,
                    render: function(data, type, row) {
                        let payment = '<a href="<?php echo e(route("selected-applicant-payment-print", ":id")); ?>'.replace(":id", row.id) + '" class="btn btn-sm btn-soft-success mr-1" title="Print"><i class="fas fa-eye"></i></a>';
                        
                        return '<div class="d-flex justify-content-center">' + payment + '</div>';
                    }
                }
            ]
        });
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/EdueasyCollege/resources/views/pages/admission/online-admission/admitted-list.blade.php ENDPATH**/ ?>