@extends('layouts.admin') @section('title', $user->name) @section('content')
{{ $user->email }} · @{{ $user->username }}
Balance
${{ number_format($user->balance, 2) }}
Status
{{ $user->status === 'active' ? 'Active' : 'Deactivated' }}
Deposits
{{ $user->deposits->count() }}
Withdrawals
{{ $user->withdrawals->count() }}
Override the site-wide trading mode for {{ $user->name }} only. Site default is currently {{ strtoupper($siteTradingMode) }}. @if($user->trading_mode) This user is set to {{ strtoupper($user->trading_mode) }}. @else This user follows the site default. @endif
| ID | Pair | Direction | Amount | Result | Net P&L | Status | Closed |
|---|---|---|---|---|---|---|---|
| #{{ $trade->id }} | {{ $trade->market?->tradePairLabel() ?? '—' }} | {{ strtoupper($trade->direction) }} | ${{ number_format($trade->amount, 2) }} | @if($trade->outcome === 'won') WIN @elseif($trade->outcome === 'lost') LOSS @else — @endif | @if($trade->net_pnl !== null) {{ (float) $trade->net_pnl >= 0 ? '+' : '' }}${{ number_format($trade->net_pnl, 2) }} @else — @endif | {{ ucfirst($trade->status) }} | {{ $trade->closed_at?->format('Y-m-d H:i') ?? '—' }} |
| No trades yet | |||||||
| ID | Type | Details | Amount | Status | Date |
|---|---|---|---|---|---|
| {{ $tx->id }} | {{ str_replace('_', ' ', ucfirst($tx->type)) }} | {{ $tx->details ?? '—' }} | ${{ number_format($tx->amount, 2) }} | {{ $tx->status->label() }} | {{ $tx->created_at->format('Y-m-d H:i:s') }} |
| No transactions for this client | |||||
Current balance: ${{ number_format($user->balance, 2) }}