<div class="table-responsive">
    <div id="basic-datatables_wrapper" class="dataTables_wrapper container-fluid dt-bootstrap4">
        <div class="row">
            <div class="col-sm-12 col-md-10">
                <div class="dataTables_length" id="per_page">
                    <label>Hiển thị:
                        <select name="sort" id="per_page_select" onchange="handleRedirect(this)"
                            aria-controls="basic-datatables" class="form-control form-control-sm">
                            <option value="<?php echo e(route('evaluationed.index')); ?>?sort=10"
                                <?php echo e(request('sort') == 10 ? 'selected' : ''); ?>>10</option>
                            <option value="<?php echo e(route('evaluationed.index')); ?>?sort=25"
                                <?php echo e(request('sort') == 25 ? 'selected' : ''); ?>>25</option>
                            <option value="<?php echo e(route('evaluationed.index')); ?>?sort=50"
                                <?php echo e(request('sort') == 50 ? 'selected' : ''); ?>>50</option>
                            <option value="<?php echo e(route('evaluationed.index')); ?>?sort=100"
                                <?php echo e(request('sort') == 100 ? 'selected' : ''); ?>>100</option>
                        </select>
                        bản ghi
                    </label>
                </div>
            </div>
            <div class="col-sm-12 col-md-2">
                <div id="basic-datatables_filter" class="dataTables_filter">
                    <select class="form-control form-control-sm" onchange="handleRedirect(this)">
                        <option value="<?php echo e(route('evaluationed.index')); ?>">--Lọc Theo Lớp--</option>
                        <?php $__currentLoopData = $getAllClassSubject; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e(route('evaluationed.index')); ?>?class=<?php echo e($item->id); ?>"
                                <?php echo e(request('class') == $item->id ? 'selected' : ''); ?>>
                                <?php echo e($item->class_name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <table id="basic-datatables" class="display table table-striped table-hover dataTable" role="grid"
                    aria-describedby="basic-datatables_info">
                    <thead>
                        <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 15%;">Lớp
                            </th>
                            <?php if(!empty(session('user_role') != 3)): ?>
                                <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                    colspan="1" aria-sort="ascending"
                                    aria-label="Tên đánh giá: activate to sort column descending" style="width: 25%;">
                                    Giảng Viên</th>
                            <?php endif; ?>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">Q1
                            </th>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">Q2
                            </th>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">Q3
                            </th>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">Q4
                            </th>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">Q5
                            </th>
                            <th class="sorting_asc" tabindex="0" aria-controls="basic-datatables" rowspan="1"
                                colspan="1" aria-sort="ascending"
                                aria-label="Tên đánh giá: activate to sort column descending" style="width: 10%;">GPA
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $getAllEvaluationed; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $items): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr role="row" class="odd">
                                <td class="sorting_1"><?php echo e($items->class_name); ?></td>
                                <?php if(!empty(session('user_role') != 3)): ?>
                                    <td><?php echo e($items->teacher_name); ?></td>
                                <?php endif; ?>
                                <td><?php echo e($items->first_rating_level); ?></td>
                                <td><?php echo e($items->second_rating_level); ?></td>
                                <td><?php echo e($items->third_rating_level); ?></td>
                                <td><?php echo e($items->fourth_rating_level); ?></td>
                                <td><?php echo e($items->fifth_rating_level); ?></td>
                                <td><?php echo e(($items->first_rating_level +
                                    $items->second_rating_level +
                                    $items->third_rating_level +
                                    $items->fourth_rating_level +
                                    $items->fifth_rating_level) /
                                    5); ?>

                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="8">
                                    <div class="alert alert-warning mb-0" role="alert">
                                        Không tìm thấy dữ liệu.
                                    </div>
                                </td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="dataTables_paginate paging_simple_numbers" id="basic-datatables_paginate">
            <ul class="pagination">
                <?php echo e($getAllEvaluationed->links('pagination::bootstrap-5')); ?>

            </ul>
        </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\3_LARAVEL\SchoolManagementSystem\SchoolManagementSystem\resources\views/admin/evaluationed/evaluationed/components/table.blade.php ENDPATH**/ ?>