<?php $__env->startSection('content'); ?>
<div class="clearfix">
    <div class="full-width-container">
        <?php echo $__env->make('masterHeaderAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <main class="main-container">
            <?php echo $__env->make('masterSidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="page-body">
                <div class="nav-breadcrumbs">
                    <ul class="breadcrumbs">
                        <li>
                            <a href="<?php echo e(route('admin')); ?>" class="breadcrumbs-link">TRANG CHỦ</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('quanlythongtin')); ?>" class="breadcrumbs-link">QUẢN LÝ THÔNG TIN</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('caidat')); ?>" class="breadcrumbs-link">CÀI ĐẶT</a>
                        </li>
                    </ul>
                    <a href="<?php echo e(route('quanlythongtin')); ?>" class="page-button">
                        <i class="fa-solid fa-rotate-left"></i> Quay lại
                    </a>
                </div>
                <div class="page-tool-bar">
                    <form class="page-search-bar" action="<?php echo e(route('search_diemdau')); ?>" method="get">
                        <img src="<?php echo e(asset('assets')); ?>/img/icons/search.png" class="page-search-bar--img">
                        <input type="search" name="search" size="0" placeholder="Nhập vào tên hoặc mã ngành để tìm kiếm" class="page-search-bar--input">
                    </form>
                </div>
                <div class="page-table">
                    <table class="table">
                        <thead>
                            <tr>
                                <th class="small">Mã ngành</th>
                                <th>Tên ngành</th>
                                <th >Điểm đậu</th>
                                <th class="small">Sửa</th>
                                <th class="small">Xóa</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $nganhhocs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nganhhoc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($nganhhoc->MaNganhHoc); ?></td>
                                <td><?php echo e($nganhhoc->TenNganhHoc); ?></td>
                                <td><?php echo e($nganhhoc->DiemDau); ?></td>
                                <td>
                                    <span class="table-icon"
                                        data-length = "4"
                                        data-0 = "<?php echo e($nganhhoc->MaNganhHoc); ?>"
                                        data-1 = "<?php echo e($nganhhoc->TenNganhHoc); ?>"
                                        data-2 = "<?php echo e($nganhhoc->DiemDau); ?>"
                                        data-3 = "<?php echo e($nganhhoc->MaNganhHoc); ?>"
                                        onclick="loadRecordData(this)">
                                        <i class="fa-solid fa-file-pen"></i>
                                    </span>
                                </td>
                                <td>
                                    <a href="<?php echo e(route('del_diemdau',$nganhhoc->MaNganhHoc)); ?>" onclick="return confirm('Bạn có chắc muốn xóa mục này? Thao tác này không thể hoàn trả.')" class="table-icon">
                                        <i class="fa-solid fa-trash"></i>
                                    </a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>

                <form action="<?php echo e(route('edit_diemdau')); ?>" method="post" id="form-nhap-lieu" class="add-record-table">
                    <table class="table">

                        <input type="hidden" name="maNH" id="inp-3" class="add-record-table--input add-record-table--input-text">
                        <tr>
                            <?php echo $__env->make('alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <td class="form-field-label--required">Mã ngành học</td>
                            <td>
                                <input type="text" placeholder="Nhập mã ngành học" name="maNganhHoc" id="inp-0" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Tên ngành</td>
                            <td>
                                <input type="text" placeholder="Nhập tên ngành học" name="tenNganh" id="inp-1" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Điểm đậu</td>
                            <td>
                                <input type="text" placeholder="Nhập điểm đậu 1" name="diemdau" id="inp-2" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <label class="add-record-table--button-block" for="them">
                                    <i class="fa-solid fa-plus"></i>
                                    <input type="submit" value="Thêm" name="them" id="them" class="add-record-table--button">
                                </label>
                                <label class="add-record-table--button-block" for="luu">
                                    <i class="fa-solid fa-floppy-disk"></i>
                                    <input type="submit" value="Lưu" name= "luu" id="luu" class="add-record-table--button">
                                </label>
                            </td>
                        </tr>
                    </table>
                    <?php echo csrf_field(); ?>
                </form>
            </div>
        </main>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('masterAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\tuyensinh\resources\views/admin/caidat.blade.php ENDPATH**/ ?>