@foreach($usersOnline as $user) @endforeach
Name Status
{{@strtoupper($user->name)}}
@if($user->last_seen != null) {{ \Carbon\Carbon::parse($user->last_seen)->diffForHumans() }} @if(auth()->user()->role == "Administrator") | view profile @endif @else No data @endif
@if(Cache::has('user-is-online-' . $user->id)) Online @else Offline @endif