@extends('crm.layouts.master') @section('title', $lead->fname . ' Portfolio') @section('page-css') @endsection @section('main-content')
@if(session('status'))No open positions.
@else| Symbol | Quantity | Avg Price | Latest Price | Current Value | Unrealised P&L |
|---|---|---|---|---|---|
|
{{ $row['symbol']->name ?? '—' }}
{{ $row['symbol']->tv_symbol ?? '' }}
▼ chart
|
{{ rtrim(rtrim(number_format($row['position']->quantity, 8), '0'), '.') }} | {{ number_format($row['position']->avg_price, 2) }} | {{ $row['latest_price'] > 0 ? number_format($row['latest_price'], 2) : '—' }} | {{ $row['current_value'] > 0 ? number_format($row['current_value'], 2) : '—' }} | {{ $row['latest_price'] > 0 ? ($row['unrealised_pnl'] >= 0 ? '+' : '') . number_format($row['unrealised_pnl'], 2) : '—' }} @if($row['latest_price'] > 0) ({{ ($pnlPct >= 0 ? '+' : '') . number_format($pnlPct, 2) }}%) @endif |
| # | Amount | Cur | Ref | Status | Date | Action |
|---|---|---|---|---|---|---|
| {{ $dep->id }} | {{ number_format($dep->amount, 2) }} | {{ $dep->currency }} | {{ $dep->reference ?? '—' }} | {{ ucfirst($dep->status) }} | {{ $dep->created_at->format('Y-m-d') }} | @if($dep->status === 'pending') @else — @endif |
| # | Symbol | Side | Qty | Price | Total | Date |
|---|---|---|---|---|---|---|
| {{ $trade->id }} | {{ $trade->symbol->name ?? '—' }} | {{ strtoupper($trade->side) }} | {{ rtrim(rtrim(number_format($trade->quantity, 8),'0'),'.') }} | {{ number_format($trade->price, 2) }} | {{ number_format($trade->total_cost, 2) }} | {{ $trade->traded_at->format('Y-m-d') }} |