<?php $__env->startSection('content'); ?>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<div class="container-fluid px-4">

    <div class="card mt-4">
                   <div class="card-header">
                    <?php if(session('status')): ?>
                    <div class="alert alert-success"><?php echo e(session('status')); ?></div>
                <?php endif; ?>

                                  <h1 class=""><?php echo e(__('customerList')); ?></h1>
                                
                                  <div class="table-responsive text-nowrap">
                                  <table id="myDataTable" class="table" width="100%" cellspacing="0">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th><?php echo e(__('userName')); ?></th>
                                            <th><?php echo e(__('userNumber')); ?></th>
                                            <th><?php echo e(__('action')); ?></th>
                                            

                                        </tr>
                                    </thead>
                                    <tbody  class="table-border-bottom-0">
                                        <!-- Table rows -->
                                        <?php $__currentLoopData = $UsersList->unique('uid'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($user->user->id); ?></td>
                                            <td><?php echo e($user->user->fname); ?></td>
                                            <td><?php echo e($user->user->mobile); ?></td>
                                      
                                            <td>
                                                <?php if(isset($botIds[$user->user->id]) && $botIds[$user->user->id] !== "-" && $botIds[$user->user->id] !== null): ?>
                                                <a href="https://connect.littlehelp.co.jp/24321469/line/inbox/1/<?php echo e($botIds[$user->user->id]); ?>" class="btn" target="_blank" data-toggle="tooltip" data-placement="bottom" style="background-color: #3498db;" title="Send Messages">
                                                    <img src="<?php echo e(asset('assets/img/icons/chat.png')); ?>" alt="New Icon" style="filter: invert(100%); width: 20px; height: 20px;">
                                                </a>
                                                <?php else: ?>
                                                <span class="btn disabled" data-toggle="tooltip" data-placement="bottom" style="background-color: #3498db; opacity: 0.6; cursor: not-allowed;" title="Send Messages">
                                                    <img src="<?php echo e(asset('assets/img/icons/chat.png')); ?>" alt="New Icon" style="filter: invert(100%); width: 20px; height: 20px;">
                                                </span>
                                            <?php endif; ?>
                                            </td>

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

                                </table>
                            </div>
                   </div>


    </div>
<script>
      $('#myDataTable').hide(); // Hide the table initially
        $(document).ready(function() {
            $('#myDataTable').DataTable({
                order: [
                    [0, 'desc']
                ], // Sort by the first column (index 0) in descending order
                orderMulti: false, // Disable multi-column ordering
                initComplete: function(settings, json) {
                    $('#myDataTable')
                        .show(); // Show the table after DataTable initialization
                }
            });
        });
</script>
</div>
 <?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/admin/users/userslist.blade.php ENDPATH**/ ?>