{{ $client->name }}
-
@foreach ($stats as $stat)
- {{ $stat['label'] }}
- {{ $stat['value'] }}
@extends('layouts.vpm-dashboard', ['active' => 'clients', 'area' => 'admin']) @section('title', 'Client Info') @section('content') @php $miningCoins = array_keys(config('vpm-admin-account.mining_labels', [])); $stats = [ ['label' => 'User ID:', 'value' => (string) $client->id, 'accent' => true], ['label' => 'Date:', 'value' => $client->created_at->format('D, d M Y H:i:s').' GMT'], ['label' => 'Account Type:', 'value' => 'LIVE', 'accent' => true], ['label' => 'Email Address:', 'value' => $client->email], ['label' => 'Password:', 'value' => '••••••••', 'accent' => true], ['label' => 'Mobile Number:', 'value' => $client->mobile], ['label' => 'Currency:', 'value' => strtoupper($client->currency).' ('.\App\Support\Currency::symbol($client->currency).')', 'accent' => true], ['label' => 'Country:', 'value' => $client->country], ['label' => 'State:', 'value' => $client->state, 'accent' => true], ['label' => 'City:', 'value' => $client->city], ['label' => 'Street Address:', 'value' => $client->address_line ?: '—', 'accent' => true], ['label' => 'Zip Code:', 'value' => '—'], ['label' => 'Email:', 'value' => $client->emailVerificationShortLabel(), 'accent' => true], ['label' => 'Identity:', 'value' => $client->identityVerificationShortLabel()], ['label' => 'Address:', 'value' => $client->addressVerificationShortLabel(), 'accent' => true], ['label' => 'Referral ID:', 'value' => $client->referralCode()], ['label' => 'Referrals:', 'value' => number_format($client->referrals_count), 'accent' => true], ['label' => 'Deposits:', 'value' => number_format($client->deposits_count)], ['label' => 'Withdrawals:', 'value' => number_format($withdrawalsCount), 'accent' => true], ['label' => 'Trade Target:', 'value' => $client->formattedTradeTarget()], ['label' => 'Signal Strength:', 'value' => $client->formattedSignalStrength(), 'accent' => true], ['label' => 'Signal Profit:', 'value' => $client->formattedMoney($client->signalProfitBalance())], ['label' => 'Trading Balance:', 'value' => $client->formattedMoney((float) $client->balance), 'accent' => true], ...collect($miningCoins)->flatMap(function (string $coin, int $index) use ($client) { $label = config('vpm-admin-account.mining_labels.'.$coin, $coin.' Mining'); return [[ 'label' => $label.' Balance:', 'value' => $client->formattedMiningCoinBalance($coin), 'accent' => $index % 2 === 0, ]]; })->all(), ['label' => 'Referral Balance:', 'value' => $client->formattedMoney((float) $client->referral_balance), 'accent' => true], ['label' => 'Copying Traders:', 'value' => number_format($client->copying_traders_count)], ]; @endphp