     
<div class="table-responsive">
<table id="orders" class="table custom-table">
    
        <thead>
            <tr>
                <th>Name</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $usersOnline; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td>
                <div class="media-box">
                    <div class="media-box-body">
                        <a href="#" class="text-truncate"><?php echo e(@strtoupper($user->name)); ?></a><br>
                        <?php if($user->last_seen != null): ?>

                            <?php echo e(\Carbon\Carbon::parse($user->last_seen)->diffForHumans()); ?> 
                            
                            <?php if(auth()->user()->role == "Administrator"): ?>
                             | <a href="ceqa-dashboard/users/view-profile/<?php echo e($user->id); ?>"> view profile </a>
                            <?php endif; ?>
                            <?php else: ?>
                                No data
                            <?php endif; ?>
                    </div>
                </div>
                </td>
                <td>
                <?php if(Cache::has('user-is-online-' . $user->id)): ?>
                <span class="text-success"><i class="icon-check-circle"></i> Online</span>
                <?php else: ?>
                <span class="text-danger"><i class="icon-x-circle"></i> Offline</span>
                <?php endif; ?>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>

<?php /**PATH /home/morttsons/public_html/morttsonsposfiles/resources/views/inc/online-status.blade.php ENDPATH**/ ?>