<?php echo $__env->make('admin.class.class.components.filter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="table-responsive">
    <div id="basic-datatables_wrapper" class="dataTables_wrapper container-fluid dt-bootstrap4">
        <div class="row">
            <?php echo $__env->make('admin.evaluation.evaluation.components.filter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </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="<?php echo e($sbcls == 'asc' ? 'sorting_asc' : 'sorting_desc'); ?>" 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: 40%;">
                                <a href="<?php echo e(route('evaluation.index')); ?>?sbcls=<?php echo e($sbcls); ?>&sbtc="
                                    class="m-0 p-0 text-dark">Lớp</a>
                            </th>
                            <th class="<?php echo e($sbtc == 'asc' ? 'sorting_asc' : 'sorting_desc'); ?>" 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: 40%;">
                                <a href="<?php echo e(route('evaluation.index')); ?>?sbcls=&sbtc=<?php echo e($sbtc); ?>"
                                    class="m-0 p-0 text-dark">Giảng Viên</a>
                            </th>
                            <th tabindex="0" aria-controls="basic-datatables" rowspan="1" colspan="1"
                                style="width: 20%;">Hành động</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $getAllEvaluationCreate; $__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>
                                <td><?php echo e($items->teacher_name); ?></td>
                                <?php if($items->deleted_by == 0): ?>
                                    <td>
                                        <a href="<?php echo e(route('evaluation.edit', ['id' => $items->id])); ?>"
                                            class="btn btn-sm btn-black" title="Cập nhật">
                                            <i class="fa fa-edit"></i>
                                        </a>
                                        <form action="<?php echo e(route('evaluation.trash', ['id' => $items->id])); ?>"
                                            method="POST" style="display:inline-block;" title="Ẩn">
                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('POST'); ?>
                                            <button type="submit" class="btn btn-sm btn-danger">
                                                <i class="fa fa-trash"></i>
                                            </button>
                                        </form>
                                    </td>
                                <?php else: ?>
                                    <td>
                                        <form action="<?php echo e(route('evaluation.restore', ['id' => $items->id])); ?>"
                                            method="POST" style="display:inline-block;" title="Khôi phục">
                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('POST'); ?>
                                            <button type="submit" class="btn btn-sm btn-success">
                                                <i class="fas fa-undo-alt"></i>
                                            </button>
                                        </form>
                                        <form action="<?php echo e(route('evaluation.delete', ['id' => $items->id])); ?>"
                                            method="POST" style="display:inline-block;"
                                            onsubmit="return confirm('Bạn có chắc chắn muốn xóa đánh giá này?');"
                                            title="Xóa vĩnh viễn">
                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('POST'); ?>
                                            <button type="submit" class="btn btn-sm btn-danger">
                                                <i class="fas fa-trash-alt"></i>
                                            </button>
                                        </form>
                                    </td>
                                <?php endif; ?>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="3">
                                    <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($getAllEvaluationCreate->links('pagination::bootstrap-5')); ?>

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