@if (user()->isLoggedIn())
@php $roles = $user->getSortedRoles(); $primaryRole = $user->getPrimaryRole(); @endphp
{{ $user->name }} @if (user()->can('admin.boss')) @endif
@if ($primaryRole)
{{ __('def.role') }}
@endif
{!! $user->getDisplayName(withColor: false) !!} @if ($user->approved) @elseif (user()->can('admin.boss')) @endif
{{ $user->isOnline() ? __('def.online') : __('def.not_online') }}
@if (count($roles) > 1)
@php $extraRoles = array_slice($roles, 1, 4); @endphp @foreach ($extraRoles as $role) @endforeach @if (count($roles) > 5) +{{ count($roles) - 5 }}
    @for ($i = 5; $i < count($roles); $i++) @php $role = $roles[$i]; @endphp
  • {{ $role->name }}
  • @endfor
@endif
@endif
@if (sizeof(payments()->getAllGateways() ?? []) > 0)
{{ __('def.balance') }}
{{ number_format($user->balance, 2) }} {{ config('lk.currency_view') }}
@if (config('lk.only_modal')) {{ __('def.top_up') }} @else {{ __('def.top_up') }} @endif
@endif
{{ __('def.my_profile') }} {{ __('def.settings') }} @if (user()->can('admin')) {{ __('def.admin_panel') }} @endif
@csrf
@else

{{ __('auth.guest') }}

{{ __('auth.guest_description') }}

@php $socialNetworks = social()->getAll(); $socialCount = sizeof($socialNetworks); @endphp @if (! config('auth.only_social', false) || (config('auth.only_social') && $socialCount === 0))
@if (config('auth.only_modal')) {{ __('def.login') }} {{ __('auth.register') }} @else {{ __('def.login') }} {{ __('auth.register') }} @endif
@elseif (config('auth.only_social', false) && $socialCount === 1) @php $item = social()->toDisplay(); $key = key($item); $icon = $item[$key]; @endphp
{{ __('auth.social.auth_via', [':social' => $key]) }}
@elseif (config('auth.only_social', false) && $socialCount > 1)
@if (config('auth.only_modal')) {{ __('def.login') }} @else {{ __('def.login') }} @endif
@endif @if ($socialCount > 0 && (! config('auth.only_social') || (config('auth.only_social') && $socialCount > 1)))
{{ __('auth.social.quick_login') }}
@foreach ($socialNetworks as $key => $item) @endforeach
@endif
@endif