@extends('admin.adminLayout') @section('admin_page_title') Client: {{ $client->full_name }} @endsection @section('admin_content') @php $ownerName = optional($client->owner)->name; $tradingAccounts = collect($client->tradingAccounts ?? [])->filter(fn ($account) => !empty($account->mt5_login))->values(); $mt4 = $tradingAccounts->firstWhere('is_primary', true) ?? $tradingAccounts->first(); $hasMt4 = !empty($mt4) && !empty($mt4->mt5_login); $credentialAdmin = \Illuminate\Support\Facades\Auth::guard('web')->user(); $canViewMt4Credentials = $credentialAdmin instanceof \App\Models\User && $credentialAdmin->status_active === 'yes' && ($credentialAdmin->is_super_admin === 'yes' || ($credentialAdmin->can('clients_access') && $credentialAdmin->can('clients_view') && $credentialAdmin->can('clients_change_password'))); $canChangeMt4Password = $credentialAdmin instanceof \App\Models\User && $credentialAdmin->status_active === 'yes' && $credentialAdmin->can('clients_access') && $credentialAdmin->can('clients_view') && $credentialAdmin->can('clients_edit'); $clientInitials = collect(preg_split('/\s+/', trim((string) $client->full_name))) ->filter() ->take(2) ->map(fn ($part) => mb_strtoupper(mb_substr($part, 0, 1))) ->implode('') ?: 'CL'; $clientSinceText = $stats->client_since ? \Carbon\Carbon::parse($stats->client_since)->format('d M Y') : '—'; @endphp
Every statistic and financial operation is scoped to the selected MT4 login.
Review every linked login, select the account to manage, or disable it on MT4 before removing its local database record.
| Account | Group | Leverage | Balance / Equity | State | Last synchronization | Actions |
|---|---|---|---|---|---|---|
|
{{ $account->account_label ?: ('MT4 '.$account->mt5_login) }}
#{{ $account->mt5_login }}
@if($account->is_primary)Primary@endif
|
{{ $account->mt5_group ?: '—' }} {{ $account->currency ?: 'Currency unavailable' }} | 1:{{ $account->leverage ?: '—' }} | {{ number_format($accountBalance, 2) }} {{ $account->currency }} Equity {{ number_format($accountEquity, 2) }} {{ $account->currency }} | {{ $accountEnabled ? 'Enabled' : 'Disabled' }} @if($account->read_only)Read only@endif | {{ optional($account->last_synced_at)->format('d-m-Y H:i:s') ?: 'Never' }} @if($account->last_sync_error)Synchronization warning@endif |
@can('clients_edit')
@if(!$account->is_primary)
@endif
@if(!$accountEnabled)
@endif
@endcan
|
enable_disable_trade_account with action=0. The local record is deleted only after MT4 confirms the login is disabled.
Create the first account to activate live statistics, positions, deals and financial operations.
Deposits, withdrawals, credits and administrator operations.
| Ticket | Action | Amount | Status | Admin | Time | Action |
|---|
All active market and pending positions for the selected account.
| Order | Symbol | Type | Volume | Price | SL | TP | Profit | Setup Time | Action |
|---|
Completed deals with prices, realised profit and execution time.
| Order | Symbol | Type | Volume | Price | SL | TP | Profit | Done Time | Action |
|---|
Latest lead records matched by email or phone.