@extends('dashboard.user.layouts.app') @section('content')

{{ $title }}

{{ @$trader->user->name }}

{{ @$trader->user->name }}

UUID: {{ $trader->uuid }} Automated Trading Active
Started On {{ $request->updated_at->format('M d, Y') }}
Total Trades Copied

{{ $tradeHistory->total() }}

Net Profit/Loss
@php $totalPL = $tradeHistory->getCollection()->sum('profit_loss'); @endphp

{{ $totalPL >= 0 ? '+' : '' }}{{ currency($user->currency) }}{{ formatAmount($totalPL) }}

Unrealized Profit

{{ currency($user->currency) }}{{ formatAmount($unrealizedProfit) }}

@if ($unrealizedProfit > 0)
@csrf
@else

No profit available to withdraw

@endif
Trade Activity Log
Back
@forelse ($tradeHistory as $history) @empty @endforelse
Date Trade Name Invested Amount Profit/Loss Status Details
{{ $history->created_at->format('M d, Y H:i A') }} {{ $history->copyTrade->name }}
{{ Str::limit($history->copyTrade->description, 30) }}
{{ currency($user->currency) }}{{ formatAmount($history->invested_amount) }} {{ $history->profit_loss >= 0 ? '+' : '' }}{{ currency($user->currency) }}{{ formatAmount($history->profit_loss) }} @if ($history->is_active) Open @else Closed @endif

No trading activity recorded for this trader yet.

@if ($tradeHistory->hasPages()) @endif
@endsection