@php $accounts = $client?->tradingAccounts()->primaryFirst()->get() ?? collect(); @endphp

Account overview

A summary of your client profile and connected MT4 logins.

Full name
{{ $client->full_name ?: '—' }}
Email address
{{ $client->email ?: '—' }}
Telephone
{{ \App\Support\ImpersonatedClientPhone::display($client) ?: '—' }}
Sign-in protection
Two-factor {{ ($client->two_factor_enabled ?? false) ? 'enabled' : 'disabled' }}

Connected trading accounts

{{ $accounts->count() }} {{ \Illuminate\Support\Str::plural('MT4 login', $accounts->count()) }} linked to your profile.

View dashboard @include('client.presentation.icon', ['name' => 'external'])
@forelse($accounts as $account)

{{ $account->account_label ?: 'MT4 '.$account->mt5_login }}

Login #{{ $account->mt5_login }}

@if($account->is_primary)Primary@endif {{ $account->enabled ? ($account->read_only ? 'Read only' : 'Active') : 'Disabled' }}
Account group
{{ $account->mt5_group ?: '—' }}
Currency
{{ strtoupper($account->currency ?: '—') }}
Leverage
{{ $account->leverage ? '1:'.$account->leverage : '—' }}
Last synchronized
{{ $account->last_synced_at?->format('d M Y, H:i') ?: 'Not synced yet' }}
@empty
No MT4 account is linked to your profile yet. Create a trading account from your dashboard to get started.
@endforelse