@extends('portal.layouts.master') @section('title', $symbol->name . ' Position') @section('page-title', $symbol->name) @section('extra-css') .stat-pills { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; } .stat-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: .65rem 1rem; flex: 1; min-width: 130px; } .stat-pill .lbl { font-size: .68rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; } .stat-pill .val { font-size: 1.05rem; font-weight: 700; margin-top: .1rem; } #perf_chart { width: 100%; height: 420px; } @endsection @section('content')
{{-- Symbol header --}}{{ $symbol->tv_symbol }} · {{ ucfirst($symbol->category) }}| Date | Side | Quantity | Price | Total | Currency |
|---|---|---|---|---|---|
| {{ $trade->traded_at->format('Y-m-d H:i') }} | {{ strtoupper($trade->side) }} | {{ rtrim(rtrim(number_format($trade->quantity, 8), '0'), '.') }} | {{ number_format($trade->price, $symbol->decimal_places) }} | {{ number_format($trade->total_cost, 2) }} | {{ $trade->currency }} |