@props([
'style',
'anon',
'appendedIcons',
'user',
])
@if ($anon)
@if (auth()->user()->is($user) || auth()->user()->group->is_modo)
class('user-tag fas fa-eye-slash') }}
@if ($user->is_donor == 1)
{{ $attributes->merge(['style' => 'background-image: url(/img/sparkels.gif);' . ($style ?? '')]) }}
@else
{{ $attributes->merge(['style' => 'background-image: ' . $user->group->effect . ';' . ($style ?? '')]) }}
@endif
>
(
{{ $user->username }}
@if ($user->icon !== null)
request()
->route()
->getName() === 'users.show',
'max-height: 17px;' =>
request()
->route()
->getName() !== 'users.show',
'vertical-align: text-bottom',
])
title="Custom user icon"
src="{{ route('authenticated_images.user_icon', ['user' => $user]) }}"
/>
@endif
@if ($user->is_lifetime == 1)
@endif
@if ($user->is_donor == 1 && $user->is_lifetime == 0)
@endif
{{ $appendedIcons ?? '' }}
)
@else
class('user-tag fas fa-eye-slash') }}>
({{ __('common.anonymous') }})
@endif
@else
class('user-tag') }}
@if ($user->is_donor == 1)
{{ $attributes->merge(['style' => 'background-image: url(/img/sparkels.gif);' . ($style ?? '')]) }}
@else
{{ $attributes->merge(['style' => 'background-image: ' . $user->group->effect . ';' . ($style ?? '')]) }}
@endif
>
{{ $user->username }}
@if ($user->icon !== null)
request()
->route()
->getName() === 'users.show',
'max-height: 17px;' =>
request()
->route()
->getName() !== 'users.show',
'vertical-align: text-bottom',
])
title="Custom user icon"
src="{{ route('authenticated_images.user_icon', ['user' => $user]) }}"
/>
@endif
@if ($user->is_lifetime == 1)
@endif
@if ($user->is_donor == 1 && $user->is_lifetime == 0)
@endif
{{ $appendedIcons ?? '' }}
@endif