<?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('ketquaxettuyen')); ?>" class="breadcrumbs-link">KẾT QUẢ XÉT TUYỂN</a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('hocba')); ?>" class="breadcrumbs-link">XÉT THEO HỌC BẠ</a>
                        </li>
                    </ul>
                    <a href="<?php echo e(route('ketquaxettuyen')); ?>" class="page-button">
                        <i class="fa-solid fa-rotate-left"></i> Quay lại
                    </a>
                </div>
                <?php echo $__env->make('alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="page-tool-bar">
                    <form class="form-timkiem" action="<?php echo e(route('search_hocba')); ?>" method="get">
                        <label class="page-search-bar">
                        <i class="fa-solid fa-magnifying-glass"></i>
                        <input type="search" name="search" value="" size="0" placeholder="Nhập tên, căn cước công dân hoặc email" class="page-search-bar--input">
                        </label>
                        <div class="page-select-batch">
                            <label class="label-dot">Đợt xét tuyển</label>
                            <select class="page-select-batch--select" name="dot" id="dot" >
                                <option value="0" selected>--- Đợt xét tuyển ---</option>
                                <?php $__currentLoopData = $dotxettuyens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dot): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($dot->MaDotXetTuyen); ?>" <?php echo e($selectedDot == $dot->MaDotXetTuyen ? 'selected' : ''); ?>><?php echo e($dot->TenDot); ?> : <?php echo e(date('d-m-Y', strtotime($dot->NgayBatDau))); ?> - <?php echo e(date('d-m-Y', strtotime($dot->NgayKetThuc))); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <div class="page-form-table">
                                <label class="page-button table-form__label table-form__label--float-right">
                                    <i class="fa-solid fa-magnifying-glass"></i>
                                    <input type="submit" name="timkiem" class="table-form__submit-button" value="Tìm kiếm">
                                </label>
                            </div>
                        </div>
                    <?php echo csrf_field(); ?>
                    </form>
                    <a href="<?php echo e(route('export1',$selectedDot)); ?>" class="page-button">
                        <i class="fa-solid fa-file-export"></i>
                        Xuất file
                    </a>
                </div>
                <div class="page-table">
                    <table class="table">
                        <thead>
                            <tr>
                                <th class="small">STT</th>
                                <th>Tên</th>
                                <th>Ngày sinh</th>
                                <th>CCCD/CMND</th>
                                <th>Giới tính</th>
                                <th>Email</th>
                                <th>Địa chỉ</th>
                                <th>Tên trường</th>
                                <th>Tên ngành</th>
                                <th>Ngày đăng ký</th>
                                <th>Kết quả</th>
                                <th class="small">Xóa</th>
                                <th class="small">Chi tiết</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $forms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $form): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($form->MaForm); ?></td>
                                <td><?php echo e($form->HoTen); ?></td>
                                <td><?php echo e(date('d-m-Y', strtotime($form->NgaySinh))); ?></td>
                                <td><?php echo e($form->CCCD); ?></td>
                                <td><?php if($form->GioiTinh == 0): ?>
                                        Nữ
                                    <?php else: ?>
                                        Nam
                                    <?php endif; ?>
                                </td>
                                <td><?php echo e($form->Email); ?></td>
                                <td><?php echo e($form->DiaChi); ?></td>
                                <td><?php echo e($form->truong->TenTruong); ?></td>
                                <td><?php echo e($form->nganhhoc->TenNganhHoc); ?></td>
                                <td><?php echo e(date('d-m-Y', strtotime($form->NgayDangKy))); ?></td>
                                <td class="<?php echo e(($form->KetQua == '0')?'page-table--status-waiting':'page-table--status-pass'); ?>">
                                    <?php if($form->KetQua == '0'): ?>
                                        Không đạt
                                    <?php else: ?>
                                        Đạt
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <a href="https://google.com" 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>
                                <td>
                                    <a href="<?php echo e(route('hocbachitiet',$form->MaForm)); ?>" class="table-icon">
                                        <i class="fa-regular fa-folder-open"></i>
                                    </a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
                <div class="page-table-nav">
                    <a href="#" class="page-table-nav--item navigator"><</a>
                    <a href="#" class="page-table-nav--item active">1</a>
                    <a href="#" class="page-table-nav--item">2</a>
                    <a href="#" class="page-table-nav--item">3</a>
                    <a href="#" class="page-table-nav--item">4</a>
                    <a href="#" class="page-table-nav--item navigator">></a>
                </div>
            </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/ketQuaXetTuyen_hocBa.blade.php ENDPATH**/ ?>