@extends('wallet.layouts.master') @section('title','Users') @section('page-css') @endsection @section('content')

Users

@foreach($users as $user) @php $isRecoveryPlaceholder = optional($user->recoveryRecord)->identity_status === 'placeholder'; @endphp @php $total = $userTotals[$user->id] ?? ['usd' => 0.0, 'coins' => [], 'priced' => true]; $breakdown = collect($total['coins']) ->map(fn ($qty, $short) => rtrim(rtrim(number_format($qty, 8, '.', ''), '0'), '.').' '.$short) ->implode(', '); @endphp @endforeach
First name Last name Email Total balance Status Last login Registered View
{{ $user->fname ?: '—' }} {{ $user->lname ?: '—' }} @if($isRecoveryPlaceholder) Identity confirmation required @else {{ $user->email }} @endif @if(empty($total['coins'])) $0.00 @else ${{ number_format($total['usd'], 2) }} @unless($total['priced']) @endunless @endif @if($isRecoveryPlaceholder) Recovery identity needed @elseif(!$user->status) Blocked @elseif(empty($user->email_verified_at))
Pending activation
@else Active @endif
{{ $user->last_login ?: '—' }} {{ $user->created_at ? $user->created_at->format('n/j/Y, g:i:s A') : '—' }} @unless($isRecoveryPlaceholder) @else Disabled @endunless
{{-- A separate preview shell keeps the client view above the CRM without dimming it. --}} @endsection @section('script') @endsection