<?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('nganhhoc')); ?>" class="breadcrumbs-link">NGÀNH HỌC</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('nhommon_tn',$maNganhHoc)); ?>" class="breadcrumbs-link">NHÓM MÔN THEO NGÀNH</a>
                        </li>
                    </ul>
                    <a href="<?php echo e(route('nganhhoc')); ?>" class="page-button">
                        <i class="fa-solid fa-rotate-left"></i> Quay lại
                    </a>
                </div>
                <div class="page-table">
                    <table class="table">
                        <thead>
                            <tr>
                                <th class="small">Mã khối</th>
                                <th>Nhóm môn</th>
                                <th class="small">Xóa</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $monhocs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $monhoc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($monhoc->MaKhoi); ?></td>
                                <td>
                                    <?php echo e($monhoc->TenMonHoc); ?>

                                </td>
                                <td>
                                    <a href="<?php echo e(route('del_nhommon_tn',['id' => $maNganhHoc, 'makhoi' => $monhoc->MaKhoi])); ?>" 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('add_nhommon',$maNganhHoc)); ?>" method="post" id="form-nhap-lieu" class="add-record-table">
                    <table class="table">
                        <tr>
                            <?php echo $__env->make('alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <td class="form-field-label--required">Mã khối</td>
                            <td>
                                <select name="makhoi" class="add-record-table--input add-record-table--select" onchange="showNhommon(this.value,<?php echo e(json_encode($makhois,JSON_UNESCAPED_UNICODE)); ?>)">
                                    <option selected disabled>Chọn mã khối</option>
                                    <?php $__currentLoopData = $makhois; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $makhoi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($makhoi->MaKhoi); ?>"><?php echo e($makhoi->MaKhoi); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>Tên nhóm môn</td>
                            <td>
                                <input readonly type="text" name="tenNhom" id="tenNhom"  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>
                            </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/nhommon_theonganh.blade.php ENDPATH**/ ?>