@php $avatarData = getUserAvatarDetails($user->first_name, $user->last_name); @endphp
{{-- Centered Avatar --}}
@if($user->avatar) User Avatar @else
{{ $avatarData['initials'] }}
@endif
{{ $user->first_name . ' ' . $user->last_name }}

{{ $user->country ?? 'Unknown' }}

{{ __('Last Login: :value', [ 'value' => optional($user->latestLoginActivity)->login_at?->format('Y-m-d H:i') ?? '--' ]) }} {{ __('Browser: :value', [ 'value' => optional($user->latestLoginActivity)?->browser ?? '--' ]) }} {{-- Centered Action Icons --}}
@can('custom-notify-users') @endcan @can('user-balance-manage') @endcan @can('user-login-as') {{-- Demo mode blocks this route in App\Http\Middleware\DemoMode and surfaces a notifyEvs() toast. The toast lives in the flash session of the request that hit the route — so the target="_blank" branch is removed when APP_DEMO=true, otherwise the toast would fire inside a brand-new tab the admin is not looking at, and the original tab would seem to do nothing on click. --}} @endcan @can('user-manage') @if($user->isUser()) @endif @endcan @can('user-delete') @endcan
{{-- Wallet List --}}
    @foreach($user->activeWallets() as $wallet) @php $amountColor = $wallet->latestTransaction?->amount_flow->color($wallet->latestTransaction->status); $amountSign = $wallet->latestTransaction?->amount_flow->sign($wallet->latestTransaction->status); @endphp
  • {{-- Wallet Icon --}} {{ $wallet->currency->code }} {{-- Wallet Details --}}
    {{ __(':value WALLET', ['value' => $wallet->currency->code]) }} @if($wallet->currency->default) {{ __('Default') }} @endif
    @if($wallet->latestTransaction)

    {{ __('Recent:') }} {{ $amountSign . getSymbol($wallet->currency->code) . $wallet->latestTransaction->amount }} {{ __('via') }} {{ $wallet->latestTransaction->trx_type->label() }}

    @else

    {{ __('No recent activity.') }}

    @endif
    {{-- Wallet Balance --}}
    {{ $wallet->currency->symbol.$wallet->balance }}
  • @endforeach
{{-- User Control Section --}} @can('user-features-manage') @include('backend.user.partials._user_control') @endcan