<div>
<div>
    <div class="pd-20 card-box mb-30">
        <div class="row mb-20">
            <div class="col-md-4">
                <label for="search"><b class="text-secondary">Search</b>:</label>
                <input wire:model.live="search" type="text" id="search" class="form-control" placeholder="Search office department...">
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-auto table-sm">
                <thead class="bg-secondary text-white">
                    <tr>
                        <th scope="col">#ID</th>
                        <th scope="col">Profile Pic</th>
                        <th scope="col">Name</th>
                        <th scope="col">Position</th>
                        <th scope="col">Office Department</th>
                        <th scope="col">Email</th>
                        <th scope="col">Action</th>
                    </tr>
                </thead>
                <tbody>
                    <!--[if BLOCK]><![endif]--><?php $__empty_1 = true; $__currentLoopData = $officeDepartments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $officeDept): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td scope="row"><?php echo e($officeDept->id); ?></td>
                        <td>
                            <!--[if BLOCK]><![endif]--><?php if($officeDept->office_admin_image): ?>
                            <img src="<?php echo e(asset('images/office_admins/' . $officeDept->office_admin_image)); ?>" width="100" alt="<?php echo e($officeDept->office_admin_name); ?>">
                            <?php else: ?>
                            <span>No Image</span>
                            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                        </td>
                        <td><?php echo e($officeDept->office_admin_name); ?></td>
                        <td><?php echo e($officeDept->office_admin_description); ?></td>
                        <td><?php echo e($officeDept->officeDepartment->description ?? 'N/A'); ?></td>
                        <td><?php echo e($officeDept->office_admin_email); ?></td>
                        <td class="table-actions">
                            <a href="<?php echo e(route('admin.edit_office_department', ['id'=>$officeDept->id])); ?>" data-color="#265ed7" style="color:rgb(38, 94, 215)">
                                <i class="icon-copy dw dw-edit2"></i>
                            </a>
                            <!-- <a href="javascript:;" wire:click="deleteFaculty(<?php echo e($officeDept->id); ?>)" data-color="#e95959" style="color:rgb(233, 89, 89)">
                                <i class="icon-copy dw dw-delete-3"></i>
                            </a> -->
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="6" class="text-center">No Office Department found.</td>
                    </tr>
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                </tbody>
            </table>
        </div>
    <div class="block mt-1">
        <?php echo e($officeDepartments->links('livewire::simple-bootstrap')); ?>

    </div>
    </div>
</div>
</div>
<?php /**PATH /home/pcdsedup/public_html/resources/views/livewire/admin/office-department.blade.php ENDPATH**/ ?>