@include('layouts.client_assign_manager')
My Accounts
${{round(auth::user()->wallet_balance,2)}}
Wallet Balance
@foreach (['danger', 'warning', 'success', 'info'] as $msg)
@if(Session::has('alert-' . $msg))
{{ ucfirst(($msg == 'danger') ? "Error" : $msg) }}! {{ Session::get('alert-' . $msg) }}
@endif
@endforeach
@if(!empty($livemt5accountlists))
Login)->first();
if(!empty($mt5data)) {
$group = \App\Models\Group::select('name')->where('mtgroup', $mt5data->groupname)->first();
}
?>
- {{$mt5data->type}}
- @if(!empty($group)){{$group->name}}@endif
- Real
@if($myacctype == 'mt5')
${{ $livemt5accountlists->Equity }}
- ${{$livemt5accountlists->Floating}} Unrealized P&L
- ${{$livemt5accountlists->Balance}} Balance
- ${{$livemt5accountlists->MarginFree}} Free margin
- 1:{{$livemt5accountlists->MarginLeverage}} Actual leverage
@else
${{ $livemt5accountlists->equity / 100 }}
- ${{$livemt5accountlists->balance / 100}} Balance
- ${{$livemt5accountlists->freeMargin}} Free margin
- 1:{{$livemt5accountlists->leverageInCents}} Actual leverage
@endif
@else
Welcome!
Looks like it’s your first time here.
kindly create new account to start trading.
@endif
Open Positions
@if(count($positionslists) > 0)
@if($myacctype == 'mt5')
@foreach($positionslists as $positionslist)
@foreach($positionslist as $position)
{{ $position->Login }} |
{{ $position->Symbol }} |
@if($position->Action == 0)
Buy
@elseif($position->Action == 1)
Sell
@endif
|
Profit / Loss ${{ $position->Profit }} |
Buy Price {{ $position->PriceOpen }} |
Current Price {{ $position->PriceCurrent }} |
Volume {{ $position->Volume/10000 }} Lot |
{{ date("d/m/Y",$position->TimeCreate) }} {{ date("h:m:s",$position->TimeCreate) }} |
@endforeach
@endforeach
@else
@foreach ($positionslists as $position)
{{ $position['symbol'] ?? '-' }}
|
{{ $position['login'] ?? '-' }}
|
{{ number_format($position['usedMargin'] ?? 0, 2) }}
|
@if (($position['direction'] ?? '') === 'BUY')
BUY
@elseif (($position['direction'] ?? '') === 'SELL')
SELL
@else
-
@endif
|
Ticket {{ $position['positionId'] ?? '-' }} |
Open Price
{{ $position['entryPrice'] ?? '-' }}
|
Volume
@if(isset($position['volume']))
{{ number_format($position['volume'] / 1000, 2) }} Lot
@else
-
@endif
|
@if(!empty($position['openTimestamp']))
{{ \Carbon\Carbon::parse($position['openTimestamp'])->format('d/m/Y') }}
{{ \Carbon\Carbon::parse($position['openTimestamp'])->format('H:i:s') }}
@else
-
@endif
|
Open
|
@endforeach
@endif
@else
@endif