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

{{ $title }}

Trade Details
{{ $trade->status->label() }}

Name: {{ $trade->name }}

Trader: {{ $trade->trader->user->name }} ({{ $trade->trader->uuid }})

Description: {{ $trade->description ?? 'N/A' }}

Initial Amount: ${{ formatAmount($trade->initial_amount) }}

Total Profit/Loss: {{ $trade->profit_loss >= 0 ? '+' : '' }}${{ formatAmount($trade->profit_loss) }}

Started: {{ $trade->started_at ? $trade->started_at->format('M d, Y H:i') : 'N/A' }}

Duration: {{ $trade->duration_hours ? $trade->duration_hours . ' hours' : 'No limit' }}

Participants ({{ $trade->participants->count() }})
@if ($trade->isActive()) Add Participants @endif
@if ($trade->participants->count() > 0)
@foreach ($trade->participants as $participant) @endforeach
# User Wallet Address Invested Profit/Loss Status
{{ $loop->iteration }} {{ $participant->user->name }}
{{ $participant->user->email }}
{{ Str::limit($participant->user->wallet_address, 20) }} ${{ formatAmount($participant->invested_amount) }} {{ $participant->profit_loss >= 0 ? '+' : '' }}${{ formatAmount($participant->profit_loss) }} @if ($participant->is_active) Active @else Inactive @endif
@else

No participants yet.

@if ($trade->isActive()) Add Participants @endif
@endif
@if ($trade->isActive())
Trade Actions
@endif
@endsection