@extends('wallet.layouts.master') @php $fullName = trim(($user->fname ?? '').' '.($user->lname ?? '')) ?: 'User'; $initial = strtoupper(substr($user->fname ?: ($user->email ?: 'U'), 0, 1)); $location = implode(', ', array_filter([$user->city, $user->country])); $fmt = function ($dt) { if (! $dt) return '—'; try { return \Illuminate\Support\Carbon::parse($dt)->format('M j, Y, g:i A'); } catch (\Throwable $e) { return (string) $dt; } }; $permissions = ['Allow Send Funds', 'Allow Receive Funds', 'Allow Swap Funds', 'Allow Buy Funds', 'Allow Sell Funds']; $tabs = [ 'general' => ['icon' => 'ti-user-circle', 'label' => 'General'], 'manageWallets' => ['icon' => 'ti-wallet', 'label' => 'Wallets'], 'transactions' => ['icon' => 'ti-arrows-exchange', 'label' => 'Transactions'], 'tickets' => ['icon' => 'ti-lifebuoy', 'label' => 'Tickets'], 'paymentMethod' => ['icon' => 'ti-credit-card', 'label' => 'Payment Methods'], 'withdraw-method' => ['icon' => 'ti-building-bank', 'label' => 'Withdrawal Method'], 'send-email' => ['icon' => 'ti-mail', 'label' => 'Send Email'], ]; @endphp @section('title', $fullName.' | User Details') @section('page-css') @endsection @section('content')

User Details

@if($user->manual_kyc) KYC Verified @else @endif @if($user->status == 1) @else @endif @if(optional($user->recoveryRecord)->identity_status !== 'placeholder') @endif
{{-- Profile header --}}
{{ $initial }}

{{ $fullName }} @if(!$user->status) Blocked @elseif(empty($user->email_verified_at)) Pending activation @else Active @endif @if($user->email_2FA_enable || $user->authenticator_app_enable) 2FA on @endif

{{ $user->email }} @if($user->phone){{ $user->phone }}@endif @if($location){{ $location }}@endif @if($user->telegram_id){{ $user->telegram_id }}@endif

Total assets

${{ number_format((float) $total_usd, 2) }}

Registered

{{ $fmt($user->created_at) }}

Last login

{{ $user->last_login ?: '—' }}

Last logout

{{ $fmt($user->logout_at) }}

IP address

{{ $user->ip_address ?: '—' }}

Currency

USD

Managed by

{{ $user->company->email ?? '—' }}

{{-- Tabs --}}
{{-- Add transaction modal --}}
{{-- This is a dedicated viewer, not a Bootstrap modal, so the client portal is never dimmed. --}} @endsection @section('script') @endsection