<?php
    $authCheck = auth()->check();
    $permission= auth()->user();
?>
<table class="table table-striped">
                        <thead class="border-bottom">
                            <tr>
                                <th>S.No.</th>
                                <th>User name</th>
                                <th>Feedback Option</th>
                                <th>Rating</th>
                                <th>Message</th>
                                
                            </tr>
                        </thead>
                       
                        <tbody>
                            <?php $__currentLoopData = $feedbacks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $feedback): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($key + 1); ?></td>
                               
                                <td><?php echo e($feedback->user->name ?? '-'); ?></td>

                               <?php
                                    $optionNames = [];
                                    $oids = json_decode($feedback->oid, true);

                                    if (is_array($oids)) {
                                        foreach ($oids as $oid) {
                                            if (isset($allOptionNames[$oid]) && !empty($allOptionNames[$oid])) {
                                                $optionNames[] = $allOptionNames[$oid];
                                            }
                                        }
                                    }
                                ?>
                                <td><?php echo e(count($optionNames) ? implode(', ', $optionNames) : '-'); ?></td>

                                <td><?php echo e($feedback->rating); ?></td>
                              
                                <td><?php echo e(Str::limit($feedback->message, 50)); ?></td>
                                <!-- <td><?php echo e($feedback->message); ?></td> -->
                            
                            </tr>

                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          
                        </tbody>
                    </table>

                     <!-- Pagination Links -->
                    <div class="pagination-wrapper mb-4">
                        <?php echo e($feedbacks->links()); ?>

                    </div>
<?php /**PATH /var/www/html/quikwise-admin/resources/views/admin/feedback/ajax.blade.php ENDPATH**/ ?>