<div class="page-inner">
    <?php echo $__env->make('admin.dashboard.components.breadcrumb', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <div class="col-md-12">
        <div class="card">
            <div class="card-header d-flex justify-content-between">
                <h4 class="card-title float-left">Danh Sách Giảng Viên</h4>
                <div class="action">
                    <a href="<?php echo e(route('teacher.add')); ?>" class="btn btn-sm btn-success float-end">
                        <i class="fa fa-plus"></i> Xác thực bằng CCCD
                    </a>
                </div>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table id="basic-datatables" class="display table table-striped table-hover dataTable" role="grid" aria-describedby="basic-datatables_info">
                        <thead>
                            <tr role="row">
                                <th style="width: 100px;">Tên</th>
                                <th>Ngày sinh</th>
                                <th>Giới tính</th>
                                <th>Số CCCD</th>
                                <th>Quốc tịch</th>
                                <th>Hộ khẩu thường trú</th>
                                <th>Địa chỉ</th>
                                <th>Tỉnh/Thành phố</th>
                                <th>Quận/Huyện</th>
                                <th>Phường/Xã</th>
                                <th>Đường</th>
                                <th>Ngày hết hạn</th>
                                <th>Hành động</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $userInfos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $userInfo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($userInfo->name); ?></td>
                                    <td><?php echo e($userInfo->date_of_birth ? $userInfo->date_of_birth->format('d/m/Y') : 'N/A'); ?></td>
                                    <td><?php echo e($userInfo->gender); ?></td>
                                    <td><?php echo e($userInfo->id_number); ?></td>
                                    <td><?php echo e($userInfo->nationality); ?></td>
                                    <td><?php echo e($userInfo->home); ?></td>
                                    <td><?php echo e($userInfo->address); ?></td>
                                    <td><?php echo e($userInfo->province); ?></td>
                                    <td><?php echo e($userInfo->district); ?></td>
                                    <td><?php echo e($userInfo->ward); ?></td>
                                    <td><?php echo e($userInfo->street); ?></td>
                                    <td><?php echo e($userInfo->doe ? $userInfo->doe->format('d/m/Y') : 'N/A'); ?></td>
                                    <td>
                                        <div style="display: flex; gap: 10px;">
                                            <a href="<?php echo e(route('user-info.show', $userInfo->id)); ?>" class="btn btn-info btn-sm">Xem</a>
                                            <form action="<?php echo e(route('user-info.destroy', $userInfo->id)); ?>" method="POST" style="display:inline;">
                                                <?php echo csrf_field(); ?>
                                                <?php echo method_field('DELETE'); ?>
                                                <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Bạn có chắc chắn muốn xóa thông tin này không?')">Xóa</button>
                                            </form>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\3_LARAVEL\SchoolManagementSystem\SchoolManagementSystem\resources\views/admin/teacher/teacherscan/pages/index.blade.php ENDPATH**/ ?>