<?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('nguoidung')); ?>" class="breadcrumbs-link">NGƯỜI DÙNG</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-table">
                    <table class="table">
                        <thead>
                            <tr>
                                <th class="small">STT</th>
                                <th>Họ và tên</th>
                                <th>Email</th>
                                <th>Tên đăng nhập</th>
                                <th>Mật khẩu</th>
                                <th>Vai trò</th>
                                <th class="small">Sửa</th>
                                <th class="small">Xóa</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $nguoidungs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nguoidung): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($nguoidung->maNguoiDung); ?></td>
                                <td><?php echo e($nguoidung->Ten); ?></td>
                                <td><?php echo e($nguoidung->Email); ?></td>
                                <td><?php echo e($nguoidung->TenDangNhap); ?></td>
                                <td></td>
                                <td><?php echo e($nguoidung->VaiTro); ?></td>
                                <td>
                                    <span class="table-icon"
                                        data-length = "6"
                                        data-0 = "<?php echo e($nguoidung->maNguoiDung); ?>"
                                        data-1 = "<?php echo e($nguoidung->Email); ?>"
                                        data-2 = "<?php echo e($nguoidung->TenDangNhap); ?>"
                                        data-3 = "<?php echo e($nguoidung->MatKhau); ?>"
                                        data-4 = "<?php echo e($nguoidung->Ten); ?>"
                                        data-5 = "<?php echo e($nguoidung->VaiTro); ?>"
                                        onclick="loadRecordData(this)">
                                        <i class="fa-solid fa-file-pen"></i>
                                    </span>
                                </td>
                                <td>
                                    <a href="<?php echo e(route('del_nguoidung',$nguoidung->maNguoiDung)); ?>" 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_nguoidung')); ?>" 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>
                                <input type="hidden" name="maNguoiDung" id="inp-0" class="add-record-table--input add-record-table--input-text" readonly>
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Họ và tên</td>
                            <td>
                                <input type="text" placeholder="Nhập họ và tên" name="ten" id="inp-4" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Email</td>
                            <td>
                                <input type="text" placeholder="Nhập Email" name="email"  id="inp-1" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Tên đăng nhập</td>
                            <td>
                                <input type="text" placeholder="Tên đăng nhập" name="tenDangNhap" id="inp-2" class="add-record-table--input add-record-table--input-text">
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Mật khẩu</td>
                            <td>
                                <input type="password" placeholder="Nhập mật khẩu" name="matKhau" id="inp-3" class="add-record-table--input add-record-table--input-text">
                            </td>
                            <td>
                                <label >
                                <input type="checkbox" style="display:none;" name="show_pass" onclick="showPass(this)" />
                                <div id='hienmatkhau-btn'>
                                    <i class="fa-solid fa-eye-slash"></i>
                                </div>
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <td class="form-field-label--required">Vai trò</td>
                            <td>
                                <select name="vaitro" id="inp-5" class="add-record-table--input add-record-table--input-text">
                                    <?php $__currentLoopData = $vaitros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vaitro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option ><?php echo e($vaitro); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </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 D:\laragon\www\tuyensinh\resources\views/admin/nguoidung.blade.php ENDPATH**/ ?>