@extends('crm.layouts.master')
@section('title', 'Prediction Market Trades')
@section('page-css')
@endsection
@section('main-content')
{{-- ══ TRADE HISTORY TAB ══ --}}
| # |
Client |
Market |
Outcome |
Side |
Shares |
Price |
Total |
CCY |
Date |
@foreach($trades as $i => $t)
| {{ $i + 1 }} |
@if($t->lead)
{{ $t->lead->fname }} {{ $t->lead->lname }}
@else
–
@endif
|
{{ $t->question }} |
{{ $t->outcome }} |
{{ strtoupper($t->side) }} |
{{ rtrim(rtrim(number_format($t->shares, 4), '0'), '.') }} |
{{ number_format($t->price * 100, 1) }}¢ |
{{ number_format($t->total_cost, 2) }} |
{{ $t->currency }} |
{{ $t->traded_at->format('d M Y H:i') }} |
@endforeach
{{-- ══ OPEN POSITIONS TAB ══ --}}
| # |
Client |
Market |
Outcome |
Shares |
Avg Price |
Cost Basis |
CCY |
Status |
Opened |
@foreach($positions as $i => $p)
| {{ $i + 1 }} |
@if($p->lead)
{{ $p->lead->fname }} {{ $p->lead->lname }}
@else
–
@endif
|
{{ $p->question }} |
{{ $p->outcome }} |
{{ rtrim(rtrim(number_format($p->shares, 4), '0'), '.') }} |
{{ number_format($p->avg_price * 100, 1) }}¢ |
{{ number_format($p->shares * $p->avg_price, 2) }} |
{{ $p->currency }} |
{{ ucfirst($p->status) }} |
{{ $p->created_at->format('d M Y') }} |
@endforeach
@endsection
@section('page-js')
@endsection