-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathonline-friends.blade.php
More file actions
30 lines (30 loc) · 1.67 KB
/
online-friends.blade.php
File metadata and controls
30 lines (30 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<x-title-box
icon="online-friends"
title="{{ __('Online Friends') }} ({{ $onlineFriends->count() }})"
description="{{ __('See which friends are online now') }}"
/>
<div @class([
"flex gap-3 scroll-smooth scroll-x relative mt-4 p-2 overflow-x-auto rounded-lg shadow border-b-2 border-gray-300 dark:border-slate-800 bg-white dark:bg-slate-950",
"pb-6" => $onlineFriends->isNotEmpty()
]) x-data="onlineFriends('{{ route('hotel.rcon.follow-user', ':userId') }}')">
@forelse ($onlineFriends as $onlineFriend)
<div
@click="followUser('{{ $onlineFriend->id }}')"
data-tippy
data-tippy-content="<small>{{ $onlineFriend->motto }}</small>"
class="w-14 hover:bg-gray-100 dark:hover:bg-slate-700 h-14 relative shrink-0 rounded-full dark:bg-slate-800 border border-gray-300 dark:border-slate-700 p-0.5 cursor-pointer"
>
<div @class([
"w-full h-full rounded-full bg-no-repeat",
"bg-center" => !$usingNitroImager,
"bg-[-8px_-14px]" => $usingNitroImager
]) style="background-image: url('{{ getFigureUrl($onlineFriend->look, 'head_direction=3&gesture=sml&headonly=1') }}')"></div>
<div class="absolute max-w-[100%] truncate text-xs -bottom-5 left-1/2 -translate-x-1/2 dark:text-slate-200">{{ $onlineFriend->username }}</div>
</div>
@empty
<div class="flex items-center justify-center gap-2 w-full">
<i class="fa-solid fa-users-slash text-gray-300 dark:text-slate-600"></i>
<span class="text-gray-400 dark:text-slate-500 text-sm py-5">{{ __('No friends online') }}</span>
</div>
@endforelse
</div>