{{-- --}} @if($user->profile_picture && file_exists(public_path('ProfilePicture/' . $user->profile_picture))) user-img @else user-img @endif
{{ $user->username }}

{{-- @if($user->is_away === \App\Models\User::ISAWAY) Away @else @if ($user->getIsOnlineAttribute()) Active @else Offline @endif @endif --}} @if($user->hasRole(\App\Models\User::Administrator) || $user->hasRole(\App\Models\User::SuperAdmin)) @if($user->is_away === \App\Models\User::ISAWAY) Away @else Active @endif @else @if($user->is_away === \App\Models\User::ISAWAY) Away @else @if ($user->getIsOnlineAttribute()) Active @else Offline @endif @endif @endif

{{--

If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual.

--}}

Name

{{ $user->first_name }} {{ $user->last_name }}

Username

{{ $user->username }}
@php $user=Auth::user(); @endphp @if (($user->roles && $user->roles[0]->name == "Super Admin"))

Email

{{ $user->email }}
@endif
@foreach ($user->chats as $chat) @if ($chat->chat_media && count($chat->chat_media) > 0) @foreach ($chat->chat_media as $media)
@if ( $media->file_type == 'jpg' || $media->file_type == 'png' || $media->file_type == 'jpeg' || $media->file_type == 'gif' || $media->file_type == 'webp') @endif
{{ $media->filename }}
{{--

12.5 MB

--}}
@endforeach @endif @endforeach