@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
@if ($client->profilePhotoUrl()) {{ $client->name }} @else @endif

{{ $client->name }}

@foreach ($stats as $stat)
$stat['accent'] ?? false, ])>
{{ $stat['label'] }}
{{ $stat['value'] }}
@endforeach
@csrf @method('DELETE')

Delete client

Delete {{ $client->name }}? This action cannot be undone.

Cancel Delete client
@if ($errors->any()) @php $reopenDialog = null; if ($errors->has('email_status') || $errors->has('identity_status') || $errors->has('address_status')) { $reopenDialog = 'update-client-dialog'; } elseif ($errors->has('currency')) { $reopenDialog = 'update-currency-dialog'; } elseif ($errors->has('debit_card_tier_id')) { $reopenDialog = 'grant-card-dialog'; } elseif ($errors->has('trade_target') || $errors->has('signal_strength')) { $reopenDialog = 'update-progress-dialog'; } elseif ( $errors->has('trading_add') || $errors->has('trading_remove') || $errors->has('referral_add') || $errors->has('referral_remove') || $errors->has('signal_add') || $errors->has('signal_remove') || $errors->has('signal_profit_add') || $errors->has('signal_profit_remove') || collect($errors->keys())->contains(fn (string $key) => str_starts_with($key, 'mining_')) ) { $reopenDialog = 'fund-client-dialog'; } @endphp @if ($reopenDialog) @push('scripts') @endpush @endif @endif @endsection